Skip to content

Instantly share code, notes, and snippets.

@lmccart
Created March 2, 2013 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmccart/5073710 to your computer and use it in GitHub Desktop.
Save lmccart/5073710 to your computer and use it in GitHub Desktop.
$.ajax({
url: 'http://godseyes.nodejitsu.com/enter_random_session/',
type: 'GET',
dataType: "json",
success: function(data) { console.log("data = "+data); },
error: function (xhr, err) {
console.log("readyState: " + err + xhr.readyState + "\nstatus: " + xhr.status);
console.log("responseText: " + xhr.responseText);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment