Re: pause until page is loaded

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, April 18, 2006 4:19 pm, Benjamin Adams wrote:
> 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.

:-)

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux