Hello, you have come here looking for the meaning of the word
User:Hippietrail/hippajax.js. In DICTIOUS you will not only get to know all the dictionary meanings for the word
User:Hippietrail/hippajax.js, but we will also tell you about its etymology, its characteristics and you will know how to say
User:Hippietrail/hippajax.js in singular and plural. Everything you need to know about the word
User:Hippietrail/hippajax.js you have here. The definition of the word
User:Hippietrail/hippajax.js will help you to be more precise and correct when speaking or writing your texts. Knowing the definition of
User:Hippietrail/hippajax.js, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
// abstract function to do xmlhttprequest
function ajax(url, on200, on404) {
var req = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');
req.open('GET', url, true);
req.onreadystatechange = function() {
if (req.readyState == 4) {
if (req.status == 200) {
// TODO handle xmlhttprequest cache bug in some msie versions
if (req.responseText == '') {
on404();
} else {
on200(req);
}
} else if (req.status == 404) {
on404();
} else {
debugPrint('bad rsc status ' + req.status + '\n');
}
}
};
req.send(null);
}