I was trying to debug a sorting issue with the jquery plugin tablesorter which uses the following code to check for digits:
this.isDigit = function(s,config) {
var DECIMAL = '\\' + config.decimal;
var exp = '/(^[+]?0(' + DECIMAL +'0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9][0-9]*)' + DECIMAL +'(0*[1-9][0-9]*)))$)|(^[-...
I'm using the jQuery Tablesorter and have an issue with the order in which parsers are applied against table columns. I'm adding a custom parser to handle currency of the form $-3.33.
$.tablesorter.addParser({
id: "fancyCurrency",
is: function(s) {
return /^\$[\-]?[0-9,\.]*$/.test(s);
},
format: function(s) {
...
Hi,
I'm not a good programmer and I just started using jQuery. I need a table sorter that can expand and collapse rows. My code is below. I've spent lots of time trying to improve its execution time. In IE it takes lots of time. I'd appreciate your suggestions.
$(document).ready(function() {
$('table.sortable').each(function() {
...
Hello,
I've got a table which Im sorting with tablesorter (http://tablesorter.com). Within that table there is a column with submit buttons. Each table row has got a submit button. Before sorting, the buttons work great and submit a POST request which is processed by a PHP script.
AFTER sorting the table with tablesorter the buttons se...
I am using tablesorter plugin to sort my tables in an MVC .NET App. Most of my columns are strings and I'm having no problems with them. Neither with the numeric ones. The thing is my datetime columns are also getting sorted as if they were strings. They get sorted like this: 01/04/2009, 02/02/2009, 03/08/2009, etc. I obtain the data fro...
Using the jQuery tablesorter plugin . I wonder how could I make it work with dates in the full format:
"Jan 21, 2009 16:00"
Problem is that when that date (a string) has been localized with user current locale
"gen 21, 2009 16:00"
Do I have to write a custom sorter for each locale?
Thanks.
`<table id="orders" class="sort...
I have a table with a "select all" checkbox as the first header column and some simple code to select all checkboxes on the page when the header checkbox is clicked.
$('#CheckAll').bind('click',function() {
var checked = $(this).attr('checked');
$('input').attr('checked', checked);
});
the code runs fine, but as so...
So far I've tried Tiny Table Sorter, Tables on Cows, Sorttable, and Yoast's Sortable-table plugin. I have the last one currently installed on a test page here. I finally don't get a conflict w/ the qtip script I'm running on the same page. I understand that the conflicts arrive from a sorter that uses cloned elements. Unfortunately, the...
I'm trying to write a custom parser for the jQuery plugin, Tablesorter. The idea is for it to sort the numbers in descending order on the first click.
However, when I sort the table, the order doesn't change. Sometimes a few rows move, but most of them stay the same. Here is the code:
$.tablesorter.addParser({
id: 'desc',
is: functio...
When a user is viewing a paged table and requests it to sorted by a particular column, what page is shown?
Is there a standard expected behavior for this scenario? I can imagine several possible outcomes, but want to know if there is a standard.
...
i took an html table that i am applying alternative row colors and i just added jquery table sorter on it so users can sort the table.
the issue is that the alternative row colors are all messed up now as (based on the sorting) there are multiple rows with the same backcolor . .
is there anyway to reset the alternative row color with j...
I am using Tablesorter on a table which uses links in the first column (of 4). The problem is that in FF and Chrome it orders the first column when clicked by url not the content of the link. For example
<tr><td><a href="http://abc.com">zzz</a></td><td>11</td><td>22</td><td>33</td></...
Trying for days now (2 that is) to get tablesorter with Jquery to get the numbers correctly sorted.
I am using the last versions of both scripts.
The table is rendered fine, but sorting of the numbers goes wrong.
If sorted it gives the following result:
8
7
4
32
31
3
and so on..
where you would expect that:
32
31
8
etc would be displa...
Name | Rating | Rating2 | Rating 3 | Rating 4
==========================================================
Nba 3 1 1 1
Bba 3 1 1 0
Cba 3 1 1 0
Dba 3 1 1 0
"Rati...
is there a way to have the mouseover with a hand when you go over the column heading so its clear that you can click on the column heading to sort the table by that column
...
Hi,
I have a table with more than 2 rows in and i wnt to perform sorting only on 2nd row elements, how can this be achieved using table sorter?Please help me out.
...
Hi all,
I user Tablesorter a jQuery plugin (I am sure other know about it) in my project. I need to add a feature where in when users click on a row, it gets selected . I tried the following code but, its not working out.
$('#myTable tr').click(function(event) {
$(this).addClass('selected');
});
Could anybody tell me the best way...
I have a working example of the Wordpress/jQuery plugin on this test page: http://beerlyrics.com/jimmy-jones/
I hardcoded it into the header on this page and both the pagination and filter mechanisms work correctly.
I have converted this over to a new page and am now using wp_enqueue to call all my scripts as it is supposed to be done:...
Hi All,
I have a table that has a column for Days Remaining. The values in this column are either a number, or 'TBD' (to be determined). The tablesorter plugin doesn't properly handle the sorting of this mixed-type column. How could I get this to work properly?
Thanks,
~jk
...
I can't figure this out. This question was also asked here http://www.nabble.com/TableSorter-plugin---default-column-sort-DESC-instead--How--to25180761s27240.html#a25180761 with no response.
I've tried
$.tablesorter.defaults.sortInitialOrder = 'desc';
and altering the jquery.tablesorter.js file to default to 'desc' but it doesn'...