Main Menu

FTP again...

Started by dwilder, September 10, 2008, 06:16:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tarbat

Yes, seems to refresh the image okay in Internet Explorer, but not in Firefox.

Searching around, this appears to be a common problem.  There's Javascript around to refersh images, I'll try those later.

Allocator

Your shot just updated to 14:24 at 14:37

Maybe there's something going on in the background here with the free host?  I works a treat using the Demon ISP.

tarbat

#47
Seems to be a Firefox problem.  Seems to be refreshing okay in IE.  Allocator, can you try my page in IE.

tarbat

This Javascript seems to force an image refresh.

<html>
<head>
<title>Radarbox at Portmahomack</title>
<meta http-equiv="refresh" content="60; URL=http://www.tarbat.gofreeserve.com/radarbox.htm">
<meta http-equiv="expires" content="0">
<script type="text/JavaScript">
<!--
function timedRefresh(timeoutPeriod) {
   setTimeout("location.reload(true);",timeoutPeriod);
}
//   -->
</script>
</head>
<body onload="JavaScript:timedRefresh(60000);">
<iframe width="565" height="601" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.tarbat.gofreeserve.com/shot/RadarBoxScreenShot.gif?xx"></iframe>
</body>
</html>

Allocator

I've saved that and I'll try it later - thanks tarbat.

Going to be up in your part of the world next week - got a briefing to do at EGQS.  Lets hope I don't get caught in the snow like last time!  Looks like it's raining now though :-)

tarbat

#50
Allocator, hope the weather's better than it is now - gales force winds and rain :(

I've been reading various forums about image refreshes, and this seems to be a Firefox problem.  Using the following HTML, I can get the image to refresh every 60 seconds in Internet Explorer, but not in Firefox.  http://www.tarbat.gofreeserve.com/radarbox.htm

Has anyone found how to force Firefox to not use the cached image, and instead download the new image?

<html>
<head>
<title>Radarbox at Portmahomack</title>
<META HTTP-EQUIV="refresh" content="60">
<META HTTP-EQUIV="expires" content="0">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-store">
<META HTTP-EQUIV="Pragma-directive" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Directive" CONTENT="no-cache">
<body>
<iframe width="565" height="601" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.tarbat.gofreeserve.com/shot/RadarBoxScreenShot.gif?<%=(new java.util.Date()).getTime()%>"></iframe>
</body>
</html>

abrad41

tarbat

Just taken a look at your page In IE and everything seems to be ok - refreshing ok.

tarbat

Thanks Andy.  Yes, it just seems to be a Firefox problem.  So, does anyone know how to force Firefox to NOT use the cached image on the user's PC?

http://www.tarbat.gofreeserve.com/radarbox.htm

Fenris

Quote from: tarbat on January 12, 2009, 12:54:50 PM
Thanks Andy.  Yes, it just seems to be a Firefox problem.  So, does anyone know how to force Firefox to NOT use the cached image on the user's PC?

http://www.tarbat.gofreeserve.com/radarbox.htm

Might this help you?

http://www.webmasterworld.com/forum91/3026.htm

tarbat

I've found that the following refreshed the image correctly in Firefox as well IE.
<html>
<head>
<title>Radarbox</title>
<meta http-equiv="refresh" content="60">
<meta http-equiv="expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-store">
<meta http-equiv="Pragma-directive" content="no-cache">
<meta http-equiv="Cache-Directive" content="no-cache">
<body bgcolor="#000000">
<h3 align="center"><font color="#ff8000">Radarbox at Portmahomack</font></h3>
<p align="center"><font color="#ff8000"></font></p>
<p align="center"><font color="#ff8000"><img height="601" hspace="0" src="http://www.tarbat.gofreeserve.com/shot/RadarBoxScreenShot.gif?<%=(new java.util.Date()).getTime()%>" width=565 align=center border=2></font></p><font color="#ff8000" >
<hr>
<p align="center"> </font><font color="#ff8000" size="4">This is a 5-minute delayed feed from my Airnav Radarbox</font></p>
</body>
</html>

viking9

Hi tarbat,

I'd just like to say thanks for the code above. I've now got my screen displaying on my website successfully.

Tom
Tom
Bury St Edmunds, Suffolk UK
15 miles SE of EGUN
32 miles SE of MAM > DIKAS track
http://www.viking9.co.uk