Eduardo, your post got me thinking that maybe I was doing something a
little unusual in my code. So just for kicks, I tried connecting the
onclick event to the edit row function for a span element instead of
an anchor. What do you know, it works now. So my immediate problem
is solved, but I have to ask, is this a bug in MochiKit, or just a
limitation of anchor elements? I know usually one would use href
instead of an anchor onclick, but from what I know of DOM, it should
be valid. I am no DOM expert however, and I'm hoping someone with
more knowledge can determine if this is expected behavior. Thanks
everyone who helped.
On Mar 28, 10:20 am, "Eduardo Omine" <[EMAIL PROTECTED]> wrote:
> This is what I've been doing:
>
> function edit_row(e){
> var el = e.src();
> // do something with el...
>
> }
>
> IIRC target() and src() are methods of the event object...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---