Hi,
I'm currently working on a multiplayer javascript game, and everything works great. You can move around, chat, etc, but when played using Internet Explorer, responseText is always blank. It doesn't receive a single response from the server for some reason.
Here's my code:
function login(xmlCon) {
xmlCon.onreadystatechange=function()
{
if(xmlCon.readyState==4)
{
var res=xmlCon.responseText;
var msg = res.split("|");
plrx = msg[2];
plry = msg[3];
}
}
xmlCon.open("GET","scripts/conHandler.php?a=login,true);
xmlCon.send(null);
}
I call login and pass an XMLHttpRequest object to it, it contacts the server to login and the server responds with a set of numbers seperated by the "|" character, such as "1|43|243". Everything works fine in all browsers but IE, in which responseText is blank.
Anyone got any idea why?
Thanks.