"Brian Morton" <[EMAIL PROTECTED]> writes: > I am trying to build a dynamic table with MochiKit.DOM. I have an > edit and delete link on each row (represents a record in a db). I > have both anchor elements wired up to onclick handlers with > MochiKit.signal. The trouble is, I don't know which row is having > it's edit or delete link clicked since both src() and target() are > empty for my onclick event. I imagine I am just going about this the > wrong way. Can anyone offer me some advice on how to accomplish this > elegantly with MochiKit? I am using 1.3 release, but could easily > upgrade to SVN checkout if necessary. My code is below. Thanks.
Your row should have your record's id somewhere. Then you'r edit/delete JS functions would pass this to your controller so that you can deal with the right record. -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
