View Single Post
 
Old June 15th, 2006, 06:46 AM
joefawcett's Avatar
joefawcett joefawcett is offline
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

In my opinion you don't need AJAX for this. If the image's URL is always the same you can just use setInterval to set it to the real URL but with a spurious querystring to force a refresh. E.g. if the URL is getMyImage.php?id=123 then set it to getMyImage.php?id=123&r=123456 where the r= part is a random number, based on the time perhaps.

--

Joe (Microsoft MVP - XML)