Created
June 15, 2010 14:37
-
-
Save cfaulkingham/439209 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
var httpRequest = new XMLHttpRequest(); | |
httpRequest.open('GET',url,true); | |
httpRequest.setRequestHeader("Method", "GET " + url + " HTTP/1.1"); | |
httpRequest.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); | |
httpRequest.send(null); | |
// Register the callback to parseGetLength() when the request is done. | |
httpRequest.onreadystatechange = function() { | |
if(httpRequest.readyState == 4){ | |
var returnData = httpRequest.responseText; | |
parseGetLength(queueIdx,httpRequest.responseText); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment