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

Posts: 47
Registered: ‎03-09-2011
My Device: Torch 9800
My Carrier: Airtel

After loading the web page I want to display it

[ Edited ]

Dear All,


I am working on an project on which I  added a browser filed in my screen   when  I call this it show a blank page untill the page is loded.

Now I want when my complete page is loded the I will show it before that I show progress indicator.



Please give your valuable suggesstion how I achieve this task as soon as possible .

Thanks & Regard
Zakir Hussain
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: After loading the web page I want to display it

Putting "BrowserField progress" in the Search box, I immediately found this KB article:



However I have had difficulty getting values for the listener method


when I tried to use it to do something similar before this KB article was published. 


So a simpler approach is just to display an animating Field - or an animated Popup screen - which basically says 'please wait'.  Again you can use the BrowserListener, and display the Field/Screen in documentUnloaded() and remove it in documentLoaded().  This will cover transitions during the life of your BrowserField.  If you just wanted to display it at the start, then you can just display it initially, and remove it in documentLoaded(). 


You might find this useful too:



But remember to search next time before you ask the question - you might find the answer immediately and not have to wait for someone to find it for you!