Created
April 20, 2016 03:22
-
-
Save avantgardnerio/8ca59428679a71614a9d92ac6984e5c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript"> | |
var url = 'https://galvanize-student-apis.herokuapp.com/gdating/members?limit=10'; | |
var method = 'GET'; | |
var xhr = new XMLHttpRequest(); | |
xhr.open(method, url, true); | |
xhr.onload = function(data) { | |
console.log(data.currentTarget.response); | |
}; | |
xhr.onerror = function(err) { | |
console.log(err); | |
}; | |
xhr.send(); | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment