On Dec 4, 12:28 am, ceyal <[email protected]> wrote: > i meant CSS Selector (the path to the html element that the user > clicked on) > is there a way to catch the click and the CSS Selector?
I thought a CSS Selector was a rule for finding elements, a query that can match many elements. I did not know that elements have a CSS selector. In any case, Firebug's inspector gives the element itself. No path or selector is involved. jjb > > i've considered creating a firebug extension but i want to create my > own menu (without firebug's menu).... > > On Dec 4, 3:48 am, John J Barton <[email protected]> wrote: > > > On Dec 3, 2:44 pm, ceyal <[email protected]> wrote: > > > > thanks a lot! > > > after executing the inspect function, > > > can i catch the user click on the page to get the CSS Selection? > > > Well you can listen for the click, but I don't know what a CSS > > Selection is so I can't help you there. > > > (Have you considered creating a Firebug extension?) > > > jjb > > > > On Dec 4, 12:27 am, John J Barton <[email protected]> wrote: > > > > > On Dec 3, 12:29 pm, ceyal <[email protected]> wrote: > > > > > > thanks John, > > > > > I know about the code, > > > > > the question is different - > > > > > > I want to call firebug "inspect" function from ANOTHER FireFox addon. > > > > > If you overlay browser.xul, then you can all any Firebug function that > > > > Firebug can call the same way we call it. So you could call > > > > Firebug.Inspector.toggleInspecting(FirebugContext); > > > > But the inspect feature is not a function that returns an element. > > > > > jjb > > > > > > I believe I need Firebug API for this... or am i wrong? > > > > > thanks, > > > > > Eyal > > > > > > On Dec 3, 9:51 pm, John J Barton <[email protected]> wrote: > > > > > > > On Dec 3, 9:54 am, ceyal <[email protected]> wrote: > > > > > > > > Hi all, > > > > > > > I want to develop a new FF add-on that will use some features of > > > > > > > Firebug. > > > > > > > the basic idea is to activate the inspect element function from > > > > > > > within my addon and receive the html element (which the user has > > > > > > > clicked on) as a CSS Selection result. > > > > > > > > Does anyone have any idea if this is possible and how? > > > > > > > Sure its possible. The source is > > > > > > here:http://code.google.com/p/fbug/source/checkout > > > > > > jjb > > > > > > > > Thanks, > > > > > > > Eyal > > -- 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.
