Posts tagged http
JavaScript XMLHttpRequest Backward Compatability
Jan 28th
have implemented based on personal experience. and tested in different browsers and their versions works with no problem.
if (typeof XMLHttpRequest === 'undefined') {
XMLHttpRequest = function() {
var progids = ['Microsoft.XMLHTTP', 'MSXML2.XMLHTTP'];
for (var ndx = 3; ndx <= 6; ++ndx) {
/* populate array */
progids[progids.length] = 'MSXML2.XMLHTTP.' + ndx + '.0';
}
for (var i = 0; i < progids.length; i++) {
progid = progids[i];
try {
return new ActiveXObject(progids[i]);
} catch (ex) {
progid = '';
}
}
// if falls here no xmlhttpsupport
return null;
};
}
HTTP Status Codes
Jan 26th
HTTP Status Codes ———————————————————————————— 200 : request completed (OK) 201 : object created, reason = new URI 202 : async completion (TBS) 203 : partial completion 204 : no info to return 205 : request completed, but clear form (more…)


LinkedIn
Twitter
Skype