Now its the time of comet.
comet is reverse ajax.If you are using ajax in chat applications u need to check everytime for database updations but in the case of comet its all about server side events.
We can set the certain events @server side then it will automatically update the webpage when the database is getting updated.that is we do not need to give requests all the time.
So that we can avoid the server headache due to large number of requests and the application will be very much faster.
This is a live chat example using comet.
check it out: http://www.zeitoun.net/articles/comet_and_php/start
its beyond ajax