topical media & game development

talk show tell print

#javascript-code-04-ajax.js / js



  // Do a request for new data
  ajax({
      // Do a simple GET request to the CGI script which
      // returns an HTML block of LI elements
      type: "GET",
      url: "auto.cgi?q=" + w,
                      
      // Watch for when the HTML comes back
      onSuccess: function(html){
          // Insert it in to the results UL
          results.innerHTML = html;
                          
          // And hide the loading animation
          hide( id("qloading") );
  
          // Process the results...
      }
  });
  
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.