473,569 Members | 3,015 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Jul 20 '05 #1
2 2151
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.co m> wrote in message
news:OP******** *********@newsr ead1.news.atl.e arthlink.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.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"

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.co m> wrote in message
news:OP******** *********@newsr ead1.news.atl.e arthlink.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.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"


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.

Jul 20 '05 #3

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

Similar topics

2
3433
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 fine. But I can't get the text away the next time the timer fires. Here is some code: void MyView::OnTimer(UINT nIDEvent) { if (nIDEvent!=1)...
7
2306
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 frames, where the two lower ones are within a Frameset within the master Frameset: 1111111111111111111
3
12263
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 img1.gif 2 sec load img2.gif 3 sec load img0.gif (back to the first image) 4 sec load img1.gif
1
1433
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 see my page as it should be viewed plus it displays a javascript error. I need a way using javascript so that when the link is clicked on in...
2
733
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 in our image generators are updated by this dynamics application, and we need to update them at the rate they are being refreshed so that we don't...
6
1655
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 documents to view. In the toolbar, I have a button that starts a search engine which results I want to display in the left frame, hiding the TOC. Two...
3
2503
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 accurate time (although a test with time.time() seems to show that it is), or if I'm just messing up my algorithm to fill the progress bar. If I put in...
4
4623
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 program is like so: static void Main() {
0
1189
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 with xsl file into WIright and there are buttons created with dynamic parameters to pass when the function is run. I have the following script that...
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7930
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5228
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3662
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
950
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.