How to: scrollIntoView(true) after page has reloaded.

F

F. Da Costa

Hi,

Situation:
Large treeTable (based mainly on static html) can be dynamically populated
from the server based on requested node or result from search.
As one can imagine a value can be requested that would be out of current view.
So, there is a working structure showing in the window, request is made for
a certain node, server hands the required html for insertion into the
structure, structure is 'redrawn' (via js) and then I would like the value
to be scrolled into view.

This is the line I use in the onLoad (after the page should have been
rendered).
_viewWindow.getElementById(_element2bViewed).scrollIntoView(true);

The view however is not that of the element but rather that of the top of
the screen.

Is there any way to do this?

Also, if rendereing is done in the <body> only should I not be able to see
it if I debug (Venkman) in the onload function?

TIA,
Fermin DCG
 
F

F. Da Costa

F. Da Costa said:
Hi,

Situation:
Large treeTable (based mainly on static html) can be dynamically
populated from the server based on requested node or result from search.
As one can imagine a value can be requested that would be out of current
view.
So, there is a working structure showing in the window, request is made
for a certain node, server hands the required html for insertion into
the structure, structure is 'redrawn' (via js) and then I would like the
value to be scrolled into view.

This is the line I use in the onLoad (after the page should have been
rendered).
_viewWindow.getElementById(_element2bViewed).scrollIntoView(true);

The view however is not that of the element but rather that of the top
of the screen.

Is there any way to do this?

Also, if rendereing is done in the <body> only should I not be able to
see it if I debug (Venkman) in the onload function?

TIA,
Fermin DCG
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,438
Messages
2,571,699
Members
48,796
Latest member
Greg L.
Top