Recent Widgets


Register for DashboardWidgets

Recent Forums Posts

Partners


iCompositions

MacDesktops.net

RSS Showcase
RSS Comments
RSS Forums

Post new topic   Reply to topic Posted in: Widget Development

Refreshig/reloading Widget

Author Message
hoffmanjon



Joined: 04 Jan 2007
Posts: 1

Posted: Thu Jan 04, 2007 - 9:59 am    Post subject: Refreshig/reloading Widget Reply with quote

Hi,
Is there anyway to refresh/reload a widget automatcily using javaScript? Basiclly I would like to be able to refresh/reload the widget (as if the control-r was pressed) from my code.
Thank you for any help you can provide

Jon
View user's profile Send private message Send e-mail Widgets
EricWood



Joined: 20 Nov 2006
Posts: 26
Location: Austin

Posted: Sat Jan 06, 2007 - 12:06 am    Post subject: Reply with quote

Not that I know of...
You shouldn't need to do that, though. Check your code; there's probably a way.
View user's profile Send private message Send e-mail Visit poster's website AIM Address Widgets
galendw



Joined: 30 May 2005
Posts: 71
Location: Here.

Posted: Sat Jan 06, 2007 - 9:41 am    Post subject: Reply with quote

There is a way:

Code:
window.location.reload()


However, I would recommend against using it. It doesn't do the swirl-around thing (oh no!), and, more importantly, it doesn't create the widget object in the reloaded version.

(Disclaimer: I know this was true a while ago. Apple might have changed this by now.)
_________________
View user's profile Send private message Send e-mail Visit poster's website Widgets
Post new topic   Reply to topic

 
Powered by phpBB © 2001, 2002 phpBB Group