I know practically nothing about javascript, so maybe this is just a simple
matter of incorrect syntax.

The following code works for making a table sortable:

$(function() { $("#team_loses").tablesorter({
   widgets: ['zebra'], headers: {2: {sorter: 'rank'}, 6:{sorter: false},
7:{sorter: false}, 12:{sorter: false} }
   });
});

However, I try to also use textExtraction, and the table cannot be sorted in
either FF or IE

$(function() { $("#team_loses").tablesorter({
widgets: ['zebra'], headers: {2: {sorter: 'rank'}, 6:{sorter: false},
7:{sorter: false}, 12:{sorter: false} }
,
textExtraction: function(node) {
                        return node.childNodes[0].childNodes[0].innerHTML;
                }
 });
});
-- 
View this message in context: 
http://old.nabble.com/TableSorter-problem%3A--calling-textExtraction%28%29-tp27460924s27240p27460924.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to