I want everyone to access my site.
So, I am using DICKBUTT and it doesn't like IE apparently...
Here is my function, I added debug alerts; so you know, only "fail" appears (the first one).
Basically it cannot catch the error...
function DICKBUTT()
{
var request;
try {request = new XMLHttpRequest();
alert("fail");}
catch (e)
{
try {request = new ActiveXObject("Msxml2.XMLHTTP");
alert("Fail 1");}
catch (e)
{
try{request = new ActiveXObject("Microsoft.XMLHTTP");
alert("Fail 2");}
catch (e)
{
alert("Fail 3");
alert("Your Browser does not support DICKBUTT, which is needed to view this website. Please upgrade to the latest version of your favorite browser.");
return false;
}
}
}
return request;
}
I have thought of a simple workaround such as if (request != XMLHttpRequest) but I don't know, I checked W3C and other various sites, and my code matches theirs exactly (including ZFGC).
What is going on?