473,386 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 2222
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: bjarthur | last post by:
anyone else had troubles getting scrollIntoView to work in Safari v1.2.4? the sample code below works fine in all other browsers. ben <HTML> <HEAD> </HEAD>
3
by: cmay | last post by:
I am trying to use scrollIntoView to programatically scroll an area on one of my pages. It wors just like you would expect it to when the page itself doesn't have any scrolling (the page is...
0
by: Larry Brown | last post by:
Hi, I'm working on an ASP.NET 2 application, with framework 2.0 beta. I have a classic form, with a listbox. This field is in autopostback=true. When I change the selected value, the page is...
1
by: Jim Satterfield | last post by:
I've looked and looked and can't find any solution or even mention of this problem so I'll see if I can find anyone through this group who might have an idea. I've inherited the job of webmaster...
0
by: Keith | last post by:
I have a web form that contains a repeater control that is designed to ask like a check book register. Clicking on a certain transaction takes the user to a different .aspx page where it can be...
0
by: Keith | last post by:
I have a web form that contains a repeater control that is designed to ask like a check book register. Clicking on a certain transaction takes the user to a different .aspx page where it can be...
1
by: usgog | last post by:
I have a div close to the bottom of the HTML page, and it is not displayed by default. I also have a link to toggle this div at the top of the page. So after I click the link, the div will show up....
3
by: sylver | last post by:
Hi to all, I found out the you can use the scrollIntoView() method, to scroll an element (ie: a <divwith lots of content that it overflows) to its bottom / last line. But this only happens in...
1
by: knkk | last post by:
I have an iframe within a page, and i want a div in that frame to scroll to the top of just that frame when a link is clicked upon (so only the page in that frame should scroll up/down, and not the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.