Carl,

>I'm using the TableSorter plugin on a table that will have new rows
>appended to it by AJAX calls.  I want to resort the table using the
>current sort settings after new rows are added.
>
>I am using the TableSorter .trigger("update") and .trigger("sorton",
>[sorting]) methods to resort the table.  I need to access the
>tablesorter config object to extract the SortList.  How can I do this?

A couple of weeks ago I created a mod of the TableSorter code:

http://blog.pengoworks.com/index.cfm/2008/3/28/Finished-jQuery-Tablesorter-m
od-for-Collapsible-Table-Rows

My mod using the jQuery .data() method to set the config options for the
current table, so you should be able to do:

var config = $.data(tableElement, "tablesorter");

To get the config options.

While this is a mod, Christian has said my changes will be implemented in
the next release of the tablesorter code (although I can't say whether or
not he'll revise how I implemented things.)

-Dan

Reply via email to