On Mar 19, 6:44 am, Duchesnes Grégory - Ilomedia
<[email protected]> wrote:
> 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);

Firebug has its own internal event system based on 'representations'.
So we would not normally say "an attribute has been clicked". Firebug
will handle the click. What is your goal once the attribute is
clicked?

jjb


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

Reply via email to