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.