Reputation: 3
The following works fine on my local PC in IE11, FF28.0.
In IE9, Chrome 26.0.1410.64, FF19.02 it throws a 403. I have tried setting the called php file to CHMOD 777, but that did not help. All of the non-working browsers happen to run in a virtual environment (Citrix). Could that be the cause of this problem? Thanks!
if (window.XMLHttpRequest)
{
// AJAX for IE7+, Chrome, Firefox, Safari, Opera
xmlhttp=new XMLHttpRequest();
}
else
{
// AJAX for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("loginresponse").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","inc/ajax.login.inc.php?lang=en&"+$("#loginform").serialize(),true);
xmlhttp.send();
Upvotes: 0
Views: 332