469,645 Members | 1,984 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

How to display "Please wait" window

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
Jul 20 '05 #1
3 13187
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

Jul 20 '05 #2
Erwin Moller wrote on 27 Nov 2003:

<snip>
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()


Just be aware that pop-up blockers will block this.

Mike

--
Michael Winter
M.******@blueyonder.co.uk.invalid (remove ".invalid" to reply)
Jul 20 '05 #3
Michael Winter wrote:
Erwin Moller wrote on 27 Nov 2003:

<snip>
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()


Just be aware that pop-up blockers will block this.

Mike


True Mike,

If that is a worry, a good alternative could be:

Place an image 'please wait' (animated or not) and replace that image when
the end-of-page is flushed with an empty image or 'finished'.

Regards,
Erwin Moller
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by John Walker | last post: by
15 posts views Thread by Agnes | last post: by
3 posts views Thread by bdog4 | last post: by
2 posts views Thread by =?Utf-8?B?Z2VvZmZh?= | last post: by
5 posts views Thread by Jeremy | last post: by
1 post views Thread by =?Utf-8?B?Sm9obiBXYWxrZXI=?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.