I am facing an issue with displaying item pages using Ajax. The function works perfectly in Chrome, but not in Internet Explorer.
<script type="text/javascript">
function obtainInfo(str)
{
if (str=="")
{
document.getElementById("contentDiv").innerHTML="";
return;
}
if (window.XMLHttpRequest)
{
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{
// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("contentDiv").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","get_property.php?q="+str,true);
xmlhttp.send();
}
</script>
While this function updates results correctly in Chrome, it retrieves previous results in Internet Explorer. Clearing sessions resolves the issue temporarily. Can someone provide assistance on this matter?
Thank you in advance!