10-02-2012 04:57 PM
here's the script:
<script type="text/javascript">
function onInvokeSuccess() {
alert("Invocation successful!");
}
function onInvokeError(error) {
alert("Invocation failed, error: " + error);
function openWebLinkInBrowser() {
// open web link in browser
blackberry.invoke.invoke({
target: "sys.browser",
uri: "http://brooklynn.ky/sitemanager/"
}, onInvokeSuccess, onInvokeError);
}</script>
here's the xml:
<content src="index.html" rim:allowInvokeParams="true"/>
<!-- Expose access to all URIs, http protocols -->
<access uri="http://brooklynn.ky/sitemanager/" subdomains="true">
<feature id="blackberry.ui.dialog" required="true" version="1.0.0.0"/>
<feature id="blackberry.app" required="true" version="1.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0"/>
</access>
Solved! Go to Solution.
10-02-2012 05:00 PM
10-02-2012 05:05 PM
10-02-2012 05:08 PM
Sorry I think you mis-understood I said device build.
What device or simulator are you deploying to?
You can go to settings-> About --> OS --> Os Version
10-02-2012 05:18 PM
10-03-2012 08:35 AM
I tested it on 10.0.9.497 and it works as desired. I did have to add a bracket since your on error function does not have a closing brace, but that might have just been an entry error in your post. Can you confirm that you are getting to the error callback? Or what behaviour you mean by "not working"?
10-03-2012 09:02 AM
10-03-2012 09:22 AM
erikjohnzon,
the links work in ripple but not on BB10 dev alpha device.
the brace is there. will confirm error callback.
how does one get an update to 10.0.9.497?
10-03-2012 09:26 AM
If you can confirm the error callback it should tell you something ie: INVOKE_NO_TARGETS, INVOKE_QUERY_ERROR etc, then we can go from there.
It's an internal build, so you probably won't see it for a bit. It was just the closest OS I had loaded to yours. I'll load your version up if we can't get anywhere with the error callback.
10-03-2012 10:17 AM
erikjohnzon,
can I send you the file?