reloading a frame on a timer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ike

    #1

    reloading a frame on a timer

    Suppose I have two frames, as shown in the script below. One of the frames,
    I would like to have reload every ten minutes or so. Hower, the frame I wish
    to reload is a php script, which executes and creates a png image which gets
    displayed directly to the browser frame (therefore, the image is NOT written
    to the server itself, and the page that gets displayed in the frame I wish
    to update is a png image mime type).

    How can I amend my script in my page which holds the frameset (i.e. the
    parent) such that only one particular frame is updated at a fixed interval?

    Thanks, Ike

    <frameset rows="10%,90%>
    <frame src="ggtab1a.ph p" name="main" scrolling="no" noresize
    FRAMEBORDER=0 BORDER=0 FRAMESPACING=0 marginwidth="1"
    marginheight="1 ">
    <?php
    echo "<frame src=\"reports/homepages/" . $username.".php \" ";
    ?>
    name="work1" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0 marginwidth="0"



  • CountScubula

    #2
    Re: reloading a frame on a timer

    I think something like this could benifiet you:


    example source shown here:



    --
    Mike Bradley
    http://www.gzentools.com -- free online php tools
    "Ike" <rxv@hotmail.co m> wrote in message
    news:OPrYb.8611 $W74.2335@newsr ead1.news.atl.e arthlink.net...[color=blue]
    > Suppose I have two frames, as shown in the script below. One of the[/color]
    frames,[color=blue]
    > I would like to have reload every ten minutes or so. Hower, the frame I[/color]
    wish[color=blue]
    > to reload is a php script, which executes and creates a png image which[/color]
    gets[color=blue]
    > displayed directly to the browser frame (therefore, the image is NOT[/color]
    written[color=blue]
    > to the server itself, and the page that gets displayed in the frame I wish
    > to update is a png image mime type).
    >
    > How can I amend my script in my page which holds the frameset (i.e. the
    > parent) such that only one particular frame is updated at a fixed[/color]
    interval?[color=blue]
    >
    > Thanks, Ike
    >
    > <frameset rows="10%,90%>
    > <frame src="ggtab1a.ph p" name="main" scrolling="no" noresize
    > FRAMEBORDER=0 BORDER=0 FRAMESPACING=0 marginwidth="1"
    > marginheight="1 ">
    > <?php
    > echo "<frame src=\"reports/homepages/" . $username.".php \" ";
    > ?>
    > name="work1" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0 marginwidth="0"
    >
    >
    >[/color]


    Comment

    • Mike Discenza

      #3
      Re: reloading a frame on a timer

      CountScubula wrote:
      [color=blue]
      > I think something like this could benifiet you:
      > http://gzen.myhq.info/test/time.php
      >
      > example source shown here:
      > http://www-4.gzentools.com/snippetvi...pts&v=time.php
      >
      >
      > --
      > Mike Bradley
      > http://www.gzentools.com -- free online php tools
      > "Ike" <rxv@hotmail.co m> wrote in message
      > news:OPrYb.8611 $W74.2335@newsr ead1.news.atl.e arthlink.net...[color=green]
      >> Suppose I have two frames, as shown in the script below. One of the[/color]
      > frames,[color=green]
      >> I would like to have reload every ten minutes or so. Hower, the frame I[/color]
      > wish[color=green]
      >> to reload is a php script, which executes and creates a png image which[/color]
      > gets[color=green]
      >> displayed directly to the browser frame (therefore, the image is NOT[/color]
      > written[color=green]
      >> to the server itself, and the page that gets displayed in the frame I
      >> wish to update is a png image mime type).
      >>
      >> How can I amend my script in my page which holds the frameset (i.e. the
      >> parent) such that only one particular frame is updated at a fixed[/color]
      > interval?[color=green]
      >>
      >> Thanks, Ike
      >>
      >> <frameset rows="10%,90%>
      >> <frame src="ggtab1a.ph p" name="main" scrolling="no" noresize
      >> FRAMEBORDER=0 BORDER=0 FRAMESPACING=0 marginwidth="1"
      >> marginheight="1 ">
      >> <?php
      >> echo "<frame src=\"reports/homepages/" . $username.".php \" ";
      >> ?>
      >> name="work1" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0 marginwidth="0"
      >>
      >>
      >>[/color][/color]

      Not too hard to pull off. I've got something that does this myself, but it
      reads and displays a log file.

      Use some JavaScript. It works wonderfully.

      (Might not work as is)
      function reloadWindow(fr ameNameOrIndex)
      {parent.frames[frameNameOrInde x].location.href =
      parent.frames[frameNameOrInde x].location;}

      function reloadKickOff(m inutesToReload, frameNameOrInde x)
      {
      secondsToReload = 60 * minutesToReload ;
      setTimeOut(relo adWindow(frameN ameOrIndex),10) ;
      }

      Stick that in a javascript block in one of the frames and call the
      reloadKickOff function.



      Comment

      Working...