22 Jun
2012
22 Jun
'12
8:36 p.m.
On Fri, Jun 22, 2012 at 12:27:59PM -0400, Jerry Vinokurov wrote:
Right, I understand that you can bind events to the canvas. I don't have any trouble doing that. What I want is to bind them to the canvas elements; I want to have different pie slices and track which ones people click on. I tried using tag-bind but it throws an error:
Ok, i think you just used the wrong function (i make this kind of error often! :)), the correct one is "tagbind" not "tag-bind". Please see the attached source for a simple example. Anyway i suggest you use the solution provided by Peter, a clever way to accomplish the task, in my opinion. Bye! C.