[jQuery] Re: Tablesorter 2.0.3 - Sorting af column of checkboxes (resorting)

2009-05-13 Thread hammerskov
sunfire wrote: I have tried this and it does not work for me, where are you calling $(#myTable).trigger(update); ? I bind a click eventhandler to every checkbox and trigger the update every time the user clicks a checkbox. This is not a solution I would recommend, since it causes

[jQuery] Re: Tablesorter 2.0.3 - Sorting af column of checkboxes (resorting)

2008-09-07 Thread hammerskov
Thank you both for taking the time to guide me in the right direction. I have solved the problem, and you do need to create a new parser. The reason it seemed to work when the page is loaded is because the textual representation of a checked and un-checked checkbox is different. However, the

[jQuery] Re: Tablesorter 2.0.3 - Sorting af column of checkboxes (resorting)

2008-09-05 Thread hammerskov
MorningZ wrote: look into the code of the tablesorter.js code, it's storing the values/ text of the td's value right there in the client on the wiring up of the plugin, and it doesn't handle changing of the values/text you'll have to come up with some other solution, or dig real deep

[jQuery] Re: Tablesorter 2.0.3 - Sorting af column of checkboxes (resorting)

2008-09-05 Thread MorningZ
yeah, that method *seems* like it would work i added in the main js this alert // apply easy methods that trigger binded events $this.bind(update, function() { alert(Update Called); // rebuild parsers.

[jQuery] Re: Tablesorter 2.0.3 - Sorting af column of checkboxes (resorting)

2008-09-05 Thread tlphipps
You'll need to write a custom parser for your data set to accomplish this. As MorningZ alluded to earlier, the tablesorter is looking for text by default in between the td/td tags. What it's finding in your case is simply an input type=checkbox. It doesn't parse that entity to find the

[jQuery] Re: Tablesorter 2.0.3 - Sorting af column of checkboxes (resorting)

2008-09-05 Thread MorningZ
that doesn't sound right because anything inside the td/td tag would be treated as text *unless* the built in parsers couldn't figure out what to do with them (or a custom parser was defined) so the columns could be like tdA/tdtdinput type=checkbox checked=checked //td tdB/tdtdinput

[jQuery] Re: Tablesorter 2.0.3 - Sorting af column of checkboxes (resorting)

2008-09-05 Thread tlphipps
By default the tablesorter code uses some algorithm(s) to try and 'figure out' where the text starts. So it skips HTML entities (maybe not all, but some). Take a look at the textExtraction methods that are built into the code and you'll see what I'm talking about. On Sep 5, 9:54 am, MorningZ

[jQuery] Re: Tablesorter 2.0.3 - Sorting af column of checkboxes (resorting)

2008-09-04 Thread MorningZ
Can you post a sample of the table HTML? (using lodgeit if necessary) http://paste.pocoo.org/

[jQuery] Re: Tablesorter 2.0.3 - Sorting af column of checkboxes (resorting)

2008-09-04 Thread hammerskov
table id=myTable thead tr thText/th thCheckboxes/th /tr /thead tbody tr tdA/td tdinput type=checkbox/td /tr tr tdB/td tdinput type=checkbox checked=checked/td /tr tr tdC/td tdinput type=checkbox/td /tr tr tdD/td tdinput type=checkbox

[jQuery] Re: Tablesorter 2.0.3 - Sorting af column of checkboxes (resorting)

2008-09-04 Thread MorningZ
When you try to sort the column again row C and D should stay together at the top or bottom, but they don't No, no they shouldn't look into the code of the tablesorter.js code, it's storing the values/ text of the td's value right there in the client on the wiring up of the plugin, and it