- From: Alex Danilo <alex@abbra.com>
- Date: Fri, 06 Nov 2009 14:34:30 +1100
- To: <www-svg@w3.org>
Hi Ryan, --Original Message--: >>You should be able to attach an event handler on both rectangles and > >>both will receive the event. > > > >>That is standard DOM event bubbling behaviour. > > > >>If you're not getting events on both rectangles, then it's > >>likely the user agent you're using is buggy. > > > >>Cheers, > >>Alex > > >Thanks for the tip, Alex. This would certainly work in some cases but, unless IĒm missing something, I believe itĒs only when one rectangle is a DOM child/descendant of the other, right? My rectangles are DOM siblings, and sometimes not even siblings but nieces and nephews. As I understand it, the bubbling event only moves along the DOM via parent/child relationships on itĒs way to itĒs target. My other rectangle isnĒt in the path of event travel so it never would never receive the event. Yes, good point. Capture/bubbling does require the ancestry relationships to work. That's certainly an interesting use-case you have. Maybe other people will have some useful suggestions. Cheers, Alex >Ryan > > > >
Received on Friday, 6 November 2009 03:35:08 UTC