I think you are using wrong document object. Make sure it's 'browser.xul' (the Firefox UI document) not the one that represents the page itself. Firebug UI is part of the chrome (Firefox UI) and not part of the page.
You are using Firebug not Firebug Lite, right? Honza On Jul 27, 12:45 pm, andineupert <[email protected]> wrote: > Hm. May it be a problem of different versions? I'm using 1.7.3. > > FBTrace says following: > > fbs.onError (-7) with this.showStackTrace=false and > this.breakOnErrors=false kind=Uncaught-Exception > msg=document.getElementById("fbMainFrame") is null@chrome:// > scraperextension/content/scraperExtension.js:387.0 > > Code looks like this: > > initialize: function() > { > Firebug.Panel.initialize.apply(this, arguments); > Firebug.Inspector.addListener(this); > > jQuery(this.panelNode, fbDocument).scroll( > function() { > if(this.scrollTop < 30) > > fbDocument.getElementById("valueDiv").style.top = 5 + "px"; > else > > fbDocument.getElementById("valueDiv").style.top = (this.scrollTop > - 35) + "px"; > > FBTrace.sysout("height: " + > document.getElementById("fbMainFrame").height); //LINE 387 > > }); > }, > > On 27 Jul., 08:47, Jan Honza Odvarko <[email protected]> wrote: > > > > > > > > > I created a test Firebug panel and run the expression in initialize > > method, works for me. > > Honza > > > var panelName = "helloworld"; > > > function MyPanel() {} > > MyPanel.prototype = FBL.extend(Firebug.Panel, > > { > > name: panelName, > > title: "Hello World!", > > > initialize: function() > > { > > Firebug.Panel.initialize.apply(this, arguments); > > > FBTrace.sysout("height: " + > > document.getElementById("fbMainFrame").height); > > }, > > > }); > > > Firebug.registerPanel(MyPanel); -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/firebug?hl=en.
