That has to do with the security of a frame's content across domains. You didn't mention before (as far as I remember) that this would be off site content. My idea of keeping track of the URL works here though. The way to do that would be something like so:
Code:
<!-- Refresh 'main' window, 5min -->
<script type="text/javascript">
//Set theURL to the initial page for 'main'
var resetVar, theURL="http://www.srh.noaa.gov/radar/images/DS.p19r0/SI.kinx/latest.gif";
function refresh() {
window.frames['main'].window.location.replace(theURL);
resetVar=setTimeout('refresh()', 60*1000*5);
}
function reset(url){
if (typeof url!=='undefined')
theURL=url
clearTimeout(resetVar)
resetVar=setTimeout('refresh()', 60*1000*5);
}
reset();
</script>
Then on links to that frame that you wish to be updated use this type of syntax:
HTML Code:
<a href="info.htm" onclick="parent.window.reset(this.href);return true;" target="main">Page Info</a>
On links that you would like to revert to the previous content after 5 minutes, use this syntax:
HTML Code:
<a href="info.htm" onclick="parent.window.reset();return true;" target="main">Page Info</a>
Bookmarks