How do I get a url to open on a widget?

Im making a widget that will have an image(And other stuff). When the image is clicked i want safari to open the url. How do i do this?
*Im new to dashcode and programming.
*Im using Dashcode.

In the Library, the second tab has a bunch of javascript code snippets. One of them is 'Show website':
// Values you provide
var websiteURL = "http://www.apple.com/"; // replace with the website URL to show
// Show website code
widget.openURL(websiteURL);
To use it, select your image, go in the inspector in the 'behaviour' tab, choose the 'onclick' event, enter a function name. The inspector should bring you right to your javascript function, where you can paste the above code.

Similar Messages

  • How can I get Firefox to automatically open a new search in a new tab please?

    How can I get Firefox to automatically open a new search in a new tab please? [Without me manually opening the tab]

    For searches from the Search Bar, when you use the Enter key.
    Type '''about:config''' in the URL bar and hit Enter. <br />
    ''If you see the warning, you can confirm that you want to access that page.''
    Pref = '''browser.search.openintab''' = double-click to toggle to '''true'''

  • How to I get a folder to open up in Final Cut Pro version 6 thats off my desktop?

    How do I get a folder to open up in Final Cut Pro version 6.  I'm on a MAC OS X Version 10.6.8.  The movie folders I imported on my desktop from a Lacie Rugged Triple external hard drive.   When I try to import the folder a pop up comes up that says, "ERROR: No translatin templates matching the selected XML file were found.  Unable to import this file."   When I try and drag the folder into Final Cut a pop up comes up that reads "Please choose a translation document file".  What should I do or what am I not doing? 
    Cliff

    YYou should ask this question on the Final Cut Studio forum.

  • I've downloaded the Creative Cloud, once completed the creative cloud window pos up with spinning whell in center then the entire window disapears. How do I get it to remain open so that I can download programs needed.

    I've downloaded the Creative Cloud, once completed the creative cloud window pos up with spinning whell in center then the entire window disapears. How do I get it to remain open so that I can download programs needed

    right click the executable > click 'run as administrator'.

  • How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    Hi
    Please take a look to this thread Re: Can I refresh the browser rather than open a new tab?

  • How do I get IE 11 to open in the same window on the task bar?

    How do I get IE 11 to open in the same spot on my task bar.  i.e. IE 11 is on my task bar. When I open it, it opens in a new place on the end of the task bar.  Microsoft Outlook, Windows Explorer, Quicken, Adobe, etc,, all on the task bar open
    right at there location on the task bar; not in a new place at the end of the task bar.
    How do I get IE 11, Windows 7, 64 bit to open at the same place as the IE icon???
    Thanks

    Hi,
    Seems a strange issue, How about un-pin IE from the taskbar, then re-pin it to the taskbar for a test?
    If doesn't work, I suggest you turn off IE 11 in "Turn Windows Features on or off", reboot PC, then re-turn on, check the result again.
    Regards
    Yolanda Zhu
    TechNet Community Support

  • How do I get CurrentVersion.fcpevent to open in 10.1.1

    HI,
    I backed up files a while back of my FCPX files to a server. I have a project i need to reopen and edit. In the latsest version of FCPX, it will not convert open or import. How do I get this project to open up and allow me to edit or update the file?

    You can't open that file. Assuming the event that it is part of was created in an earlier version, the event needs to be in a folder named Final Cut Events. Any projects associated with that event need to be in a folder named Final Cut Projects. When FCP X 10.1 is opened, if you go to Update Projects and Events and then navigate to the drive where these folders live, it should create a new library for them.
    Russ

  • I saved my "users" folder to an external HD. I did erase and install on my imac. Now how do i get the accounts to open up on the fresh installation?

    I saved my "users" folder to an external HD. I did erase and install on my imac. Now how do i get the accounts to open up on the fresh installation?

    To move a home folder, create a new home folder, copy the contents of the old home folder into the new home folder, and then delete the old home folder.  Take a look at this link, http://manuals.info.apple.com/en_US/UserMgmt_v10.6.pdf

  • I bought and downloaded some music off of the internet on my laptop that uses Windows 8. How can I get my music to open automatically in my itunes instead of opening in the music app?

    I bought and downloaded some music off of the internet on my laptop that uses Windows 8. How can I get my music to open automatically in my itunes instead of opening in the music app (the orange sqaure with headphones)? Currently I have had to often downloads and sift through all my files to find the ones I want to open into itunes, and it's irritating.

    Media is only where the user puts it.
    Installing iTunes does not and has never caused media to magically appear on the computer.
    Copy the ENTIRE iTunes folder from the old computer (or backup of the old computer) to the new computer.

  • How can you get your ipod touch open when you forgot the password and its disabled and not connected to wifi

    How can you get your iPod touch open when you forgot the password and its disabled and not connected to the Internet Connection and you don't want to reset it.

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Forgot passcode or device disabled
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:                                                             
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes       
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:                         
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

  • How can I get a book to open that is downloaded on my Ipad 3, I have uninstalled, reinstalled. Held the turn off button and home button down to reboot, nothing has helped.

    How can I get a book to open in my nook app, it downloaded, and installed, it just want open, I have never had this problem before.

    This is entirely my complaint.
    I have to sit without useable internet for 5 days when there is no fault, before anyone does anything about it ? BT visit the village to do something for another customer, mess up my perfectly working broadband, and then refuse to do anything about it for 5 days. And I pay full price during that time. Let's just hope they don't come back to do something else within those 5 days !!!
    There isn't a fault with the line, it is perfectly stable. I just need somebody to use common sense and set the IP profile back to what it was.
    If the system is so clever, it could at least try moving off 135k to 512k say after an hour or so.
    I will try using that link though and see if somebody can do something !!
    Frustrated is not the word ! If I ran my business like this I'd have no customers left. I'm pretty sure that's not the first time somebody has posted that on here

  • How do i get iphoto to NOT open automatically when i plug in my devices for updating in iTunes ??

    How do i get iphoto to NOT open automatically when i plug in my devices for updating in iTunes ??

    Just so i understand.  It happens when i connect my Ipad or Iphone, which i want to stop.  I'm cool with it opening when I connect my camera tho.  Can i customize it that way (just to open for my camera, and NOT my i-devices) ?
    thx for the help

  • How do you get a topic to open in a custom window when accessed from the index?

    I right click on an index key word and open Properties. There is only one topic associated with this key word. I click on the Advanced tab, select the custom window that I created. Click OK, compile, etc.
    When I try to access this topic from the index, it still opens in the default pane. When I access it from the TOC, it opens in the custom window. How can I get the topic to open in the custom window from the index?
    Thanks!
    Sue

    Hello,
    The link might not work in Preview (When the option to open link in new tab is checked) however it will work if you do a File>Preview page/site in Browser.
    Muse Preview has only one tab and cannot open another tab/window which is why this functionality does not work in Muse Preview. but works in preview in Browser and in published site.
    Regards,
    Sachin

  • When I'm checking my emails and click on a link that was sent to me in the email, how do I get the link to open?

    when I'm checking my emails and click on a link that was sent to me in the email, how do I get the link to open?

    Identify and remove adware
    http://www.thesafemac.com/arg/
    or  use Adware Removal Tool.
    http://www.thesafemac.com/art/

  • How do I get a pdf to open using Safari?

    How do I get a pdf to open using safari?

    try right click, open in new safari window or tab. Some PDF's download right away,some are able to open in Safari. If not, they should be able to open in Preview.

Maybe you are looking for

  • Dll issue, works in release.exe but not in debug mode.

    I have an issue with a dll that was previously working in both released and in debug mode.  Now if I create a released .exe it functions.  If I run it in debug mode the call to the dll function never returns.  eventually whatever is occurring behind

  • Responsive Design Help

    Hi. I have a website called e okul dostu. The adress for my site is http://eokuldostu.com Currently I would like to know how it looks on iPhone. It is responsive design but I am not sure if it is the right choice. Your opinions are valuable for me. I

  • Custom user name mapper needs external LDAP connection.

    I have a custom user name mapper that needs to connect to our external LDAP. Our security realm is configured to connect to the external LDAP for users and groups. Is there a way to reuse this connection in the custom user name mapper?

  • ISE wired onboarding

    Hi all Is it mandatory to use EA-TLS in wired 802.1x onboarding? Or i can use PEAP-MSCHAPv2? Challenge is customer they don't have internal CA server. Is there any workaround on this? The ISE application is using veriosn 1.1.3 patch 4 Thanks Noel

  • Service Quotation number from Service order

    Hi, As per the process, we create service quotation from service order using the transaction DP80. I can get the service order number from the quotation (VBAK-AUFNR). But I need to get this quotation number from service order or service notification