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

Java Development

Reply
Contributor
Posts: 22
Registered: ‎03-14-2011
My Device: torch 9800
My Carrier: Developer
Accepted Solution

Help: BrowserField can't display HTML pages

[ Edited ]

Hi,

 

I am using a BrowserField  to display HTML pages, but the page does not fit into the screen, it gets cut  (look image1).

 

9800-03.jpg

                    image1

 

when i try this page with the browser of blackberry, it work very well (look image2)

 

 

 

9800-04.jpg

                       image2

Can anyone give me example of setting of browserfield ?

 

 

Thanks in advanced





Contributor
Posts: 22
Registered: ‎03-14-2011
My Device: torch 9800
My Carrier: Developer

Re: BrowserField can't display HTML pages

Anybody there please help me.. Smiley Sad

Contributor
Posts: 45
Registered: ‎12-20-2010
My Device: Not Specified

Re: BrowserField can't display HTML pages

Hi,

Can you please paste your code here?

-Roshni

Contributor
Posts: 22
Registered: ‎03-14-2011
My Device: torch 9800
My Carrier: Developer

Re: BrowserField can't display HTML pages

 

thx Roshni for reply,

 

BrowserField _browserField = new BrowserField();
_browserField.requestContent(MyURL+";deviceside=true"); add(_browserField);

 

Contributor
Posts: 45
Registered: ‎12-20-2010
My Device: Not Specified

Re: BrowserField can't display HTML pages

Use it like this your page will be loaded properly on the screen.

 

BrowserField _browserField = new BrowserField();       
add(_browserField);
 _browserField.requestContent("http://goolge.com");

 

-Roshni

 

If solved thn press Kudos button.

Contributor
Posts: 22
Registered: ‎03-14-2011
My Device: torch 9800
My Carrier: Developer

Re: BrowserField can't display HTML pages

Yes it work with google but with myURL it does not work

Contributor
Posts: 45
Registered: ‎12-20-2010
My Device: Not Specified

Re: BrowserField can't display HTML pages

What url are you using?

Contributor
Posts: 22
Registered: ‎03-14-2011
My Device: torch 9800
My Carrier: Developer

Re: BrowserField can't display HTML pages

[ Edited ]

I'm realising a professionnel project for the company that I'm working for, it is a professionnel secret , I can't reveal the URL to any one.

 

I'alredy tested that URL in the native browser of the simulator, and it do show all the content of the page safely.

When I use the "BrowserField" it do present all the content of the page, but in a very small part of the webPage,

you can see all the content of the page in a scroller visible in a very small  area : like it's mentioned at this image.

 

 

 980077.jpg980077-01.jpg980077-02.jpg980077-03.jpg

 

 

Super Contributor
Posts: 278
Registered: ‎11-04-2010
My Device: 4.5 and above
My Carrier: none

Re: BrowserField can't display HTML pages

Contributor
Posts: 45
Registered: ‎12-20-2010
My Device: Not Specified

Re: BrowserField can't display HTML pages

Hi,

 

Can you make sure what string are u giving in _browserField.requestContent() method? ur url should be something like "http://www.hostname.com/index", also see that you have removed ";deviceside=true" from that url string.

 

Roshni.