marcowatty2000
11-24-2008, 04:54 AM
Hi all,
I'm trying to get a XMLHTTPRequest to work and it does in IE but not in firefox. My call is as follows:
function getXmlHttpRequestObject()
{
if (XMLHttpRequest) {
return new XMLHttpRequest(); //Not IE
} else if(window.ActiveXObject) {
return new ActiveXObject("Microsoft.XMLHTTP"); //IE
} else {
alert("Your browser doesn't want to use AJAX");
}
}
I've looked on the web and on webdeveloper.com, but none of the suggestions have solved my problem.
I'm making a call from one server to another, does this cause problems for Firefox?
Can anyone help?
Many thanks.
I'm trying to get a XMLHTTPRequest to work and it does in IE but not in firefox. My call is as follows:
function getXmlHttpRequestObject()
{
if (XMLHttpRequest) {
return new XMLHttpRequest(); //Not IE
} else if(window.ActiveXObject) {
return new ActiveXObject("Microsoft.XMLHTTP"); //IE
} else {
alert("Your browser doesn't want to use AJAX");
}
}
I've looked on the web and on webdeveloper.com, but none of the suggestions have solved my problem.
I'm making a call from one server to another, does this cause problems for Firefox?
Can anyone help?
Many thanks.