Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Contributor
lenniedg2000
Posts: 13
Registered: 04-25-2010
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
Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,555
Registered: 10-16-2008
My Carrier: Rogers

Re: Open browser from Webworks app?

Voila :smileyhappy:

 

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

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
New Contributor
alphie
Posts: 5
Registered: 06-28-2011
My Carrier: SMC-Voda

Re: Open browser from Webworks app?

It works for me, thanks!
Please use plain text.
New Contributor
Sekar
Posts: 2
Registered: 12-27-2011
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?

Please use plain text.
New Contributor
Sekar
Posts: 2
Registered: 12-27-2011
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.

Please use plain text.
BlackBerry Development Advisor
jeffheifetz
Posts: 508
Registered: 07-18-2011
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)
Please use plain text.
Developer
eblade
Posts: 132
Registered: 02-08-2012
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.

 

 

 

Please use plain text.
Developer
eblade
Posts: 132
Registered: 02-08-2012
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.

 

Please use plain text.
New Contributor
Perico
Posts: 8
Registered: 2 weeks ago
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

Please use plain text.