Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.27 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function fAsynchronousGet() {
  2. var oXMLHttpRequest = new XMLHttpRequest; oXMLHttpRequest.open("GET", "http://localhost", true); oXMLHttpRequest.onreadystatechange = function(data) { if (this.readyState == XMLHttpRequest.DONE) { alert(data);} }; oXMLHttpRequest.send(null); };