Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save avantgardnerio/8ca59428679a71614a9d92ac6984e5c1 to your computer and use it in GitHub Desktop.
Save avantgardnerio/8ca59428679a71614a9d92ac6984e5c1 to your computer and use it in GitHub Desktop.
<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