sandy1028 Posted August 6, 2007 Share Posted August 6, 2007 Hi, I have a tree sorting code. When I click on the header the column of the tree sorts. When I click on the particular child node header the scroll bar and the pointer moves to the top of the parent node. How can I point the pointer at the particular position of the child node when click on the header to sort Is there any way to fix the scroll bar at the particular position Quote Link to comment Share on other sites More sharing options...
sandy1028 Posted August 7, 2007 Author Share Posted August 7, 2007 Hi, How to set the scroll bar till the link. That is when header of child node is clicked the scrollbar scrolls to the start of page. Is there any way to set the scrollbar to the exact position which is needed Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted August 7, 2007 Share Posted August 7, 2007 are you using the # in your html? if you give each node an id and then use ...#(id) in the link then its houdl scroll to that point automatically. Quote Link to comment Share on other sites More sharing options...
sandy1028 Posted August 7, 2007 Author Share Posted August 7, 2007 echo "<ul><li class=\"connection\"><a href=\"tree.php?name=asc\">Name</a>"; I am calling the same php page with the query string Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted August 7, 2007 Share Posted August 7, 2007 <?php echo "<ul><li class=\"connection\" id="<?php echo $name; ?>"><a href=\"tree.php?name=asc#<?php echo $name; ?>\">Name</a>"; ?> Quote Link to comment Share on other sites More sharing options...
sandy1028 Posted August 7, 2007 Author Share Posted August 7, 2007 Hi, Still the scroll moves to the top when clicked on the child node header Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.