Page 1 of 1

Popup showing while running php script

Posted: Fri Apr 29, 2011 3:19 am
by eivind
Hi,

Anyone knows if there's a way to show the progress of a running php script? Either by showing a progress bar or having a popup showing up with a timeglass spinning as long as the script runs.

Re: Popup showing while running php script

Posted: Fri Apr 29, 2011 7:46 am
by oscardog
Sort of. What you could do is have a javascript function called when the form is submitted / link is clicked which creates the popup. This will show while the PHP script is ran, and then once it's done it will load the next page. It's more of a trick rather than an actual realistic loading screen.

Alternatively, you can use JavaScript and iFrames to have a realistic loading bar (i.e. Like on multiple upload sites).

Re: Popup showing while running php script

Posted: Fri Apr 29, 2011 7:48 am
by fugix
found quite a few websites that share their insight on this matter

http://www.google.com/search?q=progress ... rt=10&sa=N

Re: Popup showing while running php script

Posted: Wed May 04, 2011 6:23 am
by eivind
Thanks :)