468,241 Members | 1,737 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,241 developers. It's quick & easy.

Novice HTML question: Refresh

Some time ago I set up a webcam at home and a page on my site. Every
three minutes the webcam would take a picture of my backyard and ftp
it to my site where it was displayed on my webcam page.

The image was ftp'ed to ftp://mydomain.org/webcam.jpg.

On my website was a file, webcam.htm, that had a place for the image,
webcam.jpg. I put an HTML code on my webcam page that caused it to
refresh every 3 minutes -- every 3 minutes, the webcam.htm file would
go get the new jpg image and display the latest picture to an admiring
public.

This is a long story involving new computer, crashed drive, house
sale, move into an apartment, new telescope, old VW Beetle, daughter
quitting her job, a dead baby duck, and other irrelevant matters.
But, the bottom line is, I want to set up this arrangement again and I
can't find my HTML books.
I have evereything set up except the webcam.htm file on my site.

Can someone help me with the REFRESH code or whatever it is and how to
insert it in my webcam.htm file.

Thanks.

SPQR
<<<<
Jul 20 '05 #1
1 8042
Po*********@hotmail.com (SPQR) wrote:
Some time ago I set up a webcam at home and a page on my site. Every
three minutes the webcam would take a picture of my backyard and ftp
it to my site where it was displayed on my webcam page.

The image was ftp'ed to ftp://mydomain.org/webcam.jpg.
I bet you don't own mydomain.org. Use either whatver.example or
example.com for example URLs, they were created for exactly that
pupose.
On my website was a file, webcam.htm, that had a place for the image,
webcam.jpg. I put an HTML code on my webcam page that caused it to
refresh every 3 minutes -- every 3 minutes, the webcam.htm file would
go get the new jpg image and display the latest picture to an admiring
public.
Possibly. If you used a meta refresh in the HTML file then it would
refresh the HTML file. That might have no effect on the JPEG unless
the server was telling the browser not to cache the JPEG file.

Have a read of http://www.mnot.net/cache_docs/

This is a long story involving new computer, crashed drive, house
sale, move into an apartment, new telescope, old VW Beetle, daughter
quitting her job, a dead baby duck, and other irrelevant matters.
But, the bottom line is, I want to set up this arrangement again and I
can't find my HTML books.

I have evereything set up except the webcam.htm file on my site.

Can someone help me with the REFRESH code or whatever it is and how to
insert it in my webcam.htm file.


<meta http-equiv="refresh" content="180"> will refresh the page every
3 minutes. But note that some browsers offer their users the ability
to disable this sort of thing. It's often more user friendly to just
put a message on the page telling your user to hit refresh to see an
updated picture. If you do go for an automatic refresh then tell the
user that it will happen every three minutes so that they are not
taken by surprise whilst in the middle of doing something.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Christopher Richards | last post: by
10 posts views Thread by Howard Kelley | last post: by
8 posts views Thread by Manu | last post: by
21 posts views Thread by AES/newspost | last post: by
11 posts views Thread by VB Programmer | last post: by
14 posts views Thread by asdf | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.