| |
| |
Use this script to load XML and HTML files with XMLHTTPREQUEST. In the tag,just add the name of the file to load and the element to display the file in,usually a element. |
| |
|
| |
=== Paste this code into an external JavaScript file named: ajaxLoader.js ===
function ajaxLoader(url,id) {
if (document.getElementById) {
var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
}
if (x) {
x.onreadystatechange = function() {
if (x.readyState == 4
|
|
| |
|
|