hardc0d3r:
> sir, i tried what you suggested but it gives me the wrong node.. are there
> any solutions for getting an attribute of a use element?
…
>     public void registerListeners() {
>         // Gets an element from the loaded document.
>         EventTarget t = (EventTarget) svgRoot;
> 
>         // Adds a 'onload' listener
>         t.addEventListener("SVGLoad", new OnLoadAction(), false);
> 
>         // Adds a 'onclick' listener
>         t.addEventListener("click", new OnClickAction(), false);
>     }

You will need to register these listeners on the actual <use> element,
not the root, if you want to use currentTarget.

-- 
Cameron McCormack, http://mcc.id.au/
        xmpp:[EMAIL PROTECTED]  ▪  ICQ 26955922  ▪  MSN [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to