Advertisement
Ladies_Man

CX XHR Example

Jul 24th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var xhr = new XMLHttpRequest();
  2.     xhr.open("GET", "http://", true);
  3.     xhr.send(null);
  4.     xhr.onreadystatechange = function() {
  5.             if (4 == xhr.readyState) {
  6.             if (200 == xhr.status) {
  7.                 console.log( xhr.responseText );
  8.             }
  9.             }
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement