473,386 Members | 1,969 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,386 software developers and data experts.

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 8326
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Christopher Richards | last post by:
It is possible to be able to receive email alerts (say, from Google News) and publish them to a web page automatically? I am a novice as far as PHP goes, but I can open and write to a file and...
10
by: Howard Kelley | last post by:
What is the HTML code for forwarding one page to another? I recall there is a meta statement that can used. In other words, I want browser inquiries to http://xxx.xx to go immediately to...
8
by: Manu | last post by:
Hi there, I am using a perl script to generate this html page which just redirects users to my ftp server. The problem is I get a "page cannot be displayed" in IE 6.0 (haven't tried other...
21
by: AES/newspost | last post by:
My understanding -- I'm not an expert -- is that on (some? many? all?) standard Internet servers a URL can point to a subdirectory name followed by a backslash, and that links to this URL will...
17
by: Paul | last post by:
HI! I get an error with this code. <SCRIPT language="JavaScript"> If (ifp==""){ ifp="default.htm"} //--></SCRIPT> Basicly I want my iframe to have a default page if the user enters in...
11
by: VB Programmer | last post by:
Is there a limit as to how big an aspx page's html can be? (number of characters) Why do I ask? I have a webform with a lot of ActiveX controls (shows up as OBJECT in html). When I place like...
18
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that...
0
by: waggledance | last post by:
I was wondering if anyone here might be able to offer me some advice for someone who can only use Macromedia Dreamweaver MX. I am (clearly!) a web design novice so apologies in advance if this is a...
14
by: asdf | last post by:
I have a python script whose output i want to dynamically display on a webpage which will be hosted using Apache. How do I do that? thanks
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.