Something like that worked for me when I did a fairly complex app that used changing img's to simulate seeking through a video.

-- Yehuda

On 11/14/06, Blair Mitchelmore <[EMAIL PROTECTED]> wrote:
If you want to defeat the cache you could try appending the current time
as a query string:

img.src = "" + "?" + (new Date()).getTime();

-blair

Matt Grimm wrote:
> What would be an ideal way to refresh an image whose src attribute is a
> script that dynamically generates the image? Would it be best to store
> the value of the src attribute in a variable, remove the img element
> from the DOM, and append a new image element with the same URL? In my
> quick tests, it seemed like the browser was just using the same image
> from the cache and I'm not sure how to get around that.
>
> Thanks for anything!
>
> m.
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to