View Full Version : iframe refresh problem. HELP!

08-22-2005, 12:42 PM
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;

function ticker() {
//do some processes
// set result to var val;
var val = 'some value';
if (ctr == refreshRate) {
document.location.href = 'processItServlet?myValue=' + val;

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?

08-23-2005, 05:39 PM
Why use a script to do what a meta refresh does.

<meta http-equiv="refresh" content="3600, url=yourfilename.htm">

Maybe your browser's cache is full after an hour. Just a guess.