Thanks Walter!  I tried quite a few things... borrowed 1/2 dozen snippets
from various places and nothing was working till yours.

I still have one question, how do you undo (stopObserving) these events?
When I load new tables into the other tabs via ajax they are not being
monitored which means I need to do a stopEvent and restart with the new
rows.

BTW, I had to add a mouseout because when I take the mouse off the table it
left a row still highlighted.

It now looks like this:
  var rows = $$('#mail tr');
  $('mail').on('mouseover', 'tr', function(evt, elm){
     rows.invoke('removeClassName', 'over');
     elm.addClassName('over');
  });
  $('mail').on('mouseout', 'tr', function(evt, elm){
     rows.invoke('removeClassName', 'over');
  });


On Thu, Jan 3, 2013 at 11:25 AM, Walter Lee Davis <wa...@wdstudio.com>wrote:

>
> On Jan 3, 2013, at 8:59 AM, Phil Petree wrote:
>
> > $('mail').on('mouseover', 'tr', function(elm, evt){
>
> My error, the variables are swapped. Make that line this:
>
> $('mail').on('mouseover', 'tr', function(evt, elm){
>
> Walter
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prototype & script.aculo.us" group.
> To post to this group, send email to
> prototype-scriptaculous@googlegroups.com.
> To unsubscribe from this group, send email to
> prototype-scriptaculous+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/prototype-scriptaculous?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to