HighDots Forums  

TableSorter problem: calling textExtraction()

jQuery jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript.


Discuss TableSorter problem: calling textExtraction() in the jQuery forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
corona79
 
Posts: n/a

Default TableSorter problem: calling textExtraction() - 02-04-2010 , 04:40 PM






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-pr...p27460924.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.