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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 554
Registered: ‎10-31-2009
My Device: Torch 9800, Bold 9700
My Carrier: Movistar, Telenor
Accepted Solution

How does it really work?

If I understand it correctly then "eveything" I put in the folder I use to package gets packaged into the "bar" file.

The "bar" file is what starts the app and displays the "index.html".  This obviously implies that to get the start page displayed does not require an internet connection. If I also put "dependent" pages in the same folder they also seems to be "reachable" offline. How is this "internal" navigation within the "bar" file implemented?  Is it 100% transparent with using server access for the dependant pages. I know there is an alternative using the "appcache". The difference being that appcache requires at least one internt access.

 

 

If everything seems to be under control, you're just not driving fast enough
-Mario Andretti-
Retired
Posts: 165
Registered: ‎09-24-2012
My Device: Passport
My Carrier: Bell

Re: How does it really work?

Hi ingvar_e,

 

Navigation behaves the same way it would if you run a local .html file on your PC. Scripts and styles are loaded by their relative path to the index.html. The only difference is that the local file also has access to content hosted on a server (on another domain), as long as the URL is whitelisted. 

 

If your local .html file references external resources, an internet connection is required every time the application launches. Using appCache, like you've said will only need to download these files once, and fetch from cache on every subsequent use.

 

Let me know if this answers your question.

 

Highlighted
Developer
Posts: 554
Registered: ‎10-31-2009
My Device: Torch 9800, Bold 9700
My Carrier: Movistar, Telenor

Re: How does it really work?

Perfect.

If everything seems to be under control, you're just not driving fast enough
-Mario Andretti-