this code works fine on every other browser that i have (and i test across alot of them) except for the mac version of firefox.
function getXMLObject(){
var xmlHttp = false;
try {
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP") // For Old Microsoft Browsers
}
catch (e) {
try {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP") // For Microsoft IE 6.0+
}
catch (e2) {
xmlHttp = false // No Browser accepts the XMLHTTP Object then false
}
}
if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
xmlHttp = new XMLHttpRequest(); //For Mozilla, Opera Browsers
}
return xmlHttp; // Mandatory Statement returning the ajax object created
}
I think the offending code is:
xmlHttp = new ActiveXObject(“Msxml2.XMLHTTP”)
its odd that it this works on safari (mac) chrome(mac) but not firefox… I am used to firefox being worry free…