By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,948 Members | 1,587 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,948 IT Pros & Developers. It's quick & easy.

Asynchronous Updates Between Web Clients

P: n/a
I think it's okay to ask this question in this group, but if not please
point me to the correct one!

How does one go about doing asynchronous updates between two web
clients? Take Google Chat for example... how does Google Chat update a
chatter's chat window with text entered by the other chatter?

Sep 24 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a

Hi,
How does one go about doing asynchronous updates between two web
clients? Take Google Chat for example... how does Google Chat update a
chatter's chat window with text entered by the other chatter?
Have a look at "AJAX" i.e. at
http://developer.mozilla.org/en/docs...etting_Started

greets

Michael

Sep 24 '06 #2

P: n/a

Bryan wrote:
I think it's okay to ask this question in this group, but if not please
point me to the correct one!

How does one go about doing asynchronous updates between two web
clients? Take Google Chat for example... how does Google Chat update a
chatter's chat window with text entered by the other chatter?
It doesn't work client to client. It works client to server, both
clients communicating with the server as the bridge.

User types message into Client 1. Client 1 sends message to server.
Server stores message. Client 2 polls server for new messages, server
sends message to client 2. Client 2 displays message to User 2. User 2
enters message. Client 2 sends message to server....on and on and on.

Sep 24 '06 #3

P: n/a

It's either "pull" or "push".

"Pull" is a more standard out-of-the-box way when clients are pulling
server periodically for updates (usually, using Ajax requests on the
background).

"Push" is more advanaced technique where server is sending data to the
clients. It's supposed to be less resource-consuming but it's not
widely supported, some people might say it actually consumes even more
resources as it requires the server to keep open connections to all
clients. Google for "comet Ajax".
http://www.ajaxian.com/archives/come...x-applications,
for example

Sep 24 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.