Activate your free membership today | Log-in

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 )

Related Content:

  • Ajax.NET Professional retired
    The creator of Ajax.NET Professional announced that he has stopped working on the open-source Ajax framework. He recommends migrating projects to...
  • Upgrading to Ajax apps increases productivity
    Find out why internal apps are ripe for replacement with Ajax-based apps, what common mistakes users make when debugging apps and where you can find...
  • Automated testing tools and Ajax
    Testing Ajax using automated tools requires a lot of skill on the part of the tester. Expert Mike Kelly explains where to begin and what you may need...
  • Ajax after the hype
    Yes, there was exuberance when Ajax burst on the scene in 2005, but by now it appears that the hype was justified by the benefits of the technology,...
  • AjaxAnywhere Project

Posted by Dion Almaer at 1:24 am
3 Comments

OOOOO
Rate the above post

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.