[jQuery] Re: Applying Table Row Sorter to Multiple Tables

2009-05-13 Thread aquaone
this may be what you guys are looking for? dunno, haven't tested it much... I'm sure there's a better way of doing this... but it seems to work. just add a "multisort" class to every table you want linked. var $multisort = $("table.multisort"); $multisort.addClass( "msUnsorted" ); $multisort.bind(

[jQuery] Re: Applying Table Row Sorter to Multiple Tables

2009-05-13 Thread christopherious
"Wow, the idea of sorting multiple tables at the same time is interesting. I may check that out, too." Hah, I only just now realized that I totally misunderstood your original post! My users need this because they work with the same data on multiple tables, and don't want to apply sorts on a tab

[jQuery] Re: Applying Table Row Sorter to Multiple Tables

2009-05-12 Thread David Blomstrom
Please ignore my last question; I found the thread I was looking for. I'll give the various solutions that were offered another try, and if it still doesn't work, I'll put a live example online. Thanks. On Tue, May 12, 2009 at 6:18 PM, David Blomstrom wrote: > Wow, the idea of sorting multiple ta

[jQuery] Re: Applying Table Row Sorter to Multiple Tables

2009-05-12 Thread David Blomstrom
Wow, the idea of sorting multiple tables at the same time is interesting. I may check that out, too. In the meantime, thanks for the tip, aquaone. I'm now able to place multiple sortable tables on a page. Now I just have to fix one other problem - numerals with commas don't sort properly. I asked a

[jQuery] Re: Applying Table Row Sorter to Multiple Tables

2009-05-12 Thread christopherious
Sorry, forgot to mention in my previous post that with that revision, tables still sort individually. On May 12, 5:46 pm, christopherious wrote: > Something like this?  (Note that jQuery and JS in general are still > often a challenge for me). > > -- > > > > $(document).ready(function()

[jQuery] Re: Applying Table Row Sorter to Multiple Tables

2009-05-12 Thread christopherious
Something like this? (Note that jQuery and JS in general are still often a challenge for me). -- $(document).ready(function() { // extend the default setting to always sort on the first column $.tablesorter.defaults.sortList = [[0,0]]; // call the tablesorter plugin $(

[jQuery] Re: Applying Table Row Sorter to Multiple Tables

2009-05-12 Thread aquaone
You should be able to bind to the sortEnd events to force sorting on all tables based on the sort order of that table... On Tue, May 12, 2009 at 16:48, christopherious wrote: > > I share David's requirement to sort globally on the page. When users > click a column header for a given table, I wan

[jQuery] Re: Applying Table Row Sorter to Multiple Tables

2009-05-12 Thread christopherious
I share David's requirement to sort globally on the page. When users click a column header for a given table, I want all tables on that page to sort by that column rather than for just the table where the user clicked the header. My JS: $(document).ready(function() { // extend the default

[jQuery] Re: Applying Table Row Sorter to Multiple Tables

2009-05-01 Thread David Blomstrom
Sorry it took me so long to reply. I thought my posts weren't showing up on this forum. Anyway, thanks for the tip. I understand it now. Unfortunately, it isn't working for some reason. Is there a way to instead designate multiple ID's - like myTable, myTable2 and myTable3? Thanks. On Thu, Apr 30,

[jQuery] Re: Applying Table Row Sorter to Multiple Tables

2009-04-30 Thread aquaone
IDs are unique for a document. A document containing multiple elements with the same ID is invalid. Use a class instead and invoke tablesorter on all tables with that class. e.g. ... and $("table.tablesorter").tablesorter({ widgets: ['zebra'] }); On Wed, Apr 29, 2009 at 20:35, David Blomstr