Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to scroll specific element to top of page?

Status
Not open for further replies.

jsteph

Technical User
Oct 24, 2002
2,562
US
Hi all,
I have a main page with "Search" button and textbox at the top--the user enters a persons name and some javascript finds the table-cell on this page containing that name.

I want that cell to move to the top of the page, but there is some added complexity. This table cell may be in any of several iframes on the main page, each of which has a table with several dozen rows, these rows contain names and other info.

I've got the searching part down--what I need now is to get the table-cell in the specific frame to now scroll to front and center at the top of the page. So the main page has a scrollbar which scrolls through the frames. The frames may or may not have a scrollbar depending on how many rows in each iframe's table.

So far in my function I'm at the point where I have found the name and returned the <iframe> ,<tr> and <td> id's in which the name was found. With that info I want to do whatever scrolling, moving, whatever, to get that to the top of the page.

Thanks for any help,
--Jim
 
Since this can't be done with HTML alone it falls outside the scope of this forum. Surely the forum216 will be more useful.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top