Posted by Petr Vileta on 03/03/07 00:05
<veg_all@yahoo.com> píse v diskusním príspevku
news:1172815183.200690.261000@s48g2000cws.googlegroups.com...
>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?
>
Use flush() and some other tricks.
1) do not use <table> design or if you must, use a short tables. Many
browsers do not dispaly anything until get the </table> tag.
2) Many browsers wait for unspecified number of bytes before dispaly part of
page content. To avoid this you can send say 1024 spaces - char(32) - after
each data you need to display immediately. Browser reduce these 1024 spaces
to 1 only but must show content.
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
[Back to original message]
|