JavaScript alert()s are echoed to the console (see Console.app).
Also, if you test whether you are running as a widget before doing
widget specific things, then you'll be able to check in Safari if you
so desire. Hence why Apple recommends if(window.widget) before such
things. To cut to the chase: if (window.widget)
setTimeout("widget.performTransition()", 0); will let you flip to the
back in both (since it's just changing the displays of divs etc) and
the widget specific code won't make Safari throw a wobbler.
I haven't had any problem with onshow/hide events either - are you
adding event listeners in a function called both from an onload called
function and from the function handling the toggle between font and
back?
Also, you can control the quicktime plugin from javascript, so just
use it's Stop() method when switching to the back, and when you're
back to the front, call Pay().
Chris.
On 6/2/05, Michael Briscoe <email@hidden> wrote:
Here's some more detail...
I'm trying to control the playback of an Quartz Composition embedded
in a QuickTime file. The onshow/onhide functions get called and work
fine until I flip the Widget to the back. What I think might be
happening is that the QC content is still attempting to draw possibly
breaking the javascript?
Is there a way to unload a movie using javascript before the Widget
is flipped, and then reload once it's returned to the front?
I'm having trouble debugging this since you can't flip to the back in
Safari, and alert() doesn't appear to work with the Dashboard.
I'm developing a widget, and have noticed that the onhide and
onshow functions seem to work beautifully after creating an
instance of my widget. BUT, as soon as I flip the widget over, and
then back again, theses behaviors no longer activate.
Is this a known bug? Or should I provide more detail.
Best Regards,
Michael Briscoe
Skyrocket Software
www.skyrocketsoftware.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/chrisobr%
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/skyrocketmm%
40earthlink.net
This email sent to email@hidden