How to refresh template.dotx?

META refresh for web cam images too

  • I've got a web page that references the images from two web cams. These cameras upload new images every minute. I know how to do a META REFRESH code to refresh the page, BUT that doesn't also refresh the images. The auto-refreshed simply uses the cached image. You only get new images when you manually refresh. What HTML code do I use to force auto-refresh on the page AND images?

  • Answer:

    Hi Jhabley, The problem is fooling the browser's cache. The easiest way, and one that works in most cases is to append a '?' to the end of the image SRC, this way the browser generally treats the image as if it were a dynamic object as it assumes you are passing values. Sometimes you may need to actually use fake values. However sometimes this doesn't work as there are transparent proxy servers between you and your target. Try it like so: <html> <head> <title>Cam Images</title> <meta http-equiv=Refresh content="60; URL=http://www.my.page/"> <meta http-equiv=Expires content="Wed, 01 Jan 2003 12:00:01 GMT"> </head> <body> <h1>Cam 1</h1> <img src="http://www.some.server/cam/cam.jpg?blah=1"> <br> <br> <h1>Cam 2</h1> <img src="http://www.someother.server/cam/cam.jpg?blah=1"> </body> </html> If that doesn't work in your situation, let me know and I can make some suggestions, however that technique has been successful for me on most occasions. Obviously your implementation will be slightly different :) Also, the Expiry tag is probably not needed, but it can't hurt. Regards, sycophant-ga

jhabley-ga at Google Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.