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

Web and WebWorks Development

Reply
Developer
eketahuna
Posts: 27
Registered: ‎05-12-2011
My Device: Playbook 2.0, Dev Alpha A

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?