--- In [email protected], Bruno Marquié <[EMAIL PROTECTED]> wrote:

> the first alert popup displays 2/0/0 and the second 1/40/120.
> why? I

> And can you explain me also this order..; why 
> bboxSize('2') is called before bboxSize('1') ?

>     <g id="1" onclick="bboxSize('1')">
>         <use id="2" x="60" y="40" xlink:href="#reff" opacity="0.3" 
> onclick="bboxSize('2')"/>
>     </g>   

If you have event handler attributes (like onclick) on an SVG element
then those function as event listeners in the bubbling phase of the
W3C DOM Level 2 Events specification. That means that the use id="2"
element's onclick handler sees the event first and then the event
bubbles up to the parent node which is the g id="1" element.






-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to