Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Making a widget: problem making it refresh.

Making a widget: problem making it refresh.
Thread Tools
Baninated
Join Date: Mar 2005
Location: An asteroid remanent of Tatooine.
Status: Offline
Reply With Quote
Apr 10, 2006, 12:23 PM
 
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
Reply With Quote
Apr 10, 2006, 12:51 PM
 
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
Reply With Quote
Apr 10, 2006, 02:19 PM
 
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
Reply With Quote
Apr 10, 2006, 08:53 PM
 
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.
The Bitcastle
graphic design, web development, hosting
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:36 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2