I\'m trying to see how I can fix a problem that I\'m having with jQuery Tablesoter widget called \'filter\', it stops working after the table is updated without any error messag
There is a lot of code to wade through, but you might want to try updating the table contents like this:
var $table = $("table.tablesorter");
$table.find('tbody').html(data);
$table.trigger("update", [true]);
I'm only guessing that the replaceWith()
function isn't working as intended.
It looks like the plugin needed to know that we made an update and I just needed to trigger the updateAll command.
Like this:
var resort = true, // re-apply the current sort
callback = function(){
// do something after the updateAll method has completed
};
$("table").trigger("updateAll", [ resort, callback ]);
Same problem here.
Short solution: make the filter-select to a filter-match class, then the table will work again.
Long solution: Does anyone have a working example of table sorter combined with ajax pager and filter plugin?