Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Avizzv92

macrumors regular
Original poster
Mar 23, 2008
172
0
I want my widget when dashboard is opened by the user too run a function. Not just when the widget is loaded for the first time on startup. I'm using this document as a guideline...http://developer.apple.com/documentation/AppleApplications/Conceptual/Dashboard_ProgTopics/Articles/Events.html#//apple_ref/doc/uid/TP40003044-DontLinkElementID_35

Here is a quick example of what I have that doesn't seem too run when dashboard is opened.
Code:
if (window.widget)
{
widget.onshow = onshow;
}

function onshow()
{
helloText.style.visibility = 'visible'
}
What would I be doing incorrectly?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.