It's strange, it works perfectly fine in Firefox.
This is the JavaScript code I'm using:
star.updateRating=function(v, listid) {
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null) {
alert("Looks like AJAX isn't supported by your browser!");
return;
}
var randomnbr = randomID(12);
var cacheid = randomnbr+"_"+listid;
var url="http://mywebsiteurl.com/includes/functions_rating.php";
url=url+"?action=ratelist";
url=url+"&listid="+listid;
url=url+"&rating="+v;
url=url+"&cid="+cacheid;
// disable the container
$('starMsg').innerHTML=' - Thanks for rating!';
$('star').setAttribute('onmousemove','');
$('star').setAttribute('onmousedown','');
xmlHttp.open("POST",url,true);
xmlHttp.send(null);
}
At the beginning of my PHP file, I have: header ("content-type: text/xml");
Despite the JavaScript running completely (I even have an alert(1); at the end), the PHP script fails to update the database when called from Internet Explorer.
Any suggestions on what might be causing this issue?