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.

On Mar 26, 5:04 pm, Jorge Godoy <[EMAIL PROTECTED]> wrote:
> "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
-~----------~----~----~----~------~----~------~--~---

Reply via email to