473,289 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

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 13431
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: metsymani | last post by:
In my web application, I have a search screen coded in ASP.Net. The Search process takes lot of time. So, I need to show a wait page informing the user that "Search is in progress. Please wait" along...
3
by: John Dalberg | last post by:
Hi I have a form that opens a new window for the results. Because the results might take a few seconds due to server processing, I would like to display a message "please wait" in the new...
9
by: John Walker | last post by:
Hi, I have a datagrid with a radiobutton template column, with AutoPostBack set to TRUE. When the user clicks on a radiobutton the application will PostBack, and in the PostBack there will be...
15
by: Agnes | last post by:
As the user click 'save' , i want to show a little prompt' Record is saved" (for 1-2 secs) , then it will closed automically, In my previous vfp application, there is a function "wait window" ....
3
by: bdog4 | last post by:
I've seen on some php forums that they use some type of popup box that I assume is javascript to display a animated gif/flash when you do a quick edit. My popup blocker does not detect it so I...
2
by: =?Utf-8?B?Z2VvZmZh?= | last post by:
I cannot figure this out and would appreciate any help..... I have a datagrid view that displays the results from a Stored Procedure. it can take awhile to load..... the stored procedure fires...
5
by: Jeremy | last post by:
Hi all, I have database actions that will potentially take several seconds to complete. My normal page uses AJAX so keeping the user informed of what is happening is not a problem. ...
2
by: ccbryan | last post by:
I have Googled and Googled, but I only find explanations of this for ASP.NET, etc. How do you put up a 'please wait' window at the beginning of a process and close it at the end of the process in a...
1
by: =?Utf-8?B?Sm9obiBXYWxrZXI=?= | last post by:
Hi, I have a webpage designed with asp.net 2.0. Is there a way to display a "please wait" message to the screen horizontally centered and veritcally 20px from the VISIBLE top of the page,...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.