469,353 Members | 2,292 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,353 developers. It's quick & easy.

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

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).scrol lIntoView(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
Jul 20 '05 #1
1 2120
F. Da Costa wrote:
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).scrol lIntoView(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

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by bjarthur | last post: by
reply views Thread by Larry Brown | last post: by
1 post views Thread by Jim Satterfield | last post: by
1 post views Thread by usgog | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.