Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Drk
    Drk is offline
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Auto Refreshing a Frame

    Hello,

    I'm a moderator for an game site. We have a page on the site that reported posts dump in to for review.

    At home, I have a nifty greasemonkey script installed in Firefox that alerts me when a new report is there. At work, however, I'm forced to use IE. So, I figured I'd whip up a little something that would allow me to see new reported posts while browsing the rest of the site all in one browser window.

    I've tinkered, looked around the web, and just can't seem to get this to work. An extra set of eyes would be helpful. Here goes:

    -------------
    index.htm
    -------------

    <HTML><HEAD><TITLE>Keep focus</TITLE></HEAD>
    <FRAMESET ROWS="33%,67%" framespacing=0 border=0 frameborder="no">
    <FRAME NAME="up" SRC=report.htm>
    <FRAME NAME="down" SRC=main.htm>
    </FRAMESET></HTML>

    -------------
    report.htm
    -------------

    <html>
    <head>
    <META HTTP-EQUIV="REFRESH" CONTENT="5; URL=http://goallineblitz.com/game/forum_reported_posts.pl">
    </head>
    </body>
    </html>

    -------------
    main.htm
    -------------

    <html>
    <head>
    </head>
    <body>
    <a href="http://goallineblitz.com/game/home.pl">GLB</a>
    </body>

    --------------

    I have a link in main.htm because it was trying to make me login in both frames. I'm a bit out of practice, so hoprfully I'm just missing something small and not looking totally foolish here.

    Any help appreciated.

  • #2
    Regular Coder oldcrazylegs's Avatar
    Join Date
    Feb 2004
    Location
    East Moline Illinois USA
    Posts
    414
    Thanks
    4
    Thanked 5 Times in 4 Posts
    here is what i use on my weather page

    <meta http-equiv="refresh" content="450, url=weather2.htm" />

  • #3
    Regular Coder
    Join Date
    Jan 2006
    Posts
    568
    Thanks
    6
    Thanked 84 Times in 84 Posts
    What about Javascript?

    Code:
    setInterval("document.frames[0].location.reload()", 5000);
    Last edited by gusblake; 12-07-2009 at 12:20 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •