phpmady Posted March 16, 2011 Share Posted March 16, 2011 Hi, I couldnt refresh the content in the div id "content", but it works in firefox and chrome <html> <body> <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('content').innerHTML=xmlHttp.responseText; setTimeout('Ajax()',1000); } } xmlHttp.open("GET","data.php",true); xmlHttp.send(null); } window.onload=function(){ setTimeout('Ajax()',1000); } </script> <div id="content">Default text</div> </body> </html> this is the code am using Thanks Quote Link to comment https://forums.phpfreaks.com/topic/230791-how-to-solve-memory-leak-in-ie/ Share on other sites More sharing options...
phpmady Posted March 16, 2011 Author Share Posted March 16, 2011 Please guys need badly Quote Link to comment https://forums.phpfreaks.com/topic/230791-how-to-solve-memory-leak-in-ie/#findComment-1188110 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.