Still talking to myself...

Apparently there's no listener available to find which attribute has been 
clicked (source : 
http://groups.google.com/group/firebug-working-group/web/firebug-events-listeners)
I've also tried to implement a contextMenu the way Codeburner does, it seems to 
work but i can not find the original node either so it does not help.


>From what i read my last resort is to monkey patch getContextMenuItems, but... 
>how do i monkey patch Firebug? I tried to extend HtmlPanel in my class but it 
>failed
Example welcome (and i leave you alone after that)


Greg

Le 19 mars 2010 à 15:14, Duchesnes Grégory - Ilomedia a écrit :

> Well,
> 
> i was not that stupid.
> 
> Indeed i managed to register to an event listener in Editor but the problem 
> is that it only allow me to get the value of the edited element and not its 
> type (i'd like to know if i'm editing the name of an attribute or its value).
> Is there another listener for that or maybe a property in currentPanel and 
> currentEditor?
> 
> 
> thanks,
> Gregory
> 
> 
> Le 19 mars 2010 à 14:59, Duchesnes Grégory - Ilomedia a écrit :
> 
>> I'm feeling stupid sometimes, i guess it was to obvious : 
>> 
>> Firebug.Editor.addListener(this);
>> 
>> Le 19 mars 2010 à 14:44, Duchesnes Grégory - Ilomedia a écrit :
>> 
>>> Hi all,
>>> 
>>> follow up of my previous post, i'm now trying to use event listeners.
>>> 
>>> Here is what i need : 
>>> when someone clicks on an attribute in the HTML panel i need to send a 
>>> message to my own panel saying "hey an attribute has been clicked in HTML 
>>> panel".
>>> 
>>> i've spotted somme event listeners in editor.js, html.js and a11y.js but 
>>> i'm not sure how to use them (i'm no javascript guru in fact). Is there an 
>>> example on how to instantiate a listener in my panel?
>>> Should i instantiate it in my prototype or in my model?
>>> 
>>> i've tried this for example, but it does not seem to work :(
>>> 
>>>     var htmlPanelNode = this.context.getPanel('html').panelNode;
>>>     htmlPanelNode.addEventListener("click", this.onHtmlClick, false);
>>> 
>>> 
>>> 
>>> thanks for the help,
>>> 
>>> Gregory
>>> 
>>> -- 
>>> 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.
>> 
>> 
>> 
>> -- 
>> 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.
> 
> 
> 
> -- 
> 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.

-- 
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