On Tuesday 27 March 2007 16:22, Brian Morton wrote: > Sorry for the dup Jorge, I replied to your email instead of replying > to the post. > > I guess what I'm getting at is how do I pass this to my controller? I > am gathering that the only argument that gets passed to an event wired > up with MochiKit.Signal is evt. Can I add an argument to be passed > when an onclick is fired? Right now, the event object contains no > information about what element originated this click event, so I don't > know where to pull the info from. It could be an edit or delete link > on any row. I put my record id in the name attribute of the row, and > a unique sequential identifier as the id of each row.
You can use partial to create functions with pre-bound arguments. Pass these as signal-targets. Diez --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
