on 09-07-2007 8:18 PM
Hello all,
I have a page which has some svg images on it.Since these images keep changing over time, my requirement is to have the page to continuously refresh so that the new image gets updated every minute. So I have set a auto refresh of 1 min using the code - <meta http-equiv="Refresh" content="60"> in the html page.
Problem:
1) It appears that the page stops refreshing after some time (say after 2 - 3 hrs). How could this happen. I have also increased the timeout in xMII to a big value. If it was an applet, i could have changed the auto refresh setting in the template.
2) Each time the page refreshes, it displays some other page that was probably there in memory. I have to re-refresh this to display the correct page. Is there something we could do to make it pull the correct page the first time without referring to the memory/cache?
Any ideas/help or workarounds for these problems would be highly appreciated.
Thanks.
Jeremy is right ! It is a caching issue.
Try this and this might work (Works for me )
var Time;
function doit(){
executeQry();
imagename = "Fan.jpg";
tmp = new Date();
tmp = "?"+tmp.getTime()
document.images["refresh"].src = imagename+tmp;
Time = setTimeout("doit()", 1000);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
On the client browser what are the IE settings for Temporary Internet Files?
( From the browser menu go to Tools-Internet Options-General-Temp Internet Files settings.)
Here the setting for check for newer versions of stored pages should be "Every Visit to the Page".
See if this makes any difference.
This is IE 6 I am talking about.
One question - is this an HTML or a IRPT?
Have you tried adding these entries in the HEAD section?
<meta http-equiv="Expires" content="0">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
Regards,
Jeremy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would use somethign like this:
<a href="http://www.plus2net.com/javascript_tutorial/timer-set.php">http://www.plus2net.com/javascript_tutorial/timer-set.php</a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.