Created
March 12, 2012 17:03
-
-
Save minego/2023373 to your computer and use it in GitHub Desktop.
Opening a window in a BlackBerry PlayBook WebWorks app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.