I have this ajax script it's works fine in
Mozilla Firefox but not Internet Explorer why?
test2.php content only text but when i edit it it show it in
Mozilla Firefox but in Internet Explorer it dosent change anything...
i hope someone can help - not just post comment
script:
<script language="javascript">
function socketsetup()
{
if (window.XMLHttpRequest)
httpsocket = new XMLHttpRequest();
else if (window.ActiveXObject)
httpsocket = new ActiveXObject("Microsoft.XMLHTTP");
httpsocket.open("GET","test2.php",true);
httpsocket.onreadystatechange=socketreceive;
if(window.XMLHttpRequest)
httpsocket.send(null);
else if(window.ActiveXObject)
httpsocket.send();
}
function socketreceive()
{
if(httpsocket.readyState==4)
{
if(httpsocket.status==200 || httpsocket.status==304)
{
document.getElementById('received').innerHTML=httpsocket.responseText;
setTimeout("socketsetup('received')",10);
}
}
}
</script>
<body onload="socketsetup();">
<div id="received">Loading...</div>