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: Click a link and the flip-over animation dies...?



Hi Blake,

I have never had a problem using

<a href="" ...>...</a>

Where "handleURL" does

if (window.widget) {
    widget.openURL(url);
} else {
    document.location = url;
}

Alternately if you're dynamically constructing the links you could write out either _javascript_:widget.openURL or the url itself as the href value.

md

On Jun 3, 2005, at 5:48 AM, Blake Patterson wrote:

Thanks!

Did the trick!





bp

On Jun 3, 2005, at 6:27 AM, Chris O'Brien wrote:


You'll notice it's not just the flip over thing but everythign
releated to the widget object. You'll see this behavious exhibited
when sending forms and using reload() etc - basically anything that
would change the location of a page when used as an actual web site.

To prevent losing the 'widgetness', just stop the 'page' from
changing. In you're case a simple

<a href=""http://www.site.com">http://www.site.com" margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">false">Linky</a>

would work. Notice it's the return false part stopping the default
behaviour from occuring. event.preventDefault() is also useful.

I'm sure a more elegant soluion will present itself in the future.

Chris.

On 6/3/05, Blake Patterson <email@hidden> wrote:


I am having a problem just when I thought my widget was ready for
release.  I had not noticed this before so not sure when this came
into the mix.

When you click a weblink (which triggers widget.openURL - and yes my
plist is setup to access the network) it loads the page fine in a
browser on the desktop.  After that first click, no other click
triggers a URL open AND when you click the info icon, the rear of the
widget IMMEDIATELY appears, no animation.  Anim is fine before the
first click.

No idea what this could be.  I have my links setup as <a href=""
class="loadPageFunc(pageid)"...>

Please help!  Anyone seen this before?  Thanks!






bp
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

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:

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:

This email sent to email@hidden


----------------------------------------------

Matt Drance

DTS Engineer

Java - Dashboard - Address Book

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: 
 >Click a link and the flip-over animation dies...? (From: Blake Patterson <email@hidden>)
 >Re: Click a link and the flip-over animation dies...? (From: "Chris O'Brien" <email@hidden>)
 >Re: Click a link and the flip-over animation dies...? (From: Blake Patterson <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.