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: 15
Registered: ‎06-11-2010
My Device: NA
My Carrier: NA

help with html rendering:how to programatically scroll textarea

I have talen help from BrowserField2Demo.java supplied with blackberry plugin for eclipse.

I have loaded my html with a textare inside it.I append text to this textarea continusously.When the text reaches the limit of the textare and i enter new text ,the textarea does not scroll down.The text keeps on getting appended without it being seen on screen.If i have to see the newly appende text i have to manually scroll the text area.

I want that the textarea should automatically scroll down as new text comes.

I have tried using this in the javascript function but it doesnt help.


textareaname.scrollTop = textareaname.scrollHeight