Oracle Magazine Special offer for AjaxImpact.com Visitors!! Subscribe to Oracle Magazine for Free!
AJAX IMPACT


TUTORIALS
Learn xajax in 10 Minutes
03/02/2006 By xajaxproject.org


xajax is designed to be extremely easy to implement in both existing web applications as well as new projects. You can add the power of xajax to nearly any PHP script in seven easy steps:

1. Include the xajax class library

2. Instantiate the xajax object

3. Register the names of the PHP functions you want to be able to call through xajax

4. Write the PHP functions you have registered and use the xajaxResponse object to return XML commands from them

5. Before your script sends any output, have xajax handle any requests

6. Between your head tags, tell xajax to generate the necessary JavaScript

7. Call the function from a JavaScript event or function in your application



That's it. xajax takes care of most everything else. Your biggest task is writing the PHP functions and returning xajax XML responses from them-- which is made extremely easy by the xajaxResponse class.

   Read Full Tutorial

 Rate this Ajax Tutorials
Error connecting to mysql