Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Actually, I had a chat script that worked using the whole $| = 1; thing.
The problem I ran into and the reason I tossed out the script was that if no one says anything for a long enough period of time, browsers will return an error saying that the document cannot be loaded. I later found out a way to fix this... All I needed to do was make sure I printed out an HTML comment every 30 seconds or so. lol, wish I hadn't tossed it now... The way I accomplished the client-side was indeed via JavaScript. I just did a setInterval() for 1000ms (1 second) that executed a scrollBy() statement to scroll the chat window down to the bottom. :) In reply to Re: Re: Real-Time Web-Chat with Perl
by mt2k
|
|