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: 1
Registered: ‎02-07-2011
My Device: BB 8900

pop up dialog box in browserfield

Hi Good folks,


I managed to run the browserfield2 demos -- and it had a neat trick where you can invoke a Java method from within a Javascript function --


I wanted to extend that to push a Dialog box or a PopUpScreen with an OK dialog when the user clicks on a link.


public void extendJS(BrowserField bf){


  //my overriden javascript function is mapped to the method below




private void func(String msg){

 //the tricky part

//how to create a POP up screen with msg and push it to the browser screen



I used all kinds of screens and none of them are popping up. I am afraid, a BrowserFieldScreen can not show other types of screens... if you have an idea on how to display such, I would really appreciate it.


thank you.



Please use plain text.