PDA

View Full Version : Refresh a jpeg


PitchyPaw
8-11-02, 06:31 PM
I have a jpeg image on my web page that contains current weather data from my weather station. New data is uploaded every 15 minutes. The page is refreshed every few minutes with the intent to display current conditions. It is a little annoying to have the page "flip" because of the refresh action.
Is it possible to only "refresh" the jpeg instead of the whole page? Can SSI do this and if so would someone suggest the content of this instruction? If SSI is not applicable is there something else that would work that would be relatively simple?
Thanks.

ffejy
8-11-02, 07:40 PM
I think javascript might be able to do it... you would have to have an onLoad function that waited a few minutes and then changed img.name.src to the same thing... I dont' really know what I'm talking about here, just a vague idea :)

Laurey
8-11-02, 09:10 PM
yes.. SSI will do this.

<!--#include file="file.html" -->
<!--#include virtual="/path/file.html" -->

Do up a HTML page with the refresh command and the jpg file and pull that into the main page you want it on. Make sure you rename your file *.shtml, the S is required for an SSI page.

All should then be right w/the world :)
-L