|
Posted by Michael Fesser on 03/02/07 09:06
..oO(OmegaJunior)
>On Fri, 02 Mar 2007 06:59:43 +0100, <veg_all@yahoo.com> wrote:
>
>> I have a script that takes collects info from various websites to
>> compile a report. However whenever I run it, my web browser waits for
>> the script to finish ( 1 minute ) before displaying the report. But my
>> script is outputting data every few seconds . So is there a way to
>> make my browser display the web page every few seconds and update
>> automatically as more data comes?
>
>Yup, there is. It's called AJAX, and it's javascript method. You can use
>it to have a web page waiting for input from another script (in your case
>the php script).
Two years ago the answer probably would have been as simple as
| Try flush() to force the script output being sent and don't put the
| entire page into a big table, as some browsers are not able to render
| it incrementally.
Today all folks cry for AJAX immediately, even for something as simple
as a status report ...
Micha
[Back to original message]
|