Welcome Guest Search | Active Topics | Sign In | Register

Dialog containing progressbar doesn't close when server side code is done Options
Abdu
Posted: Tuesday, November 2, 2010 3:04:49 PM
Rank: Member
Groups: Member

Joined: 9/1/2010
Posts: 28
I have a simple test project with a web page containing an EO dialog control containing an EO progress bar. The dialog control is in a CallbackPanel. The dialog shows when a button is clicked. The server side code handler for the progressbar's OnRunTask runs (it has a 3 second sleep). I have a client side handler for the progressbar's ClientSideOnTaskDone which closes the dialog window.

The problem is that the dialog doesn't close in the ClientSideOnTaskDone handler. I know it runs because it has an alert which displays. I close the dialog by issuing a eo_GetObject('eoDialogProgressBar').show(false); where eoDialogProgressBar is the id of the dialog.
The serverside OnRunTask has e.UpdateProgress(100) as the last statement.

Why isn't the dialog closing?

eo_support
Posted: Tuesday, November 2, 2010 3:19:40 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
You should call dialog.close() to close the dialog.

Thanks
Abdu
Posted: Tuesday, November 2, 2010 4:50:40 PM
Rank: Member
Groups: Member

Joined: 9/1/2010
Posts: 28
Thanks.

There's an odd behavior with IE. When the dialog shows up, IE's status bar shows a growing progress bar and 'waiting for.." message. Looks fine. When the dialog closes, IE's 'waiting... ' message disappears but IE's progress bars still grows. It should disappear too. In Firefox everything works fine.

This IE behavior happens only during the initial load of the page. Subsequent clicks on the button work fine in IE (dialog closes, IE's 'waiting' message and progress bar disappear). My raw guess is IE is not doing some kind of proper cleanup and closing the connection?

Any ideas?


eo_support
Posted: Tuesday, November 2, 2010 4:58:25 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We do not know what causes it either. It may choose to keep the connection open so that it does not need to open it again, or it's purely an IE bug. In any case how IE displays progress bar is completely out of our control, so there isn't much we can do. We could try to find workaround to make it disappear but it would be like chasing a ghost and it probably doesn’t worth it.

Thanks
Abdu
Posted: Tuesday, November 2, 2010 5:44:31 PM
Rank: Member
Groups: Member

Joined: 9/1/2010
Posts: 28

Thanks. I wanted to make sure it's not something I missed in my programming.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.