Created
December 9, 2012 15:01
-
-
Save pewerner/4245462 to your computer and use it in GitHub Desktop.
Http Request JavaScript
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 http_request = new ActiveX("Msxml2.XMLHTTP"); | |
var url = "http://localhost:3000/users/2.json" | |
http_request.open( "GET", url, true ); | |
http_request.send(null); | |
//--This is what you get back from the request | |
var response = http_request.responseText |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment