Click to See Complete Forum and Search --> : Creating a "wait while processing" script
cocabc
01-21-2003, 04:14 PM
Does anyone have a script that I can use which will allow me to display a page that says something of this nature "please wait, still processing". And then when my database updates are complete I will be redirected to the appropriate page.
Thanks.
Vladdy
01-21-2003, 04:51 PM
In the crudest implementation:
<form .... onsubmit = "{document.body.innerHTML='Your request is being processed'; return true;}">
Webskater
01-23-2003, 03:23 PM
This might be an IE only solution. I don't know, I am not interested in any other browser.
I have a sort of master page with a message at the top "Loading please wait ...". This message is visible or invisible depending on the code.
Underneath is an iframe and into the iframe I load whichever page I want to. In the onload event of the pages in the iframe I set the visibility of the message to false. When a form on anypage in the iframe submits I call a javascript function to set the visibility of the message in the parent frame to true.
It works very well. Users are unaware there are two pages on the screen and, whenever there is any processing going on, the "Loading please wait ..." message is visible. If you structure your page properly you don't get any white space where the message used to be. The iframe moves up to take its place.