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
Developer
SamuelD
Posts: 166
Registered: ‎01-14-2009
My Device: Curve 8330

BrowserField2 loading

[ Edited ]

Hello,

 

I'm trying to show a browser field in my application but I'm getting really weird display while the page is loading. See the attached screenshot. I'm using a BlackBerry 9810 OS 7.1. While navigating to this website with the BlackBerry browser, everything is fine.

 

Is there a way to prevent this, maybe only show the result once everything is loaded properly from the server?

 

 

 

 

Thank you, have a nice day.

--
Samuel D.
Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: BrowserField2 loading

The issue is that if the BrowserField is not displayed the memory will likely get unloaded.

 

 

Could you provide the URL to the page or the HTML that is causing this issue?

Also, are you using the actual BrowserField class? Are there any modifications?

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Developer
SamuelD
Posts: 166
Registered: ‎01-14-2009
My Device: Curve 8330

Re: BrowserField2 loading

Hello,

 

This is an internal application so I'm not able to show you any HTML and the URL is not accessible by internet, but I can tell you that the page look fine on the actual browser. This weird state only occur for a second or two, on every page load, even if I go from page to page using links inside the BrowserField.

 

I'm using the BrowserField2 like this:

 

BrowserFieldConfig config  = new BrowserFieldConfig();
config.setProperty(BrowserFieldConfig.ALLOW_CS_XHR, Boolean.TRUE);
config.setProperty(BrowserFieldConfig.JAVASCRIPT_ENABLED, Boolean.TRUE);
config.setProperty(BrowserFieldConfig.NAVIGATION_MODE, BrowserFieldConfig.NAVIGATION_MODE_NONE);

this.browser = new BrowserField(config)
super.add(this.browser);
        
this.browser.requestContent(Constants.BASE_URL);

 

Thank you, have a nice day.

--
Samuel D.
Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: BrowserField2 loading

Could you provide a sample web page that can reproduce the issue?

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.