Monday, December 5th, 2005

xajax tutorial and demos: Ajax with PHP made easy

Category: Articles, Examples, PHP

Marco van Hylckama Vlieg has put together a nice tutorial on the PHP framework xajax.

The tutorial walks through the creation of a server-side PHP xajax function, and the magic of the xajaxResponse class.

Then things are wrapped up with:

$objAjax = new xajax();
$objAjax->registerFunction('makeBold');
$objAjax->processRequests();

Resources

xajax update

A new version of xajax is coming with the features:

  • New error handling: Non-fatal PHP errors can now be easily trapped and written to a log file or displayed in an alert dialog in the client.
  • OOP: You can now register instance and static class methods to be callable through xajax. This is essential to make it easy to add xajax to many OOP CMS solutions.
  • Internationalization: xajax defaults to use UTF-8, but we’ve added the ability to set the charset to whatever you need to.
  • External Function Registration: you can now register functions in external .php files and xajax will dynamically include the file and call the function only if it is requested.

xajax-tutorial.jpg

Posted by Dion Almaer at 1:44 am
2 Comments

+++--
3.7 rating from 85 votes

2 Comments »

Comments feed

I was there at the conference where Marco did his presentation and it definitely prompted me to download xajax and check it out. Quite charming, that’s for sure!

Comment by stefan — December 5, 2005

I made Russian version of this xajax demo site on library version 0.2.4

Comment by Greg — September 21, 2006

Leave a comment

You must be logged in to post a comment.