Recent Widgets


Register for DashboardWidgets

Recent Forums Posts

Partners


iCompositions

MacDesktops.net

RSS Showcase
RSS Comments
RSS Forums

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. Posted in: Widget Central

Open safari from widget?

Author Message
Lutz



Joined: 18 Apr 2005
Posts: 19
Location: Sweden

Posted: Mon Apr 18, 2005 - 11:03 am    Post subject: Open safari from widget? Reply with quote

Hey

I'm making my first widget, a google search bar, but when I search google from within dashboard, it tries to make dashboard view google, I guess the only thing to do is a javascript that calls a plugin that opens safari and transfare the action from the form to safari.

or is there a easier way to do it? if not, is there any good documentation I can look at?
View user's profile Send private message Send e-mail Visit poster's website AIM Address ICQ NumberWidgets
pm
Administrator


Joined: 24 Aug 2004
Posts: 398

Posted: Mon Apr 18, 2005 - 3:21 pm    Post subject: Reply with quote

This may be what you're looking for.
View user's profile Send private message Send e-mail Widgets
Lutz



Joined: 18 Apr 2005
Posts: 19
Location: Sweden

Posted: Wed Apr 20, 2005 - 5:53 am    Post subject: Reply with quote

powermac99 wrote:
This may be what you're looking for.


yes, thanks a lot! will begin to experiment with it Smile
View user's profile Send private message Send e-mail Visit poster's website AIM Address ICQ NumberWidgets
JohnnyBender



Joined: 19 Apr 2005
Posts: 17
Location: Toronto, Canada

Posted: Wed Apr 20, 2005 - 12:16 pm    Post subject: Here's how to open Safari from a widget ... Reply with quote

I figured out how to do this by opening the Phone Book widget.

Code:
function wrapURL() {
      if(window.widget)
            widget.openURL("http://www.yourdomain.com");
}

<a href="javascript:wrapURL()"><img src="yourimage.jpg"></a>
View user's profile Send private message Send e-mail Visit poster's website Widgets
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

 
Powered by phpBB © 2001, 2002 phpBB Group