Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function httpGetAsync(theUrl, callback)
- {
- var xmlHttp = new XMLHttpRequest();
- xmlHttp.onreadystatechange = function() {
- if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
- callback(xmlHttp.responseText);
- }
- xmlHttp.open("GET", theUrl, true);
- xmlHttp.send(null);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement