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