<script type="text/javascript">
function Ajax(){
var xmlHttp;
try{
xmlHttp=new XMLHttpRequest();// Firefox, Opera 8.0+, Safari
}
catch (e){
try{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); // Internet Explorer
}
catch (e){
try{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e){
alert("No AJAX!?");
return false;
}
}
}
xmlHttp.onreadystatechange=function(){
if(xmlHttp.readyState==4){
document.getElementById('RefreshPage').innerHTML=xmlHttp.responseText;
setInterval("Ajax()",1000);
}
}
xmlHttp.open("GET","index.php",true);
xmlHttp.send(null);
}
window.onload=function(){
setInterval("Ajax()",1000);
}
</script>
<div id="RefreshPage"></div>
</body>
</html>
i used dis code to refresh a php page contents.it works fine in firefox,but not in IE & chrome.The code works for sometime and starts blinking simultaneously or showing "out of m/y error".somebody please please please help me to solve dis???????????????