Before you start
This tutorial is for those interested in developing rich Web applications that dynamically update content using asynchronous JavaScript and XML (Ajax) with PHP, without having to refresh entire Web pages with each user click. This tutorial assumes basic PHP concepts, including the use of if and switch statements, and functions.
You will learn about Ajax, as well as issues surrounding its usage. You will also build an Ajax application in PHP that will display panels of a section of a previously written tutorial. Clicking on a panel link will reload only the content section and replace it with the content of the selected panel, saving bandwidth and time loading the page. Then you will integrate the Simple Ajax Toolkit (Sajax) into your Ajax application, which will synchronize the use of Ajax, simplifying development.
The following tools are needed to follow along:
- Web server
- Pick any Web server and operating system. Feel free to use Apache 2.X or the IBM HTTP Server.
- PHP
- You can follow along without PHP, but if you are interested in interacting with the sample application download PHP V5.
- Sajax
- You will need Sajax. This is a single-file library of PHP functions used in this tutorial.
- Web browser
- You will need a Web browser that supports JavaScript. These include Mozilla, Firefox, Opera, and Microsoft Internet Explorer.




