| Author |
how to refresh image automatically on a page
|
Hope Zhu
Ranch Hand
Joined: May 11, 2004
Posts: 32
|
|
I am working on a test html page to auto refresh an image, the image is taken by my webcam. If the image name remain the same the image won't refresh automatically. Can someone please help!! Below is my code.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56185
|
|
Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.
You can go back and change your post to add code tags by clicking the button on your post.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
You are cached, you need to add a random querystring value to break the caching
Eric
|
 |
Hope Zhu
Ranch Hand
Joined: May 11, 2004
Posts: 32
|
|
Thanks Eric! I am still confused. By using "webcam1.jpg?ts=" + encodeURIComponent( new Data().toString() ), do you mean I need another file name instead of webcam1.jpg to break the caching?
Hope
|
 |
Hope Zhu
Ranch Hand
Joined: May 11, 2004
Posts: 32
|
|
I understand now. problem fixed, thanks a lot!
Hope
|
 |
 |
|
|
subject: how to refresh image automatically on a page
|
|
|