[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
www.dhtmlgoodies.com • View topic - adding rows colors!
Page 1 of 1

adding rows colors!

PostPosted: Fri Jun 02, 2006 9:28 pm
by stefkiro

PostPosted: Fri Jun 02, 2006 11:30 pm
by Batalf

colors rows

PostPosted: Sat Jun 03, 2006 12:24 am
by stefkiro

PostPosted: Wed Feb 21, 2007 10:06 pm
by zaid
Hey guys,

I tried the above with the "unobtrusive table sort", and initially thought it worked great.

BUT, if I sort ascending/descending using one column its ok...but soon as I switch the table column I want to sort by, every single row is set the same color.

I added your snippet above so they are literally the last few lines in the function you mentioned.

Any idea where Im going wrong?

PostPosted: Wed Feb 21, 2007 10:43 pm
by zaid
aha!

Just noticed that all thats wrong is a slight typo:

for(var no=0;no<tBody.rows.length;no++){
if(no%2==1)tBody.rows[no].className = 'oddRow'; else tBody.rows[no].className ='evenRow';

}

PostPosted: Thu Feb 04, 2010 12:52 pm
by dobberph