02-26-2013 01:48 PM
Hi,
I am using Browser Field to display some local HTML files in my application. It is displaying the HTML files properly. But while starting of the screen it is displaying some white screen. How can i get rid of this issue??
I have added the below code:
BrowserFieldConfig _bfConfig = new BrowserFieldConfig(); _bfConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE,BrowserFieldConfig.NAVIGATION_MODE_POINTER) ; _bfConfig.setProperty( BrowserFieldConfig.JAVASCRIPT_ENABLED, Boolean.TRUE ); _bfConfig.setProperty(BrowserFieldConfig.USER_AGEN T, "MyApplication 1.0"); BrowserField myBrowserField = new BrowserField(_bfConfig); add(myBrowserField); BrowserFieldRequest request = new BrowserFieldRequest("local:///OTPhelp_en.html"); myBrowserField.requestContent(request);
Please help me..
02-27-2013 04:03 AM
Presumably this is the screen that is displaying while your page is loading. So you could display some sort of splash screen, or perhaps some 'loading' screen.
Either way, you can add a BrowserFieldListener to the BrowserField and then dismiss the screen when the
documentLoaded(..)
method is called.
Review the API for more on BrowserFieldListener.
02-28-2013 04:29 AM
Showing the pop up may be a way. But i don't want to display any progress bar or loading bar. Is there any alternative way??
02-28-2013 04:35 AM
What do you want to display?
02-28-2013 05:20 AM
When user will reach to my screen, he will be able to see the help content which i am getting from the HTML files. I don't want to display any loading bar while loading the HTML files on the Browser Field.
02-28-2013 05:49 AM
Can you change your help screen to something really simple that will display very quickly. Then you can test to see if the white screen is while it is loading?