aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes how to refresh image automatically on a page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to refresh image automatically on a page" Watch "how to refresh image automatically on a page" New topic
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: 60997
    
  65

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to refresh image automatically on a page