New Revised CSS Library Forums Web Tools
FAQs Awards Usage Terms Contact
Categories
Other Sections
Sweet Ads
Compatibility
Bookmark online:

FF1+ IE5+ Opera7+

Ajax load XML file script

Description: This script demonstrates the concept of using Ajax to load a simple XML file and display it on the page. Ajax refers to the use of DHTML interacting with the server to display requested data (ie: xml files, submitted form data etc) without having to reload the page.

Demo:


Directions: Developer's View

Step 1: Add the below script to the <HEAD> section of your page:

Select All

Step 2: Add the below code to the BODY section of your page, taking note of the onLoad event handler that's inserted:

Select All

Change "basic.xml" in the above code to your own XML file to display.