No, because the URL stays the same, but based on some database info, the image that gets generated will be different.
 
m.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glen Lipka
Sent: Monday, November 13, 2006 8:24 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Refresh an image with dynamic src URL?

Is this not working for you?
$("img.whatever").attr("src","newurl.gif");
 
Glen

 
On 11/13/06, Matt Grimm <[EMAIL PROTECTED]> 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
[email protected]
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to