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

Web and WebWorks Development

Posts: 27
Registered: ‎05-12-2011
My Device: Playbook 2.0, Dev Alpha A
My Carrier: Waiting for BB 10

How to scrollTo() in a dynamically changed DOM

After my Javascript successfully updates the bottom of a long innerHTML page, only the top of the page is displayed and I can not display the modified area using Javascript. Only manual scrolling works, which is unacceptable.  ScrollTo, scrollIntoView, focus, anchors don't help.


I suspect the DOM is 'confused' by the use of .innerHTML.


Should I bite the bullet and use proper DOM commands instead of innerHTML or is there a workaround?