Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Dashcode Widget for 'URL'

In Dashcode [latest version of xCode] I have created a widget which when 'Run' in Dashcode opens the Webpage. When dragged into iBooks Author as a URL Widget and tested in iBooks Author it will open the Webpage when loaded onto the 'First Generation' iPad in Preview mode and you tap on the Icon/Image a grey screen opens and top left the 'X' to close and nothing else happens.


This is the code for the event handler in the Widget.


function myClickHandler(event)

{

// Values you provide

var websiteURL = "http://en.wikipedia.com/wiki/Air_New_Zealand"; // replace with the website URL to show


// Show website code

widget.openURL(websiteURL);

}


If required I can post all the code however I thought that would not be necessary given that the above is the only changes I have made.


Help is always appreciated.. Ant

Posted on Jul 7, 2012 11:14 PM

Reply
17 replies

Dashcode Widget for 'URL'

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.