The panel has a property 'context'. context.window is the top level
window; context.windows are the iframes. So context.window.* are the
global variables. You should consider the window to be read-only: you
can get data but not write data nor execute functions.

I'm not sure what you mean by "need access", but if you mean "read
values" then you are set.   Don't load Prototype into your extension,
it will mess up Firefox.

jjb

On Dec 21, 6:07 pm, remi <[email protected]> wrote:
> adding `parentPanel: "html"` to my Firebug.Panel added the panel under
> the right section and implementing `updateSelection: function(element)
> ` got me access to the currently selected DOM element.
>
> now my main problem is getting access to the page's javascript
> environment.  for instance ... maybe the page has a global variable or
> I need access to jQuery or Prototype ... possible?
>
> On Dec 21, 2:35 pm, remi <[email protected]> wrote:
>
> > Firebug has a few sub-panels below the HTML panel: Style, Layout, &
> > DOM.
>
> > I'm trying to add my own HTML sub-panel.  Simple fictional example:
>
> > Let's say I'd like a panel called 'Tag' and, when a DOM element is
> > selected, it'll merely show the name of the element tag, eg. it'll say
> > "a" if an anchor is selected, "div" if a div is selected.
>
> > Can someone give me some overall direction?  So far, I've learned
> > howto add my own main panels etc via a tutorial [1] but I haven't
> > gotten much further, yet.
>
> > Thanks!  I promise I'll open-source my extension incase it helps
> > anyone, after I can get this panel working (and get access to the
> > currently selected/inspected element, with it)
>
> > Thanks again.
>
> > [1]:http://www.firephp.org/Reference/Developers/ExtendingFirebug.htm
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to