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
Highlighted
Contributor
Posts: 26
Registered: ‎06-10-2011
My Device: Blackberry 9800 Simulator
My Carrier: Fledge Simulated Network

Can BrowserField tell us that it has finished rendering?

Hi,

 

I have a screen wtih labelfields and a browserfield. Contents of browserfield is rendered from a string, that is hardcoded.

 

 

BrowserFieldConfig config = new BrowserFieldConfig();
    	config.setProperty( BrowserFieldConfig.NAVIGATION_MODE , BrowserFieldConfig.NAVIGATION_MODE_NONE );
    	config.setProperty( BrowserFieldConfig.USER_SCALABLE , Boolean.FALSE );
    	config.setProperty( BrowserFieldConfig.ALLOW_CS_XHR , Boolean.TRUE );
        
        BrowserField browserField = new BrowserField( config );
        
        try {
        	browserField.displayContent( browserContent, Statics.baseURL );
        } catch(Exception e) {
        }
        add( browserField );

 

When this screen gets pushed, label fields show up first. Browserfield only appear moments later.

 

Is there anyway I can display everything at same time?

 

This is crucial, as users may proceed to next page and miss important info in the browserfield.

BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Can BrowserField tell us that it has finished rendering?

You could display a status for loading of the content in the BrowserField so that users are aware that something is going on.

 

How to track progress of page loads in your BrowserField2 application

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