Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - Reloading image on a page every minute.

 
Thread Tools Search this Thread
Old 01-07-2004, 04:05 AM   #1
Default Reloading image on a page every minute.


I've got a live camera image I'd like to make the browser window reload
the pic or at least the whole page every few minutes. What's the best
way to do this?


CB
  Reply With Quote
Old 01-07-2004, 04:19 AM   #2
Disco Octopus
 
Posts: n/a
Default Re: Reloading image on a page every minute.

CB wrote:
> I've got a live camera image I'd like to make the browser window
> reload the pic or at least the whole page every few minutes. What's
> the best way to do this?



<meta http-equiv="refresh" content="15; URL=this.html">




or


<script>
function reload() {
location = "this.html"
}
setTimeout("reload()", 1000);
</script>





  Reply With Quote
Old 01-07-2004, 04:28 AM   #3
Leif K-Brooks
 
Posts: n/a
Default Re: Reloading image on a page every minute.

CB wrote:
> I've got a live camera image I'd like to make the browser window reload
> the pic or at least the whole page every few minutes. What's the best
> way to do this?


<p>Images are updated every minute. You may want to reload.</p>

  Reply With Quote
Old 01-07-2004, 04:34 AM   #4
CB
 
Posts: n/a
Default Re: Reloading image on a page every minute.

Where's your smart guy.

In article <sVLKb.93$>, Leif K-Brooks
<> wrote:

> CB wrote:
> > I've got a live camera image I'd like to make the browser window reload
> > the pic or at least the whole page every few minutes. What's the best
> > way to do this?

>
> <p>Images are updated every minute. You may want to reload.</p>
>

  Reply With Quote
Old 01-07-2004, 04:51 AM   #5
CB
 
Posts: n/a
Default Re: Reloading image on a page every minute.

Thanks Disco! Actually, seems all I need is:

<meta http-equiv="refresh" content="15">



In article <PNLKb.1764$>, Disco Octopus
<> wrote:

> <meta http-equiv="refresh" content="15; URL=this.html">

  Reply With Quote
Old 01-07-2004, 05:08 AM   #6
Disco Octopus
 
Posts: n/a
Default Re: Reloading image on a page every minute.

CB wrote:
> <> wrote:
>
>> <meta http-equiv="refresh" content="15; URL=this.html">


> Thanks Disco! Actually, seems all I need is:
>
> <meta http-equiv="refresh" content="15">
>
>
>
> In article <PNLKb.1764$>, Disco Octopus


Actually, you may want to test that in some browsers, aas it 'may' break the
back button. good luck.



  Reply With Quote
Old 01-07-2004, 05:11 AM   #7
Mark Parnell
 
Posts: n/a
Default Re: Reloading image on a page every minute.

On Wed, 07 Jan 2004 04:19:59 GMT, Disco Octopus declared in alt.html:
>
> <meta http-equiv="refresh" content="15; URL=this.html">
>


What if your visitor doesn't want it to reload that often? (Think:
dial-up, or people using IE with more than one window open[1]). Plus,
some browsers have the option to disable meta refresh.

>
> <script>
> function reload() {
> location = "this.html"
> }
> setTimeout("reload()", 1000);
> </script>


Won't work for around 15% of your visitors.

To the OP: Much as you might not like it, Leif's solution is both the
best for your visitors and the most reliable.


[1] I hate the way IE brings the window to the front when a page
finishes loading.

--
Mark Parnell
http://www.clarkecomputers.com.au
  Reply With Quote
Old 01-07-2004, 05:12 AM   #8
Mark Parnell
 
Posts: n/a
Default Re: Reloading image on a page every minute.

On Wed, 7 Jan 2004 16:11:28 +1100, Mark Parnell declared in alt.html:

> On Wed, 07 Jan 2004 04:19:59 GMT, Disco Octopus declared in alt.html:
>>
>> <meta http-equiv="refresh" content="15; URL=this.html">

>
> What if your visitor doesn't want it to reload that often? (Think:
> dial-up, or people using IE with more than one window open[1]). Plus,
> some browsers have the option to disable meta refresh.


Whoops, almost forgot - it breaks the back button too (thanks Disco).


--
Mark Parnell
http://www.clarkecomputers.com.au
  Reply With Quote
Old 01-07-2004, 12:07 PM   #9
rf
 
Posts: n/a
Default Re: Reloading image on a page every minute.


"CB" <> wrote in message news:060120042334003980%...

[top posting corrected]

> In article <sVLKb.93$>, Leif K-Brooks
> <> wrote:
>
> > CB wrote:
> > > I've got a live camera image I'd like to make the browser window

reload
> > > the pic or at least the whole page every few minutes. What's the best
> > > way to do this?

> >
> > <p>Images are updated every minute. You may want to reload.</p>


> Where's your smart guy.


The pay per question help desk is over there ------->


  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump