keiusui has asked for the wisdom of the Perl Monks concerning the following question:
How do I write the code so that the chatroom only refreshes whenever someone types and submits something new to the room?
Currently, my chatroom refreshes every 15 seconds via a Javascript refresh, regardless of whether anything new is typed in the chatroom. Obviously this is a waste of server resources if someone walks away from their computer with the chatroom open.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl chatroom
by AK108 (Friar) on Mar 21, 2006 at 02:13 UTC | |
|
Re: perl chatroom
by merlyn (Sage) on Mar 21, 2006 at 02:15 UTC | |
by keiusui (Monk) on Mar 21, 2006 at 15:38 UTC | |
by zer (Deacon) on Mar 21, 2006 at 05:37 UTC | |
by keiusui (Monk) on Mar 21, 2006 at 15:34 UTC |