Recent Widgets


Register for DashboardWidgets

Recent Forums Posts

Partners


iCompositions

MacDesktops.net

RSS Showcase
RSS Comments
RSS Forums

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. Posted in: Widget Development

Image caching?

Author Message
brydeemer



Joined: 22 Aug 2006
Posts: 3

Posted: Tue May 15, 2007 - 2:23 pm    Post subject: Image caching? Reply with quote

Hi there, I'm hoping someone can help me.

In a widget I have an image. That image comes from a URL that returns random images. So the URL is the same yet the image changes.

What is happening is that onReload I am setting the .src of the image to the URL which should force it to go get a new random image. In order to account for caching I am adding a querystring of milliseconds on to it, so it is unique every time.

This technique works perfectly in Safari, yet in Dashboard it returns the exact same image every time. I even tried replacing the entire .innerHTML of the div and not just the .src of the image.

Any ideas on how to force the image to refresh?

Thanks in advance,

Bryan
View user's profile Send private message Send e-mail Widgets
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

 
Powered by phpBB © 2001, 2002 phpBB Group