But only one thing, in header click you need return false if you don't want scroll up to the start of the page (normally click in a link with href="" scroll up the browser, this is fixed using some like <a href="" false;">).
I fixed table sorted returning false at the end of onClick event:
jQuery(".sorter",oCell).click(function(e) {
[....]
return false;
}
2006/10/26, Christian Bach <
[EMAIL PROTECTED]>:
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/
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
