Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: How to add autoscroll feature to the tree
padmapriya
Newbie

Posts: 1
Registered: 1/18/2005
Member Is Offline
posted on 1/18/2005 at 06:43 AM Reply With Quote
How to add autoscroll feature to the tree


We have 1000's of items in the tree.Whenever we make a search in the tree, the particular item gets highlighted.
But most of the times it's not visible to the user.The user has to scroll to see the highlighted item.Is it possible to scroll the browser to a positive relative to the highlighted item.
View User's Profile View All Posts By User U2U Member
tedqn
Junior Member

Posts: 5
Registered: 9/1/2005
Member Is Offline
posted on 9/2/2005 at 06:27 PM Reply With Quote
If you know the index of the first item found


you can do an autoscroll to it..

document.body.scrollTop = 15 * itemIndex

assuming each menu item is approx 15 pixels high... of course need careful calculations.
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 9/6/2005 at 09:02 AM Reply With Quote

Try to use focus() method of the object containing the item highlighted.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos:
Frames targeting
Win help style
Free Download Free Download
Free Download Menu Builders
Online Builder
Product Documentation Documentation:
Documenation Page
Support Forum Technical Support
Support Forum
   

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004