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
Developer
usafrmajor
Posts: 41
Registered: 01-02-2010
My Carrier: Sprint

Have to List all Web Sites in Widget Config.xml File?????

I am creating a web widget that accessed a web page I have that lists several website links on it. 

 

Do I really need to explicitly list all of them in the config.xml file to be able to go to them?

 

Not very flexible as I often add more links to this page through a web interface I created.  If that is the case I would have to manually update the widget, recompile, sign, etc every time I wanted to be able to go to the new links I add to the site.

 

thanks

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,555
Registered: 10-16-2008
My Carrier: Rogers

Re: Have to List all Web Sites in Widget Config.xml File?????

Hi usafrmajor,

 

If you want to allow your widget to browse to any website you can add the access element <access uri="*" subdomains="true" />

 

The one limitation is that if you want a domain to have access to any of the blackberry.* APIs then you will need to explicitly whitelist that domain and add the proper feature IDs to that domain.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Developer
usafrmajor
Posts: 41
Registered: 01-02-2010
My Carrier: Sprint

Re: Have to List all Web Sites in Widget Config.xml File?????

Great thanks!

 

Alan

Please use plain text.
Developer
jtyberg
Posts: 124
Registered: 09-06-2010

Re: Have to List all Web Sites in Widget Config.xml File?????

Hey, Tim.  I'm assuming that there is no way to programmatically manipulate the WebWorks config.xml white list.

 

Is the only way to update the white list to install an update to the application?

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,555
Registered: 10-16-2008
My Carrier: Rogers

Re: Have to List all Web Sites in Widget Config.xml File?????

That is correct, there is no way to manipulate the whitelist through JavaScript.  This would allow a rouge JS to change the whitelist and give itself more permissions.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.