AJAX: AJAX driven simple chat Ashraf Gheith (contact me)
This class can be used to implement a simple Web based chat system that uses AJAX to update the chat dialog display area without reloading the whole page.
The class generates a page with a Web form to submit what each chat line that the users type.
The chat lines are sent to the server using a XMLHttpRequest object.
The chat lines are received by a server side script that uses the class to store what each user entered in a MySQL database table.
In response, the class outputs the chat list already formatted to by displayed in the user browser pages.