I'm just getting into ajax ... i think i'm missing something simple in my script .. It works perfect in Firefox and Opera and anything that is not ****** Microsoft
i'm sure i'm missing a clear cache script or something for the Internet Explorer area.
Code JavaScript:function ShowEmail(str) { var str='1' 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("txtHint").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","getmail.php?q="+str,true); xmlhttp.send(); } setInterval("ShowEmail()",5000);






Bookmarks