09-22-2008 06:54 AM
Hi all,
Help me, please, how can I open my .html file in the BlackBerry Simulator browser
09-22-2008 04:26 PM
09-23-2008 12:21 AM
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.
09-23-2008 11:06 AM
10-02-2008 02:04 PM - edited 10-02-2008 02:26 PM
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!
10-02-2008 03:18 PM
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
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.
10-02-2008 03:24 PM
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
10-02-2008 06:20 PM
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!
10-03-2008 01:01 PM
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.
10-05-2008 07:08 AM
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.