How to auto reload a framed webpage?

  • Thread starter Thread starter Igor
  • Start date Start date
I

Igor

There is a website that I visit that has a live cam shot. It updates every
60 seconds. The way the website is programmed, I have to hit F5 to get the
page to reload. I was thinking that I could create a local page with
frames. Frame 2 would be the webpage with the camera. Frame 1 would be
simply a page that says refresh the entire page -- both frames -- every 60
seconds.

What do I need to put in Frame 1 to get the entire page to reload every 60
seconds?

Or, if there is a better approach, please advise. Thanks.
 
-----Original Message-----
There is a website that I visit that has a live cam
shot. It updates every 60 seconds. The way the website
is programmed, I have to hit F5 to get the page to
reload. I was thinking that I could create a local page
with frames. Frame 2 would be the webpage with the
camera. Frame 1 would be simply a page that says refresh
the entire page -- both frames -- every 60 seconds.

What do I need to put in Frame 1 to get the entire page
to reload every 60 seconds?

Or, if there is a better approach, please advise. Thanks.

Typically, you would add a one line script such as the
following to the page that contains the Webcam picture:

<script>
setTimeout("document.location.reload();",60000);
</script>

This tells the browser to reload the current page (or
frame) after 60,000 miliseconds have passed.

Jim Buyens
Microsoft FrontPage MVP
(e-mail address removed)
http://www.interlacken.com
Author of:
*------------------------------------------------------*
|\----------------------------------------------------/|
|| Microsoft Office FrontPage 2003 Inside Out ||
|| Microsoft FrontPage Version 2002 Inside Out ||
|| Web Database Development Step by Step .NET Edition ||
|| Troubleshooting Microsoft FrontPage 2002 ||
|| Faster Smarter Beginning Programming ||
|| (All from Microsoft Press) ||
|/----------------------------------------------------\|
*------------------------------------------------------*
 
Typically, you would add a one line script such as the
following to the page that contains the Webcam picture:

<script>
setTimeout("document.location.reload();",60000);
</script>

This tells the browser to reload the current page (or
frame) after 60,000 miliseconds have passed.
I may be confused but it _seems_ that your solution entails putting the
script on the webpage with the camera -- but that is on someone else's
server. While the image available to that page is updated every 60
seconds, it does not drive my browser to refresh. (My guess is that this
approach saves on their server load -- i.e., let people refresh if they
want a new image, but not if they have gone to lunch and left their browser
open at our page.)

I want a local page that "embeds" the webpage from the other site that has
the webcam attached to it.

Is a page with 2 frames the way to go? If so, if the cam page/URL is in
frame 2 and a local blank page in frame 1, then do I put the script in the
"main" page that contains the frames or in the blank page that is in frame
1?

Thanks for the help.
 
Have you tried setting your browser to always check for new pages and see if
that helps?

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
Have you tried setting your browser to always check for new pages and see if
that helps?

Thanks, but I am trying to set up a page for a group -- to let each person
have a copy.
 
Since you don't own the page you really don't have any control over the
page.

Now IE also have an option to allow/disallow meta refresh, which may be
disable by default, and could be the reason that you have to manually
refresh the page.

IE: Tools | Internet Options | Security | Miscellaneous | Allow Meta Refresh
| check enabled.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
Since you don't own the page you really don't have any control over the
page.

Now IE also have an option to allow/disallow meta refresh, which may be
disable by default, and could be the reason that you have to manually
refresh the page.

IE: Tools | Internet Options | Security | Miscellaneous | Allow Meta Refresh
| check enabled.

The target webpage involved says that you have to hit F5 to refresh. I.e.,
It is not trying to auto-refresh. I am looking to automate the process.

My thought is that if I have a page with two frames, one local and one the
target page, if I can get the entire framed page to reload then that will
force the equivalent of an F5 on the target webpage.
 
Then in the frameset page itself try adding a Meta Refresh in the head
section pointing to the frameset page.

<meta http-equiv="refresh" content="5;
url=http://www.yourdomainname.com/framesetpage.htm">

all on one line

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
Back
Top