Skip to content

Instantly share code, notes, and snippets.

@minego
Created March 12, 2012 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minego/2023373 to your computer and use it in GitHub Desktop.
Save minego/2023373 to your computer and use it in GitHub Desktop.
Opening a window in a BlackBerry PlayBook WebWorks app
/*
WebWorks for the BlackBerry PlayBook requires the following 2 lines in your
config.xml file if you want to open windows:
<feature id="blackberry.invoke" required="true" version="1.0.0" />
<feature id="blackberry.invoke.BrowserArguments" required="true" version="1.0.0" />
*/
function openURL(url)
{
try {
blackberry.invoke.invoke(blackberry.invoke.APP_BROWSER,
new blackberry.invoke.BrowserArguments(url));
} catch (e) {
window.open(url, '_blank');
}
}
@fmdoppel
Copy link

fmdoppel commented Oct 6, 2016

How can i invoke the Browser with a local file? BrowserArguments requiere , 'http://' but i want to invoke a local file with 'file:///' on Playbook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment