[jQuery] Refresh an image with dynamic src URL?

[jQuery] Refresh an image with dynamic src URL?

Ah, now that's a very elegant solution. Bonus points since it works ;)
Thank you.
m.
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On
Behalf Of Blair Mitchelmore
Sent: Monday, November 13, 2006 8:29 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Refresh an image with dynamic src URL?
If you want to defeat the cache you could try appending the current time
as a query string:
img.src = fileName + "?" + (new Date()).getTime();
-blair
Matt Grimm