Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
Posts: 13
Registered: ‎04-25-2010
My Device: Blackberry Curve 8550
My Carrier: Vodacom

Open browser from Webworks app?

Got a Webworks app for smartphone (OS 6) how do I give a URL open the Blackberry browser? Thanks
Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Open browser from Webworks app?

Voila Smiley Happy

 

http://www.blackberry.com/developers/docs/webworks/api/blackberry.invoke.BrowserArguments.html

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Contributor
Posts: 5
Registered: ‎06-28-2011
My Device: 9800
My Carrier: SMC-Voda

Re: Open browser from Webworks app?

It works for me, thanks!
New Contributor
Posts: 2
Registered: ‎12-27-2011
My Device: None
My Carrier: TATA Indicaom

Re: Open browser from Webworks app?

Getting follwoing error

 

Exception in subscribe: TypeError: 'undefined' is not a constructor (evaluating 'new blackberry.invoke.BrowserArguments('http://localhost')')

 

Any help?

New Contributor
Posts: 2
Registered: ‎12-27-2011
My Device: None
My Carrier: TATA Indicaom

Re: Open browser from Webworks app?

HIi

Will this work in ripple? As per document, feature set setting is not mentioned as Y. However platform support is marked as Y.

Thanks.

Retired
Posts: 518
Registered: ‎07-18-2011
My Device: Bold
My Carrier: Rogers

Re: Open browser from Webworks app?

It should work in Ripple. I have opened a bug based on this issue here - https://github.com/blackberry/WebWorks-API-Docs/issues/282



1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)
Developer
Posts: 161
Registered: ‎02-08-2012
My Device: PlayBook
My Carrier: None yet

Re: Open browser from Webworks app?

not working in Ripple here, either.

 

TypeError: 'undefined' is not a construct (evaluating 'new blackberry.invoke.BrowserArguments(inSender.url)')

 

logging blackberry gives me:

  {"transport":{},"events":{"eventsMap":{}},"app":{"event":{}},"invoke":{"APP_CAMERA":4,"APP_MAPS":5,"APP_BROWSER":11,"APP_MUSIC":13,"APP_PHOTOS":14,"APP_VIDEOS":15,"APP_APPWORLD":16},"system":{"model":"Playbook","scriptApiVersion":"2.0.0","softwareVersion":"QNX","ALLOW":0,"DENY":1,"PROMPT":2,"NOT_SET":3,"event":{}},"ui":{"dialog":{"D_OK":0,"D_SAVE":1,"D_DELETE":2,"D_YES_NO":3,"D_OK_CANCEL":4,"BOTTOM":"bottomCenter","CENTER":"middleCenter","TOP":"topCenter","SIZE_FULL":"full","SIZE_LARGE":"large","SIZE_MEDIUM":"medium","SIZE_SMALL":"small","SIZE_TALL":"tall"}},"io":{}}

 

logging blackberry.invoke obviously gives me the subset there, where BrowserArguments is not anything.

 

 

 

Developer
Posts: 161
Registered: ‎02-08-2012
My Device: PlayBook
My Carrier: None yet

Re: Open browser from Webworks app?

Following THIS post got it going for me:

 

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/PlayBook-WebWorks-SDK-Invoking-B...

 

As WELL as adding blackberry.Invoke.BrowserArguments -outside- of any "access" sections as well as -inside- all my "access" sections.  Both steps were necessary to get the browser to do anything other than (a) error (b) ignore me.

 

Highlighted
Contributor
Posts: 10
Registered: ‎05-14-2012
My Device: 9300
My Carrier: Vodafone

Re: Open browser from Webworks app?

I try in Ripple, Chorme plug-in, and show me a message "Request to launch Browser application", but when I try in RIM Simulator nothing is displayed and nothing happens