Walter, I tried your method of applying the class to the td's and your
code was throwing an error which is most likely my fault. g
It's saying that object doesn't support that method on the
elm.addClassName('over');
PROTOTYPE:
var rows = $$('#mail tr');
$('mail').on('mouseover', 'tr',
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
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
On Jan 3, 2013, at 1:41 PM, Phil Petree wrote:
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
OK, I could do that but I wouldn't want it over every tr, only those within
the mail table. For instance if you were in an alternate tab viewing an
email, you wouldn't want a mouseover on the to, from, subject or message
rows. Likewise in the compose tab.
On Jan 3, 2013 2:27 PM, Walter Lee Davis
You were bang on about going up the heirarchy... instead of the top of the
dom, I went to the tabs div and then it was working fine.
I was able to just include the rows in mail...
mail system is 99% functional... will have to add in a contact list type
system but will do that later.
Thanks for
I think there's also something weird about CSS applied to table rows,
(I think) cells don't inherit all properties from the row they
'belong' to. Make sure your HTML/CSS works in a stand-alone document
first to check.
Dave
On 1 January 2013 22:53, Phil Petree phil.pet...@gmail.com wrote:
I have
I usually have to add the color attribute to the td rather than the tr. You can
make this change at the CSS level. Rather than using setStyle(), toggle the
classname of the row, and then set your CSS to apply to td children of that
class of row. For example:
var rows = $$('#mytable tr');