Skip to main content


developerWorks  >  Open source | XML  >

Using Ajax with PHP and Sajax

developerWorks

Level: Intermediate

Tyler Anderson (tyleranderson5@yahoo.com), Freelance Writer, Backstop Media

18 Oct 2005

Register now or sign in using your IBM ID and password.

For years, the goal of creating a truly responsive Web application was hampered by one simple fact of Web development: To change the information on part of a page, a user must reload the entire page. Not anymore. Thanks to asynchronous JavaScript and XML (Ajax), we can now request new content from the server and change just part of a page. This tutorial explains how to use Ajax with PHP and introduces the Simple Ajax Toolkit (Sajax), a tool written in PHP that lets you integrate server-side PHP with JavaScript that makes this work.

Prerequisites

See System requirements below.


System requirements

The following tools are needed to follow along. Pick any Web server and operating system. You can follow along without PHP, but if you are interested in interacting with the sample application download PHP V5. You will need Sajax. This is a single-file library of PHP functions used in this tutorial. You will need a Web browser that supports JavaScript. These include Mozilla, Firefox, Opera, and Microsoft® Internet Explorer®.



Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed


My developerWorks needs you!

Connect to your technical community