Problems with reliably retrieving DOM element bounds in FireFox

Posted by: Rick Strahls WebLog, on 30 May 2006 | View original

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

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