You are here: Re: How to display web page continuosly? « PHP Programming Language « IT news, forums, messages
Re: How to display web page continuosly?

Posted by Gootes on 03/02/07 15:09

flush() is good, but AJAX is modern and cool and everybody wants modern and
cool webs :)

Michael Fesser 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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация