Hi all,
I am having trouble getting Firefox to play the game with regards to the script below.
[CODE]function connect(url) {
var xmlHttp;
try {
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e) {
// Internet Explorer
try {
xmlHttp=new ActiveXObject(“Msxml2.XMLHTTP”);
}
catch (e) {
try {
xmlHttp=new ActiveXObject(“Microsoft.XMLHTTP”);
}
catch (e) {
alert(“Your browser does not support AJAX!”);
return false;
}
}
}
xmlHttp.open(“GET”, url, true);
xmlHttp.send(null);
xmlHttp.onreadystatechange = change;
function change() {
alert(xmlHttp.readyState);
if(xmlHttp.readyState == 4) {
alert(xmlHttp.status);
if (xmlHttp.status == 200) {
alert(xmlHttp.responseText);
} else {
alert(“remote status is not 200nremote status is: ” + xmlHttp.status);
}
}
}
}
In IE, the alerts come up as ‘2’, ‘3’, ‘4’ (for the ready states), ‘200’ (for the status) and then the responseText is also alerted.
In FF I get alerts ‘2’, then ‘4’, and then nothing.
Has anybody any idea what is happening here am sure it is ok.
Thanks all
John