473,382 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

reloading a frame on a timer

Ike
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"

Jul 20 '05 #1
2 2138
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" <rx*@hotmail.com> wrote in message
news:OP*****************@newsread1.news.atl.earthl 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"

Jul 20 '05 #2
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" <rx*@hotmail.com> wrote in message
news:OP*****************@newsread1.news.atl.earthl 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.

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Maik Wiege | last post by:
Hi! I want to show a blinking text over my derived CMDIChildWnd-class. The blinking is done by one view which is hold by my frame. I set up a timer and write text to the parent frame, which works...
7
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
3
by: src_mag | last post by:
Hello, I'd like to write JavaScript code that refreshes a frame once a second loading a different image each time. Basically, here's what the script would do: 0 sec load img0.gif 1 sec load...
1
by: Dynamo | last post by:
Hi My site uses frames and some of the frame pages are ranked higher in search engine rankings than the main page. When somebody clicks on the link it takes them to the frame page and they don't...
2
by: Michael Evans | last post by:
First, we rely on a stable update rate so that our physics and dynamics calculations and integrations are based on a known interval and therefore are true-to-life. Second, the graphics positions...
6
by: Yves-Alain.Nicollet | last post by:
Hi. I have a frameset with 3 frames that look like a T, with the top frame containing buttons like a toolbar, the left frame usually containing a dynamic TOC and the right frame containing the...
3
by: John Salerno | last post by:
I'd be curious to know if this works any differently on other computers/platforms or while other things are happening in the background. I can't tell if it's the Timer object that isn't keep...
4
by: grayaii | last post by:
Hi, I have a simple form that handles all its paint functionality like so: this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true); And the entry point to this...
0
by: K B | last post by:
Hi, I could be approaching this all wrong...so please let me know what you think. I have a 2 page frame (WIleft.aspx and WIright.aspx) in asp.net 2.0. I create an html page by transforming xml...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.