Created
January 20, 2015 14:27
-
-
Save vaclavcadek/3a5d886f2b8deffe54bb to your computer and use it in GitHub Desktop.
Simple XMLHttpRequest
This file contains hidden or 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
var xhr = new XMLHttpRequest(); | |
xhr.open('GET', '/media/resources/gamedev/weapon.json', true); | |
xhr.onload = function() { | |
JSON.parse(this.responseText); | |
}; | |
xhr.send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment