Ajax Loader

 
 
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.
 
 
  1. === Paste this code into an external JavaScript file named: ajaxLoader.js ===

  2.  

  3. function ajaxLoader(url,id) {

  4.   if (document.getElementById) {

  5.     var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();

  6.   }

  7.   if (x) {

  8.     x.onreadystatechange = function() {

  9.       if (x.readyState == 4 
 
Copy to Clipboard      Download code as Text Format
 
  Date entered : 19th Mar 2007
  Rating : No Rating
  Accessed  :  7207
  Submitted by :  loopsnlogic
 
   Add Comment  Printer friendly
   View All Comments  Email to a friend
   Add to my Favourites Download PDF version
   Rating  
 
                 Click each image to add
this page to each site.
 
 
 
Comments Available

    No comment available at the moment.Be the first one to make a comment

 
Related AJAX Source Codes
  • Spring
  • Wraps a string to a given number of characters using a string break character
  • Uppercase the first character of each word in a string
  • Make a string's first character uppercase
  • Strip whitespace (or other characters) from the beginning and end of a string

  • Copyright © 2013 VisualBuilder. All rights reserved