Kannan wrote:
Hello,
I have a requirement that specifies that I display a "Please Wait..."
window (preferably modal) along with a gif that mimics a progress bar
during a save operation. The dialog needs to be closed at the end of
the operation. How do I go about this...
Issues are:
1. I believe a showModaldialog would stop all back ground processing
and shift control to the modal dialog.
2. I would like to close the dialog from the parent window when the
process is complete.
Please do let me know of any options that I can use for this...
Thanks in advance
Hi Kannan,
I assume you call some serversidescript that takes a lot of time to finish.
Is that correct?
If correct, this is an easy way to accomplish your wishes:
1) let the server output HTML that includes some javascript.
Be sure to flush this!
2) the javascript is written in the head, and executed right away (no
OnLoad!!)
3) The javascript creates a new window that contains a nice 'please wait'
with some progresbar. Lets name it windowPLeaseWait.
4) when you serverside script finishes, it outputs new javascript with the
windowPLeaseWait.close()
That should do the trick.
Regards,
Erwin Moller