Retrieving Browser Scroll Position in JavaScript

Posted by: Rick Strahls WebLog, on 24 Feb 2006 | View original

Man what a pain in the ass this is.  I'm still working out some additional details that were pointed out to me with the wwHoverPanel control. The main problem is that reliably getting the scroll position is very fickle.   Originally I had tried to rely on document.body.scrollTop which works fine for the original demos I created, but it fails when running in a MasterPage. I don't think it's the master page per se that is making this different, but probably the containership inside of the...

Advertisement

Similar Posts

  • No Fluff Just Stuff: Testing with Selenium with Neal Ford - level 200 more
  • Skinning Toolkit DotNetNuke Skin CSS Positioning more
  • Taking a look at Nikhil's Script# more
  • WYSIWYG Web Printing with PDF & Response Filters more
  • Using Device Filters (and making Menu work with Safari) more
  • ASP .NET Datagrid with scrollbars and fixed headers more
  • Simple sliding sample to move HTML elements around more
  • ASP .NET Datagrid with scrollbars and fixed headers more
  • 10 Tips For Moving Towards Web Standards Part 1 more
  • AJAX web app using ATLAS & VS.NET 2005 more

News Categories

.NET | ADO.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Community Server | dasBlog | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD