Page 1 of 1
Whilst loading
Posted: Wed Jun 11, 2003 9:34 am
by Brakanjan
Hi
I generate a php script that involves connecting to database and doing numerous queries. I would like to show something to the user while the page is loading, but am not sure how to do this. Isn't there something similar to lowscr?
tx
Posted: Wed Jun 11, 2003 9:44 am
by []InTeR[]
I'm doing this with javascript and layers in html.
In the 'update' while loop, i echo a part of a script that changes a div.innerHTML. After this is
flush();.
If the 'loading' is ready i reload the page.
Posted: Wed Jun 11, 2003 9:51 am
by Brakanjan
Hi
tx for the tip, but where should the flush() command be? How do you know your page has finished loading?
Posted: Wed Jun 11, 2003 10:00 am
by []InTeR[]
If all the php script is done, the page is ready.
So at the end. (server side only).
And the flush is after the 'javascript-update' echo...
Posted: Wed Jun 11, 2003 10:16 am
by Brakanjan
sure.
I see here "flushing will not work in a PHP/Apache configuration running on a Windows system." so that's why I couldn't see anything working
tx anyway