Also, you can use event.currentTarget.instanceIndex inside your click handler to get the index of the repeated instance that was clicked.
- Gordon -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave7273 Sent: Monday, March 27, 2006 1:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Referencing checkboxes click events created with Repeater Doug, Thanks for the quick response, I did find something that appears to work ok (event.target.getRepeaterItem()) in which I can retrieve the information for the specific. Just have to make sure that I pass a data element as well as a label element for my checkboxes so I can get either one. Thanks again! --- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> wrote: > > Hi Dave, > > Just set the same handler for all click events to something like > click="myHandler(event)" and you will be able to access the checkbox > component as event.target. > > Doug > > --- In flexcoders@yahoogroups.com, "dave7273" <dave7273@> wrote: > > > > I am trying to capture a click event from a checkbox that is created > > using a Repeater. I want to be able to pass info regarding the > > checkbox to a function (either via index of checkbox array that is > > created or the label of the corresponding checkbox) Any idea of the > > best way of doing this? Since it appears that you cannot > dynamically > > assigned id's via a data binding, it doesn't seem clear cut on how > you > > can determine which checkbox has actually been clicked. > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> 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/