Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > reloading a frame on a timer

Reply
Thread Tools

reloading a frame on a timer

 
 
Ike
Guest
Posts: n/a
 
      02-17-2004
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
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"



 
Reply With Quote
 
 
 
 
CountScubula
Guest
Posts: n/a
 
      02-17-2004
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" <> wrote in message
news:OPrYb.8611$ ink.net...
> 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
> 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"
>
>
>



 
Reply With Quote
 
 
 
 
Mike Discenza
Guest
Posts: n/a
 
      02-18-2004
CountScubula wrote:

> 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" <> wrote in message
> news:OPrYb.8611$ ink.net...
>> 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
>> 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"
>>
>>
>>


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 =
parent.frames[frameNameOrIndex].location;}

function reloadKickOff(minutesToReload,frameNameOrIndex)
{
secondsToReload = 60 * minutesToReload;
setTimeOut(reloadWindow(frameNameOrIndex),10);
}

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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
reloading frame page from popup...better solution to my problem? K B ASP .Net 0 12-21-2006 05:26 AM
Help with reloading frame page please Dynamo Javascript 1 06-28-2005 06:19 PM
Problems with reloading a frame ROBT NISHIDA Javascript 1 04-20-2005 08:49 PM
Reloading target-frame after sending POST-Data Anita Meyer HTML 2 01-28-2005 01:23 PM
javascript frame break out without reloading Gareth Javascript 0 09-16-2004 03:00 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57