Login   Register  
PHP Classes
elePHPant
Icontem

Class: AJAX driven simple chat

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ashraf Gheith  >  AJAX driven simple chat  >  Download .tar.gz .zip  >  Support forum Support forum (4)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: AJAX driven simple chat
Base name: ajax-chat
Description: Web based chat using AJAX to update the dialog
Related classes: , , , , , , ,
Version: -
PHP version: -
License: Freely Distributable
All time users: 11132 users
All time rank: 85
Week users: 23 users
Week rank: 100
Picture of Ashraf Gheith
Author: Ashraf Gheith <e-mail contact>
Packages: 8 Browse this author's classes Browse this author's classes
Country: Bosnia and Herzegovina Bosnia and Herzegovina - PHP jobs in Bosnia and Herzegovina
Age: 28
All time rank: 611 in Bosnia and Herzegovina Bosnia and Herzegovina
Week rank: 76 Down1 in Bosnia and Herzegovina Bosnia and Herzegovina Equal
Innovation award
Innovation award
Nominee: 1x


  Detailed description  
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.

 

  Groups  
Group folder image Chat Chating and instant messaging View top rated classes
Group folder image AJAX Interact with the Web server without page reloading View top rated classes

  Screenshots Screenshots   Freshmeat project   Rate classes User ratings   Applications   Files Files  
  Files folder image Screenshots  
Chat page
File Role Description
Accessible without login Image file chat.jpg Screen Chat page
Accessible without login Image file index.jpg Screen home page


  Innovation Award  
PHP Programming Innovation award nominee
July 2006
Number 3
Chat applications are usually very interactive. Users exchange many messages, often very frequently.

Some Web based chat applications are a bit annoying, as they require frequent page reloading to update and display the messages that the users exchange.

Nowadays, using AJAX is an obvious approach to avoid unwanted page reloads. This class implements a AJAX based chat system precisely to take advantage of that possibility.

Manuel Lemos

  Freshmeat project  
AJAX driven simple chat
Project record: ajaxchat
Popularity score: 17.49
Vitality score: 44.32

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Sufficient (69.0%)
Sufficient (70.2%)
-
Sufficient (73.8%)
-
-
Not sure (48.9%)
1566
Month:
Not yet rated by the users

  Applications that use this class  
Link Description
Live example 2 This is a new example of this chat with who is online.
Live example I have made a live chat with some adds-on.. (email me to send you this one)
Bulgarian This is an implentation on a Bulgarian site
Yet Another Example The prototype example
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file chat.php Class The Main Class
Plain text file chat.sql Data The SQL code
Plain text file refresh.php Aux. Retrieve data from class
Plain text file submit.php Aux. Submits data to the class
Plain text file index.php Example Example file

Download all files: ajax-chat.tar.gz ajax-chat.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.