tablesorter

Why would match find a result while test returns false for a regular expression in JavaScript?

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]*)))$)|(^[-...

Custom Parser for JQuery Tablesorter

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) { ...

how to improve performance in jquery

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() { ...

jquery tablesorter disables submit functionality

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...

Problem with sorting dates with jquery tablesorter

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...

jQuery tablesorter month name locale

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...

jquery tablesorter and select all checkbox in table header

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...

Need javacript sorter (pref. jquery) that doesn't clone elements

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...

jQuery Tablesorter - custom parser not working

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...

Expected Behavior: Sort a Paged Table's Column

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. ...

jquery tablesorter plugin - retain alternative row colors

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...

Jquery Tablesorter, sorting by link url rather than link content

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"&gt;zzz&lt;/a&gt;&lt;/td&gt;&lt;td&gt;11&lt;/td&gt;&lt;td&gt;22&lt;/td&gt;&lt;td&gt;33&lt;/td&gt;&lt;/...

tablesorter with jquery does not sort numbers correct

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...

Tablesorter 2.0 Question Jquery

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...

jquery tablesorter - mouseover column headings

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 ...

Table Sorter to sort when i have more rows in thead

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. ...

Selecting rows in Tablesorter

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...

Why doesn't jQuery Tablesorter Plugin work on this Wordpress page?

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:...

jquery.tablesorter.js > sorting mixed-type columns

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 ...

How to get jQuery Tablesorter to sort descending by default?

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'...