|
Posted by OmegaJunior on 03/03/07 06:32
On Fri, 02 Mar 2007 10:06:08 +0100, Michael Fesser <netizen@gmx.de> wrote:
> .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
Hey, veg_all asked for any solution, not the easiest one. Had I known
about flush() I probably would've opted that too.
Thank you for sharing!
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
[Back to original message]
|