[jQuery] Re: TableSorter vs Zebra Stripes

2008-12-10 Thread donb
Just a correction, 'background' IS valid CSS, it allows you to specify multiple 'background-xyz' properties in a single declaration. On Dec 9, 4:21 pm, MorningZ <[EMAIL PROTECTED]> wrote: > ps... > > looking at your CSS again, it is indeed not valid, but not because of > what i first thought,

[jQuery] Re: TableSorter vs Zebra Stripes

2008-12-09 Thread MorningZ
ps... looking at your CSS again, it is indeed not valid, but not because of what i first thought, heh "background" isn't a valid property, it's "background-color" On Dec 9, 4:14 pm, "David Blomstrom" <[EMAIL PROTECTED]> wrote: > Awesome - it works! > > Thanks so much for all the tips.

[jQuery] Re: TableSorter vs Zebra Stripes

2008-12-09 Thread David Blomstrom
Awesome - it works! Thanks so much for all the tips.

[jQuery] Re: TableSorter vs Zebra Stripes

2008-12-09 Thread MorningZ
"...there are still no colored rows" You *really* should download firebug (http://www.getfirebug.com) so you can see what your code (and/or the code you use) is actually doing the "zebra" widget adds the class to the tag, not the tag, hence your css of tr.odd td { background: #ff0;

[jQuery] Re: TableSorter vs Zebra Stripes

2008-12-09 Thread Olivier Percebois-Garve
My bad. I forgot the {} so there is a js error now . corrected code : $(document).ready(function() { $("#myTable").tablesorter({ widgets: ['zebra']} ); } ); On Tue, Dec 9, 2008 at 9:54 PM, David Blomstrom <[EMAIL PROTECTED]>wrote: > Sorry, when I pasted that script in, there were s

[jQuery] Re: TableSorter vs Zebra Stripes

2008-12-09 Thread David Blomstrom
Sorry, when I pasted that script in, there were still no row colors, plus the sorting function sstopped working. On Tue, Dec 9, 2008 at 12:46 PM, Olivier Percebois-Garve < [EMAIL PROTECTED]> wrote: > ok. do that instead: > > > type="text/javascript"> > > $(document).ready(function() > { >

[jQuery] Re: TableSorter vs Zebra Stripes

2008-12-09 Thread David Blomstrom
Sorry, I missed the messag that references class "odd." Yet when I insert the following style... tr.odd td { background: #ff0; } ...there are still no colored rows.

[jQuery] Re: TableSorter vs Zebra Stripes

2008-12-09 Thread Olivier Percebois-Garve
ok. do that instead: $(document).ready(function() { $("#myTable").tablesorter( widgets: ['zebra'] ); } ); On Tue, Dec 9, 2008 at 9:43 PM, David Blomstrom <[EMAIL PROTECTED]>wrote: > Thanks. > > I changed my code accordingly... > > > type="text/javascript"> > > > $(document).ready

[jQuery] Re: TableSorter vs Zebra Stripes

2008-12-09 Thread David Blomstrom
Thanks. I changed my code accordingly... $(document).ready(function() { $("#myTable").tablesorter(); } ); $("table").tablesorter({ widgets: ['zebra'] }); * * * * * But it works just as before; there are no table colors except when I mouseover a row. I'm assuming I only need

[jQuery] Re: TableSorter vs Zebra Stripes

2008-12-09 Thread Olivier Percebois-Garve
sry. wrong paste: $("table").tablesorter({ widgets: ['zebra'] }); On Tue, Dec 9, 2008 at 9:18 PM, Olivier Percebois-Garve <[EMAIL PROTECTED] > wrote: > The zebra code you have seems to be based on another library (Prototype ?), > so it wont run using without it. > Anyway, there's a zebra p

[jQuery] Re: TableSorter vs Zebra Stripes

2008-12-09 Thread Olivier Percebois-Garve
The zebra code you have seems to be based on another library (Prototype ?), so it wont run using without it. Anyway, there's a zebra plugin included by default in the tablesorter. just do: $("table").tablesorter({ widgets: ['zebra','repeatHeaders'] }); Olivier On Tue, Dec 9, 2008 at 9:01

[jQuery] Re: TableSorter vs Zebra Stripes

2008-12-09 Thread MorningZ
Yuck If you want to use Tablesorter, why not use the way it's supposed to be used? one simple setting of the "widgets" in the ".tablesorter" call would wire up all alternate rows with the class "odd" (and it's done!) On Dec 9, 3:01 pm, "David Blomstrom" <[EMAIL PROTECTED]> wrote: > I want t