I once built a chat room tool using CF and AJAX so my wife (a high-school 
teacher) could use it to hold scheduled chat sessions with her students who had 
study/assignment questions.  I simply had the JavaScript on the client-side 
make a request to the server for any new messages every few seconds (each 
request would pass in the unique ID number of the last chat message displayed 
to the user, and the request would return any messages with a higher message ID 
number).

It seems to me it's a lot less work for the server if the client takes 
responsibility for looking for new content, but it may depend on the context of 
how the chat tool will be used:  single chat rooms with multiple participants, 
where the conversation is fast, or numerous one-on-one chats where there may be 
long pauses between new posts.

--Brian

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280450
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to