How could I realize to "stream" the output to the client without refreshing any frame? I tried using a NPH-Script by setting the special Variable $| = 1; but that doesn't seemed to do the trick.
Most browsers start rendering after they have received 512 bytes.
A while ago, I created a web-chat that connects to IRC using POE::Component::IRC. (It's in use (as far as I know) on FellaX.net and Rhizomatic.net). Only Konqueror really needs the page to load completely, so it doesn't work in that browser. It does however work perfectly in Netscape 4, MSIE, Mozilla, Opera and many others.
Example (#foo on irc.convolution): http://webchat.convolution.nl/
Warning: I coded this a long time ago, and it's coded quite badly.
The important piece of code is:
print '<!--', '*'x512, '-->'
This is quite embarrassing :)
Are you posting in the right place? Check out Where do I post X? to know for sure.
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
Want more info? How to link
or How to display code and escape characters
are good places to start.