Free jQuery/PHP Powered Chat Room, Fully jQuery/JavaScript.

Thursday, October 15, 2009 3:53
Posted in category Ajax, Development, Jquery, php

we are going to build a little chat program that is really easy to get up and running on any server running PHP. No database is required – as the chat will store itself in a simple text file.

chat-demo

The technologies used:

  • PHP – Will handle all the server side stuff
    • Writing new messages to the text file
    • Reading out new messages from the text file
    • Retrieving the “state” of the text file
    • Basic security
  • jQuery/JavaScript – Will handle the client side stuff. This is an AJAX-y application, meaning that messages pop onto the screen (both yours and others) without needing any page refresh.
    • Periodically asking the server if there are new messages that have been posted
    • Appending new messages to the chat
    • Scrolling the chat down to the most recent messages
    • Asking and setting the user name
    • Limiting the text input to prevent gigantic ridiculous messages
    • Basic security

Full Article Link: http://css-tricks.com/jquery-php-chat/

Demo Link: http://css-tricks.com/examples/Chat/

Download Link: http://css-tricks.com/examples/Chat.zip

Be Sociable, Share!
Father's Day Promo $40 OFF on ANY orrder
You can leave a response, or trackback from your own site.

Leave a Reply