Well what can i say? I'm late as usual...
Down to business, i finally got to spend some quality time together with
my trusting companion the tableSorter. I squashed the tfoot bug so it only
indexes td elements inside the tbody element.
And added a new parameter called "bind".
The bind parameter is kind of cool (well at least i think so). What it does
is to allow you to set the alias on which event the tablesorter will
trigger a resort.
To clarify here is some sample code:
$('#myTable').tableSorter(
bind: 'resort'
);
Ok, so the users has updated a table row or perhaps you have inserted some
element to the table, well this calls for a resort on the last sorted
column, right? Well all you have to do is call your "binded" event to make
it resort.
$('#myTable').resort();
Or if you prefer
$('#myTable').trigger("resort");
A demo is located here:
http://cbach.jquery.com/demo.html
And the latest source code is now located in the jQuery svn
under "plugins/tablesorter"
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/