Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inconsistent onhide/onshow behavior?



Thanks for all your help, but to no avail. I did discover that the onshow/onhide functions were firing, but that the quicktime content was failing to respond to the javascript commands. I now believe it to be a bug between the Dashboard, and QuickTime. I suspect that quicktime doesn't like to be 'frozen' prior to the flip transition.

I decided to give up on flipping to the back, and put my 1 pref control on the front. A little unconventional, but the alternative was worse.

It was a big help knowing that alert(); echoed to the console from the Dashboard. Thanks again!

Best Regards,
Michael Briscoe
Skyrocket Software
www.skyrocketsoftware.com

On Jun 2, 2005, at 9:31 AM, Chris O'Brien wrote:

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


_______________________________________________ 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/email@hidden

This email sent to email@hidden
References: 
 >re: Inconsistent onhide/onshow behavior? (From: Michael Briscoe <email@hidden>)
 >Re: Inconsistent onhide/onshow behavior? (From: "Chris O'Brien" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.