[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!
Advertisement

adding rows colors!

Moderators: Calcifer, slothy

adding rows colors!

Postby stefkiro » Fri Jun 02, 2006 9:28 pm

stefkiro
 
Posts: 2
Joined: Fri Jun 02, 2006 9:22 pm

Postby Batalf » Fri Jun 02, 2006 11:30 pm

Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

colors rows

Postby stefkiro » Sat Jun 03, 2006 12:24 am

stefkiro
 
Posts: 2
Joined: Fri Jun 02, 2006 9:22 pm

Postby zaid » Wed Feb 21, 2007 10:06 pm

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?
zaid
 
Posts: 5
Joined: Fri Jan 05, 2007 12:33 pm

Postby zaid » Wed Feb 21, 2007 10:43 pm

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';

}
zaid
 
Posts: 5
Joined: Fri Jan 05, 2007 12:33 pm

Postby dobberph » Thu Feb 04, 2010 12:52 pm

dobberph
 
Posts: 2
Joined: Mon Feb 23, 2009 12:46 pm


Return to Table script questions

Who is online

Users browsing this forum: No registered users and 2 guests