Thanks, this is approximately what I ended up doing, except using 
Event.findElement rather than up.

Walter

On Aug 25, 2007, at 12:37 AM, kangax wrote:

>
>
> $$('a.citation').invoke('observe', 'click', callback);
>
> function callback(e){
>   e.stop(); // here's your event
>   alert(this); // here's your element
>   alert(this.up()); // that's how you can access upper element
>   alert(e.target); // this should reference element that fired event
> }
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to