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?
You can perform the query using AJAX request
and when the request sent show a light box you can use this one I like it
http://www.jacklmoore.com/colorbox
after the response comes back from the server you check if the textfield is empty or not if its empty close the light box else let the user finish the form and close it
if you need code just leave a comment