Please help with event bubling

17 views
Skip to first unread message

Sloven

unread,
Feb 10, 2012, 1:50:04 PM2/10/12
to Raphaël
Please help me to cause onclick on button in this example http://jsfiddle.net/Yqjut/
. I've searched a lot but couldn't find any correct solution. The
papper object covers button and captures onclick and I don't know how
to omit this.

charles thomas

unread,
Feb 11, 2012, 11:10:25 PM2/11/12
to raph...@googlegroups.com
Go and look at this example:
Follow the code from...
controls[i]=paper.circle((i+1) * 30, 50, 10);

controls[i] then has not only onclick but all the other event handlers added...


From: Sloven <rubanv...@gmail.com>
To: Raphaël <raph...@googlegroups.com>
Sent: Friday, February 10, 2012 1:50:04 PM
Subject: Please help with event bubling
--
You received this message because you are subscribed to the Google Groups "Raphaël" group.
To post to this group, send an email to raph...@googlegroups.com.
To unsubscribe from this group, send email to raphaeljs+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/raphaeljs?hl=en-GB.



Sloven

unread,
Feb 13, 2012, 2:40:34 AM2/13/12
to Raphaël
Nice example but I don't know for sure what control could be behind my
paper. It could be any control or even flash movie player. I need to
send event further rather than re-handle it. Maybe paper prevents stop
event bubbling somehow?

On 12 фев, 06:10, charles thomas <charles...@yahoo.com> wrote:
> Go and look at this example:http://www.irunmywebsite.com/raphael/additionalhelp.php?v=2&q=usingel...

Clifford Heath

unread,
Feb 13, 2012, 3:52:39 AM2/13/12
to raph...@googlegroups.com
On 13/02/2012, at 6:40 PM, Sloven wrote:
> Nice example but I don't know for sure what control could be behind my
> paper. It could be any control or even flash movie player.

You can't catch mouse events (for example) on the paper under VML in IE.
Can't recall if that affects bubbling too, but probably.
You should make your own control and put the paper inside that.

Clifford Heath.

Sloven

unread,
Feb 16, 2012, 1:41:34 PM2/16/12
to Raphaël
Thanks a lot. This aproach helps me.
Reply all
Reply to author
Forward
0 new messages