Novice HTML question: Refresh

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • SPQR

    #1

    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.
    [color=blue][color=green][color=darkred]
    >>>>[/color][/color][/color]
    SPQR
    <<<<
  • Steve Pugh

    #2
    Re: Novice HTML question: Refresh

    PopUlist349@hot mail.com (SPQR) wrote:
    [color=blue]
    >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.[/color]

    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.
    [color=blue]
    >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.[/color]

    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/

    [color=blue]
    >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.[/color]

    <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 <steve@pugh.net > <http://steve.pugh.net/>

    Comment

    Working...