Re: pause until page is loaded
| From: | Jochem Maas | Date: | Wed, 19 Apr 2006 23:47:33 +0000 |
| Subject: | Re: pause until page is loaded | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234319@lists.php.net to get a copy of this message | ||
Richard Lynch wrote:
On Tue, April 18, 2006 4:19 pm, Benjamin Adams wrote:I don't suppose this is the time to mention that Wez Furlong wrote a browser plugin that allows you to run php code in the browser in the same way you would normally run javascript ;-) [http://pecl.php.net/package/PHPScript] (Benjamin - just to be clear, Richard is correct and my comment doesn't help your problem 1 iota, sorry :-)I created a script to redirect to a download auto. but it redirects before the Whole page is loaded. How do I pause until page is loaded?If you want to wait until the BROWSER loads the whole page, then the BROWSER has to tell you when it has finished. Since the communication between the BROWSER and PHP is limited to: BROWSER: Gimme this URL PHP: Here, here's your data. Bye. I'm gone. Note that the browser could spend an HOUR (in principle) rendering the data sent by PHP, if that rendering was particularly difficult. So, clearly, PHP is *NOT* going to be able to do what you want. You are therefore urged to consult a Javascript list. Or an AJAX list. Or, really, any kind of mailing list about running code on a BROWSER, but not PHP, which runs on the SERVER.
:-)