Partially page refreshing in IE
<p>I need refresh a part of my page and I use this script which works in FF and Chrome,
but this doesn't work in IE.</p>

<pre><code>&lt;script language="JavaScript"&gt;
&lt;!--
var page = "ASP/include/ithome.asp";
var MyDelay = function () { ajax(page, 'scriptoutput'); };
function ajax(url,target)
 {
    // native XMLHttpRequest object
   document.getElementById(target).innerHTML = 'sending...';
   if (window.XMLHttpRequest) {
       req = new XMLHttpRequest();
       req.onreadystatechange = function() {ajaxDone(target);};
       req.open("GET", url, true);
       req.send(null);
   // IE/Windows ActiveX version
   } else if (window.ActiveXObject) {
       req = new ActiveXObject("Microsoft.XMLHTTP");
       if (req) {
           req.onreadystatechange = function() {ajaxDone(target);};
           req.open("GET", url, true);
           req.send();
       }
   }
           setTimeout(MyDelay, 12000);
}

function ajaxDone(target) {
// only if req is "loaded"
if (req.readyState == 4) {
// only if "OK"
if (req.status == 200 || req.status == 304) {
results = req.responseText;
document.getElementById(target).innerHTML = results;
} else {
document.getElementById(target).innerHTML="ajax error:\n" +
req.statusText;
}
}
}

function winOp(link, width, height) {
    window.open(link, '', 'toolbar="no",scrollbars=no,resizeable="no",height=' + height + ',width=' + width + '');
}

// --&gt;
&lt;/script&gt;
&lt;body background="images/Pattern.gif" onload="ajax(page,'scriptoutput')"&gt;
...
</code></pre>

<p>I thinked, that the problem was in setTimeout, but when I debuged the page, it looked works.
Maybe req.open("GET", url, true) opened the ASP page from a cache. Could you help me?</p>

<p>Thank you</p>

<p>L.</p>
