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.


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.

Wordpress Users: Step by Step instructions to add ANY Dynamic Drive script to an entire Wordpress theme or individual Post