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
New Developer
Posts: 9
Registered: ‎08-21-2008
My Device: Not Specified
Accepted Solution

opening locally stored webpage in Browser?

Hi,

 

sorry if this is a dumb question - but I can't seem to find a solution anywhere: 

 

Is it possible to open an html page that is stored on the BlackBerry (Bold in my case) in the Browser?

 

I tried typing  file://Device%20Memory/home/user/documents/myFile.html  but that gives me an error ("problem rendering the page")

 

I also tried opening it from the file browser (Explore) in Media, but that opens it in some preview app or so that doesn't seem to have the same CSS and JavaScript support than the actual Browser.

 

Does anyone know another way?

Guru I
Posts: 19,020
Registered: ‎07-29-2008
My Device: Passport, Playbook, 9320BES
My Carrier: Bouygues _ SFR

Re: opening locally stored webpage in Browser?

using the URL is the correct way. What is the content of the page ? Maybe there is really something complicated in it.


The solution from the Media Explorer in fact does not open the browser, but a viewer (meaning the links do not work).



The search box on top-right of this page is your true friend, and the public Knowledge Base too:
Developer
Posts: 107
Registered: ‎09-25-2008
My Device: Not Specified

Re: opening locally stored webpage in Browser?

Try using three slashes after the file: instead of two.
New Developer
Posts: 9
Registered: ‎08-21-2008
My Device: Not Specified

Re: opening locally stored webpage in Browser?

Thanks a lot Xandrex and staktrace - you got me a little bit further, at least:

 

I tried using 3 slashes after file: but that didn't seem to help. Then I moved the file into the system folder to eliminate any problems caused by the  URL-encoded "Device Memory" - and there it worked (with 3 slashes)!

 

But of course I'd much prefere not keeping my stuff in "System", especially since I can't put files there directly when copying them from the desktop. So, is there any other way to address "Device Memory"? I'm using "Device%20Memory" - is there anything else the BlackBerry browser uses to represent a space (it won't actually let me type one) ...?

 

Thanks for any thoughts!

Developer
Posts: 107
Registered: ‎09-25-2008
My Device: Not Specified

Re: opening locally stored webpage in Browser?

After googling this problem a bit I think you might have to use "store" instead of "Device%20Memory" for it to work. Try file:///store/home/whatever.

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=131
New Developer
Posts: 9
Registered: ‎08-21-2008
My Device: Not Specified

Re: opening locally stored webpage in Browser?

Awesome! That's it!! 

 

Thanks a lot!

Highlighted
New Developer
Posts: 9
Registered: ‎08-21-2008
My Device: Not Specified

Re: opening locally stored webpage in Browser?

Just for the benefit of anyone else skimming this post: the thread quoted by staktrace above also gives the 'internal' address of the Media Card:

 

  file:///SDCard/