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: Do widget function calls within that external page work?



I've never tried widget calls from remote code, but I am quite certain it should work. You'll want to use widget.openURL:

<a href="javascript:widget.openURL('http://apple.com/');">Go to Apple</a>

Is this what you were doing without success? (It also works as an onclick, of course, but then you don't need "javascript:".) If this doesn't work for you, then can you send any error messages from / Applications/Utilities/Console.app?

Ben
--
Ben Kazez
http://www.benkazez.com

On Nov 1, 2005, at 8:01 AM, Patrick Hurley wrote:

I have a widget that displays content from a webpage. I've tried to make content on this page hyperlinks that open in a new browser window. It doesn't work for me and the best I've managed is to get it to open inside the widget which I don't want. I know its probably quite simple but can someone please advise what I need to do. Thanks
I've tried widget.openurl among other things.
The one problem I may have is if you're pulling HTML from an external source into your widget, do widget function calls within that external page work?
_______________________________________________
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/kazezb% 40carleton.edu


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: 
 >Do widget function calls within that external page work? (From: Patrick Hurley <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.