Problems with reliably retrieving DOM element bounds in FireFox

Posted by: Rick Strahls WebLog, on 30 May 2006 | View original | NEW Bookmarked: 0 time(s)

I've been banging my head against the wall again with FireFart (as Peter Bromberg lovingly calls FireFox) DOM programming.   What I'm doing is simple enough – I dynamically load up a <div> tag with HTML via innerHTML property and then need to draw a related control with the same dimensions.     var Panel = $(Context.ControlId); Panel.innerHTML = Result;   // incorrect in FireFox, correct in IE var Height = Panel.offsetHeight;    ShowShadow(Panel.id);   where...

Advertisement
Category: Data | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1722 | Hits: 160

Similar Posts

  • JavaScript >> Get Any CSS Property Value of an Object using $style more
  • Data bound fields for Ajax forms more
  • From LINQ to XPath and Back Again more
  • ASP.NET AJAX 1.0 Beta 2: Basic DOM more
  • Adding users to a TFS project when youre not on the domain more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | 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