S
squash
The following code works fine in Firefox/Netscape but wont work in IE.
I suspect the problem is with one of these two simple functions. If
there is no obvious error Ill paste the entire code.
///////////////////////////////////////////////////////
function get_last_updated() {
http.open( 'get', url );
http.onreadystatechange = handleHttpResponse;
http.send(null);
setTimeout( 'get_last_updated()', 5000 );
} // end function
///////////////////////////////
function handleHttpResponse() {
if (http.readyState == 4) {
last_updated = http.responseText;
if ( ! first_updated ) { first_updated = last_updated; }
if ( last_updated - first_updated > 0 )
{ window.location = url; }
}
} // end function
///////////////////////////////////////////////////////
I suspect the problem is with one of these two simple functions. If
there is no obvious error Ill paste the entire code.
///////////////////////////////////////////////////////
function get_last_updated() {
http.open( 'get', url );
http.onreadystatechange = handleHttpResponse;
http.send(null);
setTimeout( 'get_last_updated()', 5000 );
} // end function
///////////////////////////////
function handleHttpResponse() {
if (http.readyState == 4) {
last_updated = http.responseText;
if ( ! first_updated ) { first_updated = last_updated; }
if ( last_updated - first_updated > 0 )
{ window.location = url; }
}
} // end function
///////////////////////////////////////////////////////