Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Real-Time Web-Chat with Perl

by mt2k (Hermit)
on May 04, 2002 at 01:49 UTC ( #163952=note: print w/replies, xml ) Need Help??


in reply to Re: Real-Time Web-Chat with Perl
in thread Real-Time Web-Chat with Perl

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. :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://163952]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2022-10-06 12:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (26 votes). Check out past polls.

    Notices?