|
Posted by J.O. Aho on 10/13/97 11:33
Gernot Frisch wrote:
> Hi,
>
> how would I make a chat program, in php/javascript that causes the
> least traffic for the clients. Thus: Only reloading the contents when
> there is some new text available...
>
> Can this be done? The Server can't actively send data to the client,
> can it?
No, this has to be requested by the client.
> Would I have to set a 'refresh', so the page gets reload every 2
> seconds?
You can use meta tag or header to do this, here is a meta tag:
<meta http-equiv="refresh" content="2">
If you have to have a second class chat program, you should look into java
(not javascript), but if you want a first class chat program, then just use IRC.
//Aho
[Back to original message]
|