[jQuery] Re: Table sorter plugin not properly sorting Distance column (ie: 17 Miles)

2009-11-18 Thread Yvan
Thanks so much! Here is my final version of the script: script type=text/javascript $(document).ready(function() { $.tablesorter.addParser({ id: 'distance', is: function(s) { return false; },

[jQuery] Re: Table sorter plugin not properly sorting Distance column (ie: 17 Miles)

2009-11-17 Thread MorningZ
First, understand *why* it doesn't work: - You add miles to the table cell, then Tablesorter treats it as a string value Now that this is understand, the solution is to use a custom parser to strip out the label, here is an example http://jsbin.com/unepe/edit On Nov 17, 11:17 am, Yvan

[jQuery] Re: Table sorter plugin not properly sorting Distance column (ie: 17 Miles)

2009-11-17 Thread MorningZ
First, understand *why* it doesn't work: - You add miles to the table cell, then Tablesorter treats it as a string value Now that this is understoodd, the solution is to use a custom parser to strip out the label, here is an example http://jsbin.com/unepe/edit On Nov 17, 11:17 am, Yvan

[jQuery] Re: Table sorter

2009-08-12 Thread Bob Woodard
On Aug 6, 8:56 am, mila mshneyder...@gmail.com wrote:         $(#myTable).tablesorter();         $(#myTable).tablesorter();  // had to do that twice for column sorting to work in both directions Thanks for mentioning this! I was going crazy seeing this behavior and couldn't figure it out.

[jQuery] Re: Table sorter

2009-08-06 Thread solow
nobody? i kind of, really need a tablesorter for a dynamically loaded page... On 5 aug, 04:21, solow solow.wes...@gmail.com wrote: Hey, I'm using table sorter. http://tablesorter.com/ Now, this is great and all, but it doesn't seem to work in dynamically loaded pages. Does anyone know

[jQuery] Re: Table sorter

2009-08-06 Thread mila
Here is what I had to do to get tablesorter work for me after changin table body: var currSort = $(#myTable)[0].config.sortList; //save current sorting setData(data); //update table with new data $(#myTable).trigger(update); //refresh sorting cache

[jQuery] Re: Table sorter

2009-08-06 Thread MorningZ
Does anyone know a solution for this problem? Yeah, wire up the Tablesorter code to the table *after* it is placed on the page. because whether the table was there when the page was generate or dynamically pulled in makes no difference, as long as it was there in the DOM when

[jQuery] Re: Table sorter

2009-08-06 Thread solow
so basicaly, i have to call for the page, and after calling for the page, i call fo the tablesorter function... but how do i know, that loading the page was finished? On 6 aug, 15:13, MorningZ morni...@gmail.com wrote: Does anyone know a solution for this problem? Yeah, wire up the

[jQuery] Re: Table sorter

2009-08-06 Thread Mauricio Vargas
-- From: solow solow.wes...@gmail.com Sent: Thursday, August 06, 2009 1:19 PM To: jQuery (English) jquery-en@googlegroups.com Subject: [jQuery] Re: Table sorter so basicaly, i have to call for the page, and after calling for the page, i call fo

[jQuery] Re: Table sorter 2.0 Date format issue

2009-07-30 Thread aquaone
You need to set the dateFormat property to 'uk'. The default is 'us' which is mm/dd/yy(yy). aquaone On Wed, Jul 29, 2009 at 22:04, subhan md.sub...@gmail.com wrote: Hi, I am using the date format dd/mm/yy but it is not working properly, below is the example how it get sort in ascending

[jQuery] Re: Table sorter.

2009-04-24 Thread Mazi
Hallo all. I'm using this plugin and I consider it fantastic. I need in a table to ignore some rows from ordering. Is it possibile to accomplish a task like this? Kind regards Massimo On Apr 21, 1:26 pm, MorningZ morni...@gmail.com wrote: Why not base your use/non-use of a plugin based on

[jQuery] Re: Table sorter.

2009-04-24 Thread Remon Oldenbeuving
Is this what your looking for? http://tablesorter.com/docs/example-meta-headers.html On Fri, Apr 24, 2009 at 5:10 PM, Mazi m.ug...@gmail.com wrote: Hallo all. I'm using this plugin and I consider it fantastic. I need in a table to ignore some rows from ordering. Is it possibile to

[jQuery] Re: Table sorter.

2009-04-24 Thread aquaone
some rows or some columns? if columns, then the link Remon provided is correct. If rows, I'm not entirely sure I understand what you mean. If you need them at the top, have them in your thead. if you need them at the bottom, put them in your tfoot. if you want to sort within specific groups, the

[jQuery] Re: Table sorter.

2009-04-21 Thread MorningZ
Why not base your use/non-use of a plugin based on features and application for your usage? I don't see any plugins out there stamped jQuery Official Plugin... need something done, there's probably 20+ different plugins out there that will do it As for TableSorter... i use it pretty

[jQuery] Re: Table sorter and pager problem

2009-01-25 Thread jQuery Lover
Put this code before your tableSorter code (if you are not loading your data using ajax call)! If you are loading table data through ajax then put it in an ajax callback function: docs.jquery.com/Ajax Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Tue, Jan 20, 2009

[jQuery] Re: Table sorter and pager problem

2009-01-19 Thread Varun Khatri
Thanks for the reply... But I am using plugin table sorter... where should I put empty text replacer... dint quite get you ? Here is the code: $(.tablesorter) .tablesorter({widthFixed: true, widgets: ['zebra']}) .tablesorterPager({container: $(#pager)}) $(.tablesorter).each(function()

[jQuery] Re: Table sorter and pager problem

2009-01-17 Thread jQuery Lover
You must be loading your page 2 with an ajax call! Add your empty text replacer to the ajax call callback. PS. I haven't checked but I think you can rewrite your jquery code for better performance like this: $(.tablesorter).each(function() { $('tbody tr td', this).each(function() {

[jQuery] Re: table sorter issue, how do i sort these as a currency

2008-12-22 Thread livewire9174
I'm still trying to get this working, has anybody tried anything like this before? On Dec 15, 6:16 pm, livewire9174 markmch...@gmail.com wrote: here is the code, I need to stop the execution somewhere I guess ? I am using ajax calls to put data into to table, so I guess I cant attach the

[jQuery] Re: table sorter issue, how do i sort these as a currency

2008-12-15 Thread MorningZ
Showing the init code doesn't really help others help you... Got an example of the HTML you are trying to sort? On Dec 15, 7:01 am, livewire9174 markmch...@gmail.com wrote: Hi, I am using this to initialise the page SCRIPT type=text/javascript         $(document).ready(function() {    

[jQuery] Re: table sorter issue, how do i sort these as a currency

2008-12-15 Thread livewire9174
here is the code, I need to stop the execution somewhere I guess ? I am using ajax calls to put data into to table, so I guess I cant attach the tablesorter script until the ajax calls have fully finished ? [code] !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://

[jQuery] Re: Table sorter issue - trying to stop a field from sorting

2008-11-04 Thread MorningZ
There's an example right in his documentation http://tablesorter.com/docs/example-options-headers.html On Nov 4, 6:59 am, livewire9174 [EMAIL PROTECTED] wrote: Hi, Here is my code, I want to prevent the first field from being a sort option, can somebody help? -- !DOCTYPE html PUBLIC