Hi all, it's possible to have a js script that checks repeatly, say once each 5 secs, the last modified date of an image file on the server and, if changed, reload the page or update the page with the new image?
Thanks.
Are you paying for the bandwidth yourself?
I'm not positive, I am new to Javascript. but, Your browser caches the image locally. I believe that even IF you are able to find that the image was a new image, the fact that the image has the same name as the old means that the browser will see that the names are the same, and use the one from local cache.
You can force a reload on the intire page, again increasing your bandwidth.
I think you may be better off naming the the files in sequence, imagefile000.png, then while using the 000 file see if 001 exists, and if so change the src in the DOM element and reload the new image.
Then change the currentindex in your java script to begin looking for 002.
How often do you expect it to change?