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
harshadkale
Posts: 10
Registered: ‎06-22-2010
My Device: all
My Carrier: at&t

Re: Widget size limit

Hi tneil,

 

I am trying to assign the .htm file to the <a href ... > in the widget.

The widget page containing the <a> tag is obviously the htm page of the widget project itself.

The referenced page by <a> is not a part of widget and will be residing on the memory card.

My device shows me its path as

 

"/Memory Card/Folder1/Folder2/abcd.htm"

 

When I run the widget (signed) on the device, it pops the error saying that you should mention this in the <access> tag of the config.xml

 

Please guide me for the syntax. I have seen that you can mention the website address in <access uri="" element. How about the memory card?

 

Please guide.

 

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

Re: Widget size limit

If you are bringing the outside content into an anchor tag you will have to whitelist the URL in the access elements.

 

This will look something like:

 

<access uri="file:///myLocalDirectoryPath/" />

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
New Contributor
ctemkar
Posts: 4
Registered: ‎05-09-2011
My Device: Curve 9300
My Carrier: Airtel

Re: Widget size limit

Is there also a limit to the number of files in a directory? I am having the same problem in a directory where I have about 500 files.

 

Is it the total number of files or the files in a directory?

 

When I reduce the files, the app compiles, else it gives an rapc error.

 

Chetan Temkar

Please use plain text.