zefrans
06-10-2008, 01:03 PM
Hello,
I wrote a little form with a submit button. When the user clicks on submit, a javascript function is executed. That function makes some expensive queries and needs 5-10 seconds before it finishes. Therefore I would like to show an animated gif mimiking a waitbar while the function is calculating. My problem is that when I do that, he first executes the function (5-10 secs), then shows the waitbar, then shows the results... Is there a way to force the display of the waitbar before he begins (and during) the execution?
Thank you for your help!
François
I wrote a little form with a submit button. When the user clicks on submit, a javascript function is executed. That function makes some expensive queries and needs 5-10 seconds before it finishes. Therefore I would like to show an animated gif mimiking a waitbar while the function is calculating. My problem is that when I do that, he first executes the function (5-10 secs), then shows the waitbar, then shows the results... Is there a way to force the display of the waitbar before he begins (and during) the execution?
Thank you for your help!
François