 |
 |
Making a widget: problem making it refresh.
|
 |
|
 |
|
Baninated
Join Date: Mar 2005
Location: An asteroid remanent of Tatooine.
Status:
Offline
|
|
I have just got into widget development. I'm starting from what I know already of web design and programming. So far it's come easy as it's the same html and css etc for web page development. I've got a widget done that allows family members to run it on their computer. The widget basically looks like an empty picture frame and displays a pic of the day uploaded by a family member. Every day a new pic displays in the frame. Should be easy.
Testing the widget's html file in a browser is perfect. A new pic is available to see by all friends and relatives everytime it is uploaded. Here's the problem. Running the widget in Dashboard works fine the first time but after that it doesn't refresh. We see the first image that was uploaded but after that the image has remained cached and the widget/Dashboard won't fetch the new updated/uploaded image.
I tried all the different meta tags to prevent caching and to make the widget's html refresh constantly but it seems that meta tags don't do anything when running in Dashboard.
So I am asking for any widget developers for help please. Very much appreciated by 13 people!
btw: There's no javascript. Only html, css, a background image and a pic of the day uploaded to a remote host.
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
I think you'll want to use Javascript. I don't do much Dashboard development, but I understand it doesn't respect meta refresh tags.
(Last edited by Chuckit; Apr 10, 2006 at 01:00 PM.
)
|
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Dec 2004
Status:
Offline
|
|
Originally Posted by Chuckit
I think you'll want to use Javascript. I don't do much Dashboard development, but I understand it doesn't respect meta refresh tags.
It doesn't respect anything meta. It uses webcore for rendering but it isn't a browser of itself to understand meta. There is a trick you can do.
That picture frame: Instead of having an empty area calling a pic file on a host make that empty area into an iframe. The iframe calls a html file from the host and in that html file you can put the image and also the meta info for refreshing and pragma no cache whatever.
That will work.
|
|
Anyone who denies climate changes naturally is a Climate Change Skeptic.
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Aug 2001
Location: Durango CO
Status:
Offline
|
|
use this for the link: blablahbla.jpg?i=1 and increment the counter by one each time you need a refres (with javascript) and it will not cache it.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |