Do you mean to select a node in the HTML panel? Then the function onClick in the htmlPanel.js file is called (branches/firebug1.8).
But the right click on the element has a Copy XPath option. That is implemented in reps.js under the getContextMenuItems method for the Element representation. When the HTML panel is build each Web object (HTML Element) is mapped to a Rep, representation object. The rep renders the view into the panel. Then the right click handler looks for the repObject on the view, and called getContextMenuItems on that rep. Thus we see the Copy XPath option. jjb On Jun 15, 1:41 pm, Joaquim Silva <[email protected]> wrote: > Hi all, > > I'm new to firefox and firebug extension development. I'm extending > the Link Inspector Panel example and i wanted to know how firebug > works when a user selects a node on a mouse click. My goal is to write > a simple function that saves the Xpath of the node selected by the > user. > > Thanks in advance. > > Joaquim Silva -- 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.
