View Single Post
Old 08-27-2008, 05:38 PM   #2 (permalink)
flyingbuddha
The Contributor
 
flyingbuddha's Avatar
 
Join Date: Jan 2008
Location: Birmingham, UK
Posts: 60
Thanks: 10
flyingbuddha is on a distinguished road
Default

Use jQuery.
Make the image src point to your script, and append a querystring to the end with a unique number (using Date() / getSeconds()) every time you want to refresh the image (assuming you'll use something such as setInterval())

Using jQuery, you could use the load event to monitor when it's loaded, you might need to trigger this event each time you have refreshed the src -

$('img').load(function(){
alert('loaded');
});
__________________
Pro. Geek
http://www.mikeholloway.co.uk
flyingbuddha is offline  
Reply With Quote