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
New Developer
Maxidrom
Posts: 8
Registered: ‎09-22-2008
My Device: Not Specified

Opening user .html in simulator browser

Hi all,

Help me, please, how can I open my .html file in the BlackBerry Simulator browser

Please use plain text.
Administrator
MSohm
Posts: 14,528
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Opening user .html in simulator browser

You can access it from a web server.  Note that you'll need to run the MDS Simulator in order to use the BlackBerry Browser in the BlackBerry Simulator.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
Maxidrom
Posts: 8
Registered: ‎09-22-2008
My Device: Not Specified

Re: Opening user .html in simulator browser

Hi Mark, 

I have Blackberry Simulator and MDS Simulator. I wrote my own html file with JavaScript code and CSS. I want to try it in my BlackBerry Simulator browser.

Please, explain more detailed how can I do it. 

Please use plain text.
Administrator
MSohm
Posts: 14,528
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Opening user .html in simulator browser

You can open the BlackBerry Browser (select Go To on the menu first on earlier versions), type in the URL of your page and then view it.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
BBAlison
Posts: 3
Registered: ‎10-02-2008
My Device: Not Specified

Re: Opening user .html in simulator browser

[ Edited ]

Is there any way to view .html pages on the BB without connecting to the web?

 

Right now I would just like to render .html files on different models (via the simulator) and do not require any functionality (other than the intial rendering).

 

I am under the impression that I cannot use the BB Browser in the Simulator since I already have a registered BlackBerry that uses the Desktop Manager.  

 

Thanks!

Message Edited by BBAlison on 10-02-2008 02:26 PM
Please use plain text.
Administrator
MSohm
Posts: 14,528
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Opening user .html in simulator browser

Where are the files stored that you are trying to render?  If they are on the simulator micro SD card of the BlackBerry Simulator you can open then in the BlackBerry Browser using a url that starts with file:///.

 

How To - Use a computer file system as a microSD card
Article Number: DB-00654

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800792/801083/How_To_...

 

I'm not sure what you are asking here:


BBAlison wrote:

 

I am under the impression that I cannot use the BB Browser in the Simulator since I already have a registered BlackBerry that uses the Desktop Manager.  

 


 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
BBAlison
Posts: 3
Registered: ‎10-02-2008
My Device: Not Specified

Re: Opening user .html in simulator browser

The SD card info looks perfect to me, thanks for such a fast reply!

 

I was told that "current blackberry users cannot use the browser part of the simulator because their email account is already linked to a Blackberry account."

 

Thanks again

Please use plain text.
New Developer
BBAlison
Posts: 3
Registered: ‎10-02-2008
My Device: Not Specified

Re: Opening user .html in simulator browser

I have sucessfully mapped my computer to act as the SD card. If I go to "media" on the BB Simulator I can see pictures and music that I've put on the "card" just fine.

 

When I try to view my .html file in the BB Browser it doesn't work.  

 

My SD Card is mapped to:

C:\Documents and Settings\...\Desktop\HTML\

 

My file is located in the folder:

C:\Documents and Settings\...\Desktop\HTML\BlackBerry

 

I have tried putting my file, TT.html, in the BlackBerry folder, and also in the documents folder contained within the BlackBerry folder and in other places. I cannot seem to get file:///TT.html to work. I tried also deleting the file extension. Every time I get the error "A problem occured while trying to render the page"


I'm left wondering:

 

What folder should I put TT.html in to be able to read it using the BB Browser (and should I just be able to do file:///TT.html or file:///documents/TT.html). 

 

 

Thanks so much!

Please use plain text.
Administrator
MSohm
Posts: 14,528
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Opening user .html in simulator browser


BBAlison wrote:

 

I was told that "current blackberry users cannot use the browser part of the simulator because their email account is already linked to a Blackberry account."

 

Thanks again


I'm not sure what you mean here.  Having an email account setup on a BlackBerry should not impact the browser.

 

The location of the file on the micro SD card should not matter.  Are you opening the HTML file from within the BlackBerry Browser itself or from the Media application (exploring the media card)?  You should use the BlackBerry Browser, however the Media application can be used to verify the location of the HTML file by exploring the micro SD card.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
ttklf4
Posts: 43
Registered: ‎07-29-2008
My Device: Not Specified

Re: Opening user .html in simulator browser

Hello BBAlison,

 

on the BlackBerry the path of the SD Card is mapped to the name SDCard. If you start the emulator with the commands

 

 /fs-sdcard=true /fs-sdcard-root="C:\MyProjects\BlackBerrySDCard"

 

a standard directory structure of a media card is automatically created. And if you save your HTML file in the folder documents you have to enter

 

file:///SDCard/BlackBerry/documents/MyHTMLFile.htm

 

as url in the browser.

 

Please use plain text.