If you really want to get into the nitty-gritty of Ajax, here are a few pages with good information. Google "Ajax tutorial" for more.
- Understanding Ajax: Getting Started
- AJAX Components
- Database-enabled Ajax with PHP
- Professional Ajax: XML, XPath, and XSLT, Pt. 1
HEAD area of your Web page source code.
HEADit's easier to manage, with less clutter in the
BODYarea, where you'll be working with the examples.
Now, let's learn how to use it.
- The URL(s) of the content to be retrieved.
- A place on your Web page to put the content.
The URLs of the Content to Be Retrieved
XMLHttpRequest function, the heart of Ajax. (Work-arounds require relay software on the server. This is addressed later.)
The examples in this article assume you have two files on your server,
For use in the examples, let
filetwo.html into the document root of your server (the directory where your domain's main or index Web page file is located). The files could be in other directories. The examples below assume they are in the document root.