|
Posted by JMB on 10/10/50 11:33
This is done with AJAX. You will still be making a request, but the page
contents will only be rewritten in whatever container you are using whenever
there is a new message. I am working on something like this while working
on a tool management app. It isn't perfect for some browsers, but it has
been working from my laptop.
Here is one that someone has made that is current:
http://gamma.nic.fi/~jmp/chat/app.html
Play around with some AJAX technology and test and retest.
Take it easy, and hope it helps!
"Gernot Frisch" <Me@Privacy.net> wrote in message
news:3v5sjjF14bp03U1@individual.net...
> 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?
>
> Would I have to set a 'refresh', so the page gets reload every 2 seconds?
>
> --
> -Gernot
> int main(int argc, char** argv) {printf ("%silto%c%cf%cgl%ssic%ccom%c",
> "ma", 58, 'g', 64, "ba", 46, 10);}
>
>
>
>
Navigation:
[Reply to this message]
|