Click to See Complete Forum and Search --> : Delay desplaying a web page to wait for database
benny666
10-22-2003, 07:42 PM
I want to publish a form that when the user will click submit
the page will show wait... and then move to the next form
the trick is that I need this wait to be an arbitrary time depending on the wait for the database response
can any one help???
Khalid Ali
10-22-2003, 07:45 PM
sounds like u are using some sort of db and web server,in that case just write server side code that will execute once the db is done working and send a response to the page to go forward
benny666
10-25-2003, 11:31 AM
actually I am useing cgi scripts but the problem is that after the query from the db comes back since there are a lot of names the page take about a minuit to load a drop down box.
What I need is a middle page like expedia that will say please wait and then will load the page as is no wait time
Khalid Ali
10-25-2003, 12:02 PM
try to understand what I suggested.
your best bet is to do it on the server side exactly the way I mentioned above.
For a waite page you can return a page and then once waite is over you can send the final page something like this
in php
if(!dbdone){
$tempLoc = "waite_page.html";
header("Location:$tempLoc");
}
if(dbdone){
$thankyou = "thankyou_page.html";
header("Location:$thankyou ");
}
something along these lines will work
benny666
10-25-2003, 01:39 PM
In order to make it clear lets asume that the db work is done but the thankyou.html page is very very big and desplaying this page will take about a minuit.
does it make sense???