reloading a frame on a timer

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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.php" name="main" scrolling="no" noresize
    echo "<frame src=\"reports/homepages/" . $username.".php\" ";
     name="work1" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0 marginwidth="0"

Re: reloading a frame on a timer

I think something like this could benifiet you:

example source shown here:

Mike Bradley -- free online php tools
Quoted text here. Click to load it
Quoted text here. Click to load it

Re: reloading a frame on a timer

CountScubula wrote:

Quoted text here. Click to load it

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(frameNameOrIndex)
{parent.frames[frameNameOrIndex].location.href =

function reloadKickOff(minutesToReload,frameNameOrIndex)
  secondsToReload = 60 * minutesToReload;

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


Site Timeline