![]() |
|
|
|||||||
![]() |
HTML - Reloading image on a page every minute. |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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> |
|
|
|
#3 |
|
Posts: n/a
|
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> |
|
|
|
#4 |
|
Posts: n/a
|
Where's your
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> > |
|
|
|
#5 |
|
Posts: n/a
|
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"> |
|
|
|
#6 |
|
Posts: n/a
|
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. |
|
|
|
#7 |
|
Posts: n/a
|
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 |
|
|
|
#8 |
|
Posts: n/a
|
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 |
|
|
|
#9 |
|
Posts: n/a
|
"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 The pay per question help desk is over there -------> |
|