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
Related Q & A:
- How do I do a shot with my web cam?Best solution by answers.yahoo.com
- How to turn on Web cam audio on MSN?Best solution by ehow.com
- How do I use my web cam for instant messaging?Best solution by Yahoo! Answers
- How do i take pics with my web cam?Best solution by Yahoo! Answers
- I was thinking of buying a web cam, but I was woundering if you can use a digital camera instead of a web cam.Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.