Monday, April 23, 2012

PHP refreshing a temporary form while a process is running

I have a simple E-mail done. I want this email form to run during a process. The user will submit a query. He will have to wait a short time to get the results. During this short time I want the screen to show my E mail form and constantly refresh every 5 seconds, when the process is finished and the results are ready I want the form to leave, and the script to continue to the results page created.



I was thinking javascript?


function timeRefresh(timeoutperiod){
setTimeout("location.reload(true);",timeoutPeriod);

Any suggestions Please?





No comments:

Post a Comment