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: 43
Registered: ‎09-26-2011
My Device: Bold 9700
My Carrier: Generic

configuration for access element more than one

hi all, i have several web url that i use on my web work application like link page to facebook or another web, i know that i must include that on access element on config.xml, the problem is i have many web url in my web work, how i include all this web url on my config.xml? below i try to create a solution to solve, help me to correct this, my webwork app contain facebook, twitter and another web

 

<access uri="http://www.facebook.com">
<access uri="http://www.twitter.com">
<access uri="http://www.myanotherweb.com">
</access>
Retired
Posts: 518
Registered: ‎07-18-2011
My Device: Bold
My Carrier: Rogers

Re: configuration for access element more than one

Hi tonystark,

 

Each access tag would need to b closed, like the following example. I've also included a feature ID that would allow that specific domain access to the specified feature ( in this case the system APIs).

<access uri="http://www.facebook.com">
</access>
<access uri="http://www.twitter.com">
</access>
<access uri="http://www.myanotherweb.com">
    <feature id="blackberry.system" />
</access>

 




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)
Contributor
Posts: 43
Registered: ‎09-26-2011
My Device: Bold 9700
My Carrier: Generic

Re: configuration for access element more than one

Hi sir, how about this code below? :

 

<access uri="http://www.anotherweb.com/" subdomain="true"/>

 

i look around on support forum and find code like this

 

but your advice above is just work sir, so much thanks for your help sir :-)

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

Re: configuration for access element more than one

Hi tonystark,

 

The subdomain is a valid attribute so the code you presented is valid as well. It really depends on your use case and whether you need access to subdomains.



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)
Contributor
Posts: 43
Registered: ‎09-26-2011
My Device: Bold 9700
My Carrier: Generic

Re: configuration for access element more than one

So much thanks for your answer sir