[jQuery] Re: tablesorter onafer feature?

2007-12-14 Thread tlphipps

Thanks Christian!  That rocks!  I thought I saw that yesterday, but I
got sidetracked and forgot to go back and look.

On Dec 13, 6:18 pm, "Christian Bach" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> there is a new undocumented features for this type of behaviour take a look
> at:http://tablesorter.com/docs/example-triggers.html
>
> /christian
>
> 2007/12/12, Arturo <[EMAIL PROTECTED]>:
>
>
>
> > I use a code to bgcolor odd table rows in my tables. Something like:
>
> > 
> > $('table').find('tr:odd').css({backgroundColor: '#fffbdd'});
> > 
>
> > And I'd like to keep the zebra-colouring after a table sorting with
> > tablesorter().
> > But I've looked at the docuentation on the plugin and it doesn't seem
> > to provide a way to attach a function to the end of the
> > tablesorting...
>
> > Could this feature be added?  Can this be done by any other means?
>
> > Thanks a lot (for the great plugin and the eventual responses)!!


[jQuery] Re: tablesorter onafer feature?

2007-12-13 Thread Christian Bach
Hi,

there is a new undocumented features for this type of behaviour take a look
at:
http://tablesorter.com/docs/example-triggers.html

/christian

2007/12/12, Arturo <[EMAIL PROTECTED]>:
>
>
> I use a code to bgcolor odd table rows in my tables. Something like:
>
> 
> $('table').find('tr:odd').css({backgroundColor: '#fffbdd'});
> 
>
> And I'd like to keep the zebra-colouring after a table sorting with
> tablesorter().
> But I've looked at the docuentation on the plugin and it doesn't seem
> to provide a way to attach a function to the end of the
> tablesorting...
>
> Could this feature be added?  Can this be done by any other means?
>
> Thanks a lot (for the great plugin and the eventual responses)!!
>


[jQuery] Re: tablesorter onafer feature?

2007-12-13 Thread tlphipps

The tablesorter actually has a built-in "widget" that does the zebra
striping that you describe.  You might want to look at tablesorter.com
for info on that widget.

On Dec 12, 3:32 pm, [EMAIL PROTECTED] wrote:
> Something like this should do the trick:
>
> $(".tablesorter tr").mouseover(function() {$
> (this).addClass("over");}).mouseout(function() {$
> (this).removeClass("over");});
>
> css:
> table.tablesorter tr.over td {
> background:#BCD4EC none repeat scroll 0% !important;
>
> }
>
> On 12 déc, 21:17, Arturo <[EMAIL PROTECTED]> wrote:
>
> > I use a code to bgcolor odd table rows in my tables. Something like:
>
> > 
> > $('table').find('tr:odd').css({backgroundColor: '#fffbdd'});
> > 
>
> > And I'd like to keep the zebra-colouring after a table sorting with
> > tablesorter().
> > But I've looked at the docuentation on the plugin and it doesn't seem
> > to provide a way to attach a function to the end of the
> > tablesorting...
>
> > Could this feature be added?  Can this be done by any other means?
>
> > Thanks a lot (for the great plugin and the eventual responses)!!


[jQuery] Re: tablesorter onafer feature?

2007-12-12 Thread tarendol2002

Something like this should do the trick:

$(".tablesorter tr").mouseover(function() {$
(this).addClass("over");}).mouseout(function() {$
(this).removeClass("over");});

css:
table.tablesorter tr.over td {
background:#BCD4EC none repeat scroll 0% !important;
}


On 12 déc, 21:17, Arturo <[EMAIL PROTECTED]> wrote:
> I use a code to bgcolor odd table rows in my tables. Something like:
>
> 
> $('table').find('tr:odd').css({backgroundColor: '#fffbdd'});
> 
>
> And I'd like to keep the zebra-colouring after a table sorting with
> tablesorter().
> But I've looked at the docuentation on the plugin and it doesn't seem
> to provide a way to attach a function to the end of the
> tablesorting...
>
> Could this feature be added?  Can this be done by any other means?
>
> Thanks a lot (for the great plugin and the eventual responses)!!