473,573 Members | 3,011 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 13459
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 serversidescrip t 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 windowPLeaseWai t.
4) when you serverside script finishes, it outputs new javascript with the
windowPLeaseWai t.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 serversidescrip t 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
windowPLeaseWai t. 4) when you serverside script finishes, it
outputs new javascript with the windowPLeaseWai t.close()


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

Mike

--
Michael Winter
M.******@blueyo nder.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 serversidescrip t 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
windowPLeaseWai t. 4) when you serverside script finishes, it
outputs new javascript with the windowPLeaseWai t.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
1011
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 with an animated gif. I have placed a div in the search page which contains the message and animated gif. I hide the div by making "display: none" in...
3
4620
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 window, erase that message when the processing is done and show the results. How is this done? John Dalberg
9
3325
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 certain logic performed, and the dataview will be re-binded to the datagrid. There turns out to be about 2-5 seconds delay between the time the user...
15
2571
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" . In .net, is there any similar features ? Thanks From AGnes
3
25454
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 leads me to believe it is javascript. Does anyone have an ideas on how I can do this or an example/tutorial? They use it on Invision Power Boards ...
2
5344
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 when a Calendar is clicked. ( a date is part of the stored procedure ) How can i just show a new page or a pop-up that says "please wait" until the...
5
3227
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. However, the page also has fallback code in case of no Javascript. In this case I would like to display temporary "please wait" type page
2
6721
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 regular non-web VB.NET application? Seems like there should be a straightforward way to do this... Thanks, Chandler
1
2354
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, regardless of what kind of scrolling the user has done? I am currently displaying a "please wait" message (the DIV section shown below, which i'm...
0
8014
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8060
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5581
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5289
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3730
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3731
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2197
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1297
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.