Hi all, I'm trying to build a simple extension and i must admit that i'm kind of lost.
The purpose of my extension is to provide a new panel in which a list of the xpath adresses selected in the HTML panel will be kept. To make it clearer, i need a new right-click item on an node in the HTML panel that would add the xpath adress to an array and when i go my new panel i can see the list of copied addresses. I already built a basic extension that adds my new panel. I also managed to add a new right-click item on a node thanks to the supportsObject method (though i'm not very pleased with the label "inspect in ..."). When i click on my new inspect item, my panel is displayed but i couldn't find the way to get the DOM element selected in the HTML panel (and believe me i tried hard). Here are my questions : - Which method should i use to retrive this element? I tried to access Firebug.HTMLPanel.inspectorHistory, panel.selection, panel.context (and other properties) without any success. - Is using a new panel the right option? Or should i use a sub-panel of the HTML panel? I don't think this can be done though since those sub-panels seemed to be cleared at each selection. - Finally, is there another way to add a right-click item in the HTML panel (without any hack) -- 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.
