Monday, March 9, 2009

Forum Autorefresh

I'm a hugh fan of the OTN fora. Problem is that it doesn't have an auto-refresh. I've made a small script to load the page in a iFrame and reload it every 5 minutes:

<!-- OTN OBIEE With autorefresh -->
<!-- Check if it's a 5 minute part of an hour is reached -->

<script type="text/javascript">
var timer = setInterval("checkTime()", 1000 * 60 );

function checkTime()
{
if((new Date().getMinutes() % 5) == 0)
self.location.reload(true);
}
</script>

<!-- Load the page as Iframe -->

<IFRAME SRC="http://forums.oracle.com/forums/forum.jspa?forumID=378 WIDTH=1200 HEIGHT=900 frameborder=0 SCROLLING="no">
If you can see this, your browser doesn't understand IFRAME. However, we'll still <A HREF="http://forums.oracle.com/forums/forum.jspa?forumID=378>link</A> you to the file.
</IFRAME>

Till Next Time

1 comment:

DomBrooks said...

Who needs an RSS feed anyway ...