[jQuery] Re: TableSorter issues: special characters, mixed data

2007-04-06 Thread Christian Bach
I checked in a new version that takes care of all the problems. I based my test case on your example, located here: http://lovepeacenukes.com/jquery/tests/tablesorter-mixed-data-types.html /christian 2007/4/6, Kim Johnson <[EMAIL PROTECTED]>: Err... I take that back. -the only way for the

[jQuery] Re: TableSorter issues: special characters, mixed data

2007-04-05 Thread Kim Johnson
Err... I take that back. -the only way for the page to not have javascript errors is to put in the ExtractionType line, due to the special characters in the title. -however, by doing this, any time you sort any other field, it still is sorting by title, not the field you actually clicked. ---

[jQuery] Re: TableSorter issues: special characters, mixed data

2007-04-05 Thread Kim Johnson
Super close, but not quite! :) http://anime-planet.com/users/reviewindex.php?usersid=1 $("#userreviewtable").tableSorter({ sortColumn: 'title', stripingRowClass: ['alt2','alt'], stripeRowsOnStartUp: true, textExtractionCustom: [ [2,'integer']

[jQuery] Re: TableSorter issues: special characters, mixed data

2007-04-05 Thread Christian Bach
I took a look at your example page and this snippet will solve your problem: $("#userreviewtable").tableSorter({ sortColumn: 'title', stripingRowClass: ['alt2','alt'], stripeRowsOnStartUp: true, textExtractionCustom: [ [2,'integer'] ], dateFormat: "dd/mm/yy" }); What we

[jQuery] Re: TableSorter issues: special characters, mixed data

2007-04-05 Thread Kim Johnson
Thanks Christian! I just pasted that in and indeed, now there isn't a JS error and it sorts correctly by title. However, now something strange is happening and the other fields don't sort -- they all sort by title! The date specifically is what I just tried. Here are two sample pages: http://an

[jQuery] Re: TableSorter issues: special characters, mixed data

2007-04-05 Thread Richard Thomas
Thats the hard part about trying to sort an already built table, I prefer the other direction, build the tables off a set of data.. This way you can do the formatting afterward and not have any issues. http://projects.cyberlot.net/trac/jqpie/wiki/ExampleAuto On 4/5/07, Christian Bach <[EMAIL

[jQuery] Re: TableSorter issues: special characters, mixed data

2007-04-05 Thread Christian Bach
Kim, is it possible to publish a test page so i can take a look? A "quick fix" would be to use the new property textExtractionType - which in true tablesorter spirit is undocumented. Here is a example: This forces the tablesorter to extract data out of the title attribute, allowing a simple

[jQuery] Re: TableSorter issues: special characters, mixed data

2007-04-04 Thread Kim Johnson
Anyone know a workaround for this? :) Christian, any thoughts? -kim, who would really like to not code a bunch of tablesorting tonight in php ;) --- Kim Johnson <[EMAIL PROTECTED]> wrote: > > ATTN: Christian or anyone else familiar :) > > I'm trying to use TableSorter for a few large > batche