ajdelr
08-22-2005, 11:42 AM
I have a page which consist of an iframe which refreshes every minute. The function that does the iframe refresh is contained in the frame itself using this code:
<script language="javascript">
var ctr = 0;
var refreshRate = 60;
ticker();
function ticker() {
//do some processes
// set result to var val;
var val = 'some value';
ctr++;
setTimeout("ticker()",1000);
if (ctr == refreshRate) {
document.location.href = 'processItServlet?myValue=' + val;
}
}
</script>
By the way....I am using JSP and servlets along with it.
The code works fine...the iframe refreshes itself every minute....but after sometime....usually an hour later, the iframe page starts to display a "page not found" error. Can anyone help me on this?
<script language="javascript">
var ctr = 0;
var refreshRate = 60;
ticker();
function ticker() {
//do some processes
// set result to var val;
var val = 'some value';
ctr++;
setTimeout("ticker()",1000);
if (ctr == refreshRate) {
document.location.href = 'processItServlet?myValue=' + val;
}
}
</script>
By the way....I am using JSP and servlets along with it.
The code works fine...the iframe refreshes itself every minute....but after sometime....usually an hour later, the iframe page starts to display a "page not found" error. Can anyone help me on this?