|
Hi everyone,
I've got the following code successfully working in IE7 but it doesn't work in Firefox, Opera or Safari. Can anyone help at all? (This is our new company site and I can't afford for users to come to the site using non-IE browsers and have issues). I will of course be creating Ajax free alternatives to these pages but hope I can get it working.
function getXMLHTTPRequest() {
var request = false;
try {
request = new XMLHTTPRequest(); /* e.g. Firefox */
}
catch (err1) {
try {
request = new ActiveXObject("Msxm12.XMLHTTP"); /* Some IE Versions */
}
catch (err2) {
try {
request = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (err3) {
request = false;
}
}
}
return request;
}
|