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
New Contributor
Posts: 3
Registered: ‎01-19-2013
My Device: BlackBerry Curve 9300
My Carrier: Virgin

Find and highlight text in BrowserField

I'm writing an application that includes a BrowserField that I am using to show a HTML file.  What I would like to do is show the user a dialog that they can type some text into and then find the text, highlight it and scroll it into view (like the native browser does).  Does anyone know how I can achieve this programmatically?  How does the native browser implement this functionality?  Do I need to execute some Javascript using browserfield.executescript or can this be implemented using methods on the browserfield?