Tuesday, September 6th, 2005

Ajax IM

Category: Showcase

There is another ajaxian IM client: Ajax IM.

Apart from the fact that you have to register, it is actually pretty clean and slick, and is created in the “looks like an app, runs in a browser” mode of web apps.

What is it?

ajax im (“asynchronous javascript and xml instant messenger”) is a browser-based instant messaging client. It uses the XMLHTTPRequest object in JavaScript to send and receive commands to and from the server. No refreshing of the page is ever needed for this “web application” to work, as everything is updated in real-time via JavaScript.

How does it work?

The XMLHTTPRequest object allows HTTP requests to be sent to the server and get input back from the server. There are two parts to the client-server interaction through this object.

1. The client “pings” the server (a PHP script) for new messages. The server in turn queries a database for any messages for the client, and returns them as XML. The XMLHTTPRequest object passes this XML document be parsed by the rest of the JavaScript.

2. The client sends data to the server (a PHP script), such as a new message to another user. This data is then processed by the server (“cleaning” the data of anything invalid) and put into the database, which is later “pinged” by another client.

In effect, we are simulating a client-server-client relationship using only the HTTP protocol.

Demo Available Here

Ajax IM

( via Adam Prescott )

Posted by Dion Almaer at 1:24 am
3 Comments

+++--
3 rating from 5 votes

3 Comments »

Comments feed

ajax im now works in Internet Explorer 6.

Comment by EndTwist — September 6, 2005

Can anybody give instrucctions to setup mySQL database to get proper work of ajax im?

Comment by Angel — November 29, 2005

I can’t install..pls help…

Comment by goran — December 20, 2005

Leave a comment

You must be logged in to post a comment.