bigfootplc Posted September 11, 2006 Share Posted September 11, 2006 How Do I get scroll posistion for a specific frame on my site.I have a menu like tree structure that is redrawn every time I go down a level and scrolls back to the TOP I tried with followingvar Y= document.documentElement.scrollTop var Y = document.body.scrollTop var Y = self.pageYOffset but they always 0Hope somebody can help mee Link to comment Share on other sites More sharing options...
aspnetguy Posted September 11, 2006 Share Posted September 11, 2006 can you post your full code for that fuinction...is it executing when the page loads? Cuz if it is at the time of page load the scrollbars position is 0 Link to comment Share on other sites More sharing options...
bigfootplc Posted September 12, 2006 Author Share Posted September 12, 2006 can you post your full code for that fuinction...is it executing when the page loads? Cuz if it is at the time of page load the scrollbars position is 0Urfortunatly that is not posible but the script is loaded when the user preses a link, is there any way that I can check which frame that are "active"? Link to comment Share on other sites More sharing options...
bigfootplc Posted September 12, 2006 Author Share Posted September 12, 2006 Urfortunatly that is not posible but the script is loaded when the user preses a link, is there any way that I can check which frame that are "active"?I Just remembered that I was using this script http://javascript.internet.com/foldertree/so you can get all source hereThis tree has the same problem as I am having Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now