By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,600 Members | 1,683 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,600 IT Pros & Developers. It's quick & easy.

How to display "Please wait" window

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.