News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend Developer Zone:
AJAX Chat Tutorial Pt 5 Javascript, Sending Chat Messages, Screen Name Changes
December 27, 2006 @ 08:10:00

The Zend Developer Zone has posted the fifth part of their Ajax chat tutorial series from maugrim today, picking up from the previous parts before.

One aspect of writing AJAX enabled applications is that one can no longer pass off Javascript as an afterthought. If you're intent on creating dynamic web applications using AJAX, visual effects, and funky new age interfaces then you'll just have to start recognising that Javascript is going to be a primary development language.

They show how to create and use the XMLHttpRequest object to grab the information from the backend script using a saveMessage call from a form button. When the message comes back, their handleRefresh function takes care of updating the textarea with the results.

They also include the code to allow user's to change their name on the server via the same interface (and the same controller).

0 comments voice your opinion now!
ajax chat tutorial send message screen name change ajax chat tutorial send message screen name change


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Zend_Controller_Action, Now With Parameters!

Vanessa Vasile's Blog: Using PHP to Perform DNS Lookups

Andrew Curioso's Blog: Error handeling stack in PHP 5.3+

Elizabeth Smith's Blog: How to Compile PHP5.2 and PHP-GTK2 on Windows using Visual C++ Express

The PHP Blog: Writing a Pastebin in PHP


Community Events

Don't see your event here?
Let us know!


laravel introduction series feature podcast unittest threedevsandamaybe api wordpress interview voicesoftheelephpant development laravel5 library release community framework opinion language extension

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework