[jQuery] TableSorter sorting date column

2007-03-19 Thread Chris W. Parker
Hello,
 
I see that by default the tableSorter plugin can easily sort date+times
formatted as: Jan 01, 2000 00:00 AM. But once you take off the time
portion it sorts alphaneumerically. How can I get it to still sort
properly while just using the date portion (e.g. Jan 01, 2000)?
 
 
 
Thanks,
Chris.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter sorting date column

2007-03-19 Thread Remy Sharp


Chris W. Parker wrote:
 
 How can I get it to still sort properly while just using the date portion
 (e.g. Jan 01, 2000)?
 

If I were you I would write another analyser - to match your date format,
then manually add 00:00:00 before converting the time to a numerical.  Use
the existing date analyser as the template.

Hope that points you in the right direction!
-- 
View this message in context: 
http://www.nabble.com/TableSorter-sorting-date-column-tf3430161.html#a9562824
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter sorting date column

2007-03-19 Thread Chris W. Parker
On Monday, March 19, 2007 4:03 PM Remy Sharp  said:

 If I were you I would write another analyser - to match your date
 format, then manually add 00:00:00 before converting the time to a
 numerical.  Use the existing date analyser as the template.
 
 Hope that points you in the right direction!

Done!

A simple modification to the 'usLongDate' thingy (analyser?) does the
trick.

I'm not totally sure how to describe the change necessary but here goes:

In the definition that begins:

$.tableSorter.parsers.usLongDate = {

look for the line that reads:

return s.match(new RegExp(/^[A-Za-z]...

There is a clause(terminology?) at the end of the RegExp that handles
the time of day (hh:mm AM/PM) that should be enclosed in another
conditional clause to handle cases where it is not available.

(watch for line breaks)
Here's the old RegExp:
/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2})
(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/

And here's the new RegExp:
/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2})(
(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM?$/


In case you're reading this on the web and don't know context, with the
change above you can sort 'Jan 01, 2001' just like you can 'Jan 01, 2001
00:00 AM'.


Chris.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Tablesorter docs

2007-02-28 Thread David
Hi,

Are there any docs or howto's for the TableSorter plugin? The plugin
source is a little lite on for documentation and the page associated
with it only contains a change log. I'm sure there used to be a page
with a demo and instructions? Does anyone know where that is?

Regards,

David
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tablesorter docs

2007-02-28 Thread Yehuda Katz

I know there used to be some demo pages. Christian?

On another note, I'm going to be working with Christian on documenting some
of tablesorter. Last I spoke with him, he was going to be starting to do
much more inline documentation of the plugin. It's really very powerful and
some cool features are coming down the pike as well.

-- Yehuda

On 2/28/07, David [EMAIL PROTECTED] wrote:


 Hi,

Are there any docs or howto's for the TableSorter plugin? The plugin
source is a little lite on for documentation and the page associated with it
only contains a change log. I'm sure there used to be a page with a demo and
instructions? Does anyone know where that is?

Regards,

David

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] TableSorter changes in svn (Was Re: JQuery Star ratings - New version?)

2007-02-12 Thread R. Rajesh Jeba Anbiah
  snip
Another issue is that the svn version of TableSorter 
  svn://jquery.com/trunk/plugins/
  tablesorter looks different compared to the one at the site
 http://motherrussia.polyester.se/pub/jquery/tablesorter/

 Yes this is correct, the file on my site is no longer being actively
 developed. All development has moved to the jQuery svn.

   Thanks, any idea about the new changes? Looks like disableHeader is
broken now?

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter changes in svn (Was Re: JQuery Star ratings - New version?)

2007-02-12 Thread Christian Bach

Regarding disableHeader it works (did a quick test with the latest version).

Is it possible to be more specific about the new changes?
Perhaps a email i missed?

/christian




2007/2/12, R. Rajesh Jeba Anbiah [EMAIL PROTECTED]:


  snip
Another issue is that the svn version of TableSorter
svn://jquery.com/trunk/plugins/
  tablesorter looks different compared to the one at the site
 http://motherrussia.polyester.se/pub/jquery/tablesorter/

 Yes this is correct, the file on my site is no longer being actively
 developed. All development has moved to the jQuery svn.

   Thanks, any idea about the new changes? Looks like disableHeader is
broken now?

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tablesorter and MSIE7 help

2007-02-06 Thread Christian Bach

Hi,

First upgrade to the latest version which is available from the jQuery svn.

Second set the parameter useCache to false.

Here is a example:

$(#my-table).tableSorter({
useCache: false
});

/christian

On 2/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:



Hi,

I using



jquery 1.1.1(Rev: 1153)

jquery.tablesorter.js ($Date: 2006-08-21 14:43:23 +). I

  think this is the latest.



Question: If I modify a row's entry, then I click on the

header to resort the column, how can I get the plugin to

pick up my changes? It seems the plugin caches the results in

Microsoft Internet Explorer 7. It works fine in firefox. Thank you.



I have attached a demo file. Here is my test scenario

- click the status header

- then click on click link

- click the status header



I get the following



Sealskinz Waterproof Socks Online  0 0

Orca polar Tec Fleece Hat  Online  3 3

Large Packable Bag Online  2 2

Tempest Sailing Glove  Offline 1 1

BRONER 'CAPTAIN' HAT   Online  0 0

Gill Arctic Sock   Offline  0 0



I wanted all my status fields to be sorted. Thanks









--

script type=text/javascript



$(document).ready(function() {

  $(#discounts).tableSorter();

});



function toggleStatus() {



  $('#9176').each(function() {



var children = $(this).children();

children[1].innerHTML = (children[1].innerHTML == Offline) ?
Online : Offline;

  });



}







/script



/head

body



a href=# onclick=toggleStatus();click/a

table id=discounts



  thead

  tr

thName/th

thStatus/th

thGroup One/th

thGroup Two/th

  /tr



  /thead

  tbody



tr id=9175 selected=selected

  tdBRONER 'CAPTAIN' HAT/td

  td



Online



  /td

  td0/td



  td0/td

/tr



tr id=9176 

  tdTempest Sailing Glove/td

  td



Online



  /td



  td1/td

  td1/td

/tr



tr id=9177

  tdLarge Packable Bag/td

  td



Online



  /td

  td2/td

  td2/td

/tr



tr id=9178 

  tdOrca polar Tec Fleece Hat/td



  td



Online



  /td

  td3/td

  td3/td

/tr



tr id=9179



  tdSealskinz Waterproof Socks/td

  td



Online



  /td

  td0/td

  td0/td

/tr



tr id=9180



  tdGill Arctic Sock/td

  td



Offline



  /td

  td0/td

  td0/td

/tr



  /tbody

/table



___



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tablesorter: numbers with commas

2007-02-06 Thread Christian Bach

Hi Justin,


I will see to it that this get included in the contributed parser file
planed for the new release.

Cheers
Christian


On 2/5/07, justin kelly [EMAIL PROTECTED] wrote:


Hi All,

if anyone else is interested in a similar tablesorter extension - heres
the code

#code##
$.tableSorter.parsers.englishNumber = {
id: 'englishNumber',
is: function(s) {
return s.match(/^\d{1,3}(\,\d{1,3})+(\.\d{2})?\s*$/);
},
format: function(s) {
return parseFloat(s.replace(/[^0-9.]/g,''));
},
sorter: $.tableSorter.sorters.numeric
};

$.tableSorter.analyzer.add($.tableSorter.parsers.englishNumber);
#

note: if this could be added by default to newer releases of tablesorterit wold 
be great
note: matches 45,233.00 not $45, 456.09 (this one left for the default
currency type)
note: the currency type can be extended to match similar patterns
return s.match
(/^\s*[£$]?\s*\d{1,3}(\,\d{1,3})+(\.\d{2})?\s*$/);

cheers

justin


On 2/4/07, Chris Domigan [EMAIL PROTECTED] wrote:

 I think the tablesorter plugin is fairly easy to extend with custom
 regexes, if you're up for it! Or you could just use the existing regex and
 get it to strip all commas before the comparison.

 Chris

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tablesorter and MSIE7 help

2007-02-06 Thread

Hi,

thank you for you help.

I updated to the latest version of tablesorter from svn

and then used the {useCache:false} parameter to the constructor.

It works in MSIE7 but now firefox 2.0.0.1 does not work. Thanks for all the 
help.









 --- On Tue 02/06, Christian Bach  [EMAIL PROTECTED]  wrote:

From: Christian Bach [mailto: [EMAIL PROTECTED]

To: [EMAIL PROTECTED], discuss@jquery.com

Date: Tue, 6 Feb 2007 11:49:05 +0100

Subject: Re: [jQuery] tablesorter and MSIE7 help



Hi,First upgrade to the latest version which is available from the jQuery 
svn.Second set the parameter useCache to false.Here is a 
example:$(#my-table).tableSorter({useCache: false

});/christianOn 2/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED]

 wrote:Hi,I usingjquery 1.1.1(Rev: 1153)jquery.tablesorter.js

 ($Date: 2006-08-21 14:43:23 +). I  think this is the latest.Question: If I 
modify a row's entry, then I click on theheader to resort the column, how can I 
get the plugin to

pick up my changes? It seems the plugin caches the results inMicrosoft Internet 
Explorer 7. It works fine in firefox. Thank you.I have attached a demo file. 
Here is my test scenario- click the status header

- then click on click link- click the status headerI get the 
followingSealskinz Waterproof Socks Online  0 0Orca polar Tec Fleece Hat  
Online  3 3

Large Packable Bag Online  2 2Tempest Sailing Glove  Offline 1 
1BRONER 'CAPTAIN' HAT   Online  0 0Gill Arctic Sock   Offline  0 0I 
wanted all my status fields to be sorted. Thanks

--script 
type=text/javascript$(document).ready(function() {  
$(#discounts).tableSorter();

});function toggleStatus() {  $('#9176').each(function() {var children = 
$(this).children();children[1].innerHTML = (children[1].innerHTML == 
Offline) ? Online : Offline;

  });}/script/headbodya href=# onclick=toggleStatus();click/a

table id=discounts  thead  trthName/ththStatus/th
thGroup One/th

thGroup Two/th  /tr  /thead  tbodytr id=9175 
selected=selected  tdBRONER 'CAPTAIN' HAT/td

  tdOnline  /td  td0/td  td0/td/tr
tr id=9176 

  tdTempest Sailing Glove/td  tdOnline  /td  
td1/td  td1/td

/trtr id=9177  tdLarge Packable Bag/td  td
Online  /td

  td2/td  td2/td/trtr id=9178   tdOrca 
polar Tec Fleece Hat/td  td

Online  /td  td3/td  td3/td/trtr 
id=9179

  tdSealskinz Waterproof Socks/td  tdOnline  /td
  td0/td  td0/td/tr

tr id=9180  tdGill Arctic Sock/td  tdOffline  
/td  td0/td

  td0/td/tr  
/tbody/table__

jQuery mailing [EMAIL PROTECTED]://jquery.com/discuss/



___



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tablesorter and MSIE7 help

2007-02-06 Thread

Hi,

I upgraded tablesorter the latest version which is available from the svn and 
{useCache: false} in the tablesorter constructor. It works on MSIE7, but 
Firefox 2.0.0.1 does not work. Thanks for all the help.









 --- On Tue 02/06, Christian Bach  [EMAIL PROTECTED]  wrote:

From: Christian Bach [mailto: [EMAIL PROTECTED]

To: [EMAIL PROTECTED], discuss@jquery.com

Date: Tue, 6 Feb 2007 11:49:05 +0100

Subject: Re: [jQuery] tablesorter and MSIE7 help



Hi,First upgrade to the latest version which is available from the jQuery 
svn.Second set the parameter useCache to false.Here is a 
example:$(#my-table).tableSorter({useCache: false

});/christianOn 2/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED]

 wrote:Hi,I usingjquery 1.1.1(Rev: 1153)jquery.tablesorter.js

 ($Date: 2006-08-21 14:43:23 +). I  think this is the latest.Question: If I 
modify a row's entry, then I click on theheader to resort the column, how can I 
get the plugin to

pick up my changes? It seems the plugin caches the results inMicrosoft Internet 
Explorer 7. It works fine in firefox. Thank you.I have attached a demo file. 
Here is my test scenario- click the status header

- then click on click link- click the status headerI get the 
followingSealskinz Waterproof Socks Online  0 0Orca polar Tec Fleece Hat  
Online  3 3

Large Packable Bag Online  2 2Tempest Sailing Glove  Offline 1 
1BRONER 'CAPTAIN' HAT   Online  0 0Gill Arctic Sock   Offline  0 0I 
wanted all my status fields to be sorted. Thanks

--script 
type=text/javascript$(document).ready(function() {  
$(#discounts).tableSorter();

});function toggleStatus() {  $('#9176').each(function() {var children = 
$(this).children();children[1].innerHTML = (children[1].innerHTML == 
Offline) ? Online : Offline;

  });}/script/headbodya href=# onclick=toggleStatus();click/a

table id=discounts  thead  trthName/ththStatus/th
thGroup One/th

thGroup Two/th  /tr  /thead  tbodytr id=9175 
selected=selected  tdBRONER 'CAPTAIN' HAT/td

  tdOnline  /td  td0/td  td0/td/tr
tr id=9176 

  tdTempest Sailing Glove/td  tdOnline  /td  
td1/td  td1/td

/trtr id=9177  tdLarge Packable Bag/td  td
Online  /td

  td2/td  td2/td/trtr id=9178   tdOrca 
polar Tec Fleece Hat/td  td

Online  /td  td3/td  td3/td/trtr 
id=9179

  tdSealskinz Waterproof Socks/td  tdOnline  /td
  td0/td  td0/td/tr

tr id=9180  tdGill Arctic Sock/td  tdOffline  
/td  td0/td

  td0/td/tr  
/tbody/table__

jQuery mailing [EMAIL PROTECTED]://jquery.com/discuss/



___



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tablesorter: numbers with commas

2007-02-05 Thread justin kelly

Hi All,

if anyone else is interested in a similar tablesorter extension - heres the
code

#code##
$.tableSorter.parsers.englishNumber = {
   id: 'englishNumber',
   is: function(s) {
   return s.match(/^\d{1,3}(\,\d{1,3})+(\.\d{2})?\s*$/);
   },
   format: function(s) {
   return parseFloat(s.replace(/[^0-9.]/g,''));
   },
   sorter: $.tableSorter.sorters.numeric
};

$.tableSorter.analyzer.add($.tableSorter.parsers.englishNumber);
#

note: if this could be added by default to newer releases of tablesorter it
wold be great
note: matches 45,233.00 not $45,456.09 (this one left for the default
currency type)
note: the currency type can be extended to match similar patterns
   return s.match
(/^\s*[£$]?\s*\d{1,3}(\,\d{1,3})+(\.\d{2})?\s*$/);

cheers

justin


On 2/4/07, Chris Domigan [EMAIL PROTECTED] wrote:


I think the tablesorter plugin is fairly easy to extend with custom
regexes, if you're up for it! Or you could just use the existing regex and
get it to strip all commas before the comparison.

Chris

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] tablesorter and MSIE7 help

2007-02-05 Thread

Hi,

I using 



jquery 1.1.1(Rev: 1153) 

jquery.tablesorter.js ($Date: 2006-08-21 14:43:23 +). I 

  think this is the latest.



Question: If I modify a row's entry, then I click on the

header to resort the column, how can I get the plugin to

pick up my changes? It seems the plugin caches the results in

Microsoft Internet Explorer 7. It works fine in firefox. Thank you.



I have attached a demo file. Here is my test scenario

- click the status header

- then click on click link

- click the status header



I get the following



Sealskinz Waterproof Socks Online  0 0 

Orca polar Tec Fleece Hat  Online  3 3 

Large Packable Bag Online  2 2 

Tempest Sailing Glove  Offline 1 1 

BRONER 'CAPTAIN' HAT   Online  0 0 

Gill Arctic Sock   Offline  0 0 



I wanted all my status fields to be sorted. Thanks









--

script type=text/javascript



$(document).ready(function() {

  $(#discounts).tableSorter();

});



function toggleStatus() {



  $('#9176').each(function() {



var children = $(this).children();

children[1].innerHTML = (children[1].innerHTML == Offline) ? Online : 
Offline;

  });



}







/script



/head

body



a href=# onclick=toggleStatus();click/a

table id=discounts



  thead

  tr

thName/th

thStatus/th

thGroup One/th

thGroup Two/th

  /tr



  /thead

  tbody



tr id=9175 selected=selected

  tdBRONER 'CAPTAIN' HAT/td

  td



Online



  /td

  td0/td



  td0/td

/tr



tr id=9176 

  tdTempest Sailing Glove/td

  td



Online



  /td



  td1/td

  td1/td

/tr



tr id=9177

  tdLarge Packable Bag/td

  td



Online



  /td

  td2/td

  td2/td

/tr



tr id=9178 

  tdOrca polar Tec Fleece Hat/td



  td



Online



  /td

  td3/td

  td3/td

/tr



tr id=9179



  tdSealskinz Waterproof Socks/td

  td



Online



  /td

  td0/td

  td0/td

/tr



tr id=9180



  tdGill Arctic Sock/td

  td



Offline



  /td

  td0/td

  td0/td

/tr



  /tbody

/table



___



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tablesorter: numbers with commas

2007-02-04 Thread Chris Domigan

I think the tablesorter plugin is fairly easy to extend with custom regexes,
if you're up for it! Or you could just use the existing regex and get it to
strip all commas before the comparison.

Chris
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] tablesorter: numbers with commas

2007-02-03 Thread justin kelly

Hi All,

Just wondering has anyone got the tablesorter plugin working with numbers
with commas (ie. 5,000.00, or 34,123,224.12 etc..) ?

If so please post how

It seems to sort all other number types OK but not these

also does anyone know if theres a jquery live grid that has sorting and
filtering?
(similar to the enhanced open rico live grig:
http://dowdybrown.com/dbprod/rico-test7/php/demo-autosize2.php)

Cheers

Justin
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tablesorter jquery plugin modification

2007-01-23 Thread Christian Bach
Hi,

I will do some tests this week and see if i can sort out the jQuery 1.1.1 
related problems.

I just started development on the new version of tablesorter and will be 
making a proper 1.1 release in the near future. Filtering will not be 
included in this release and is drop. And will be replaced by Rik Lomas 
excellent QuickSearch plugin.

I'm also working on a modify companion plugin that will allow you to add / 
delete (edit and save, if i have the time) columns. That will be included 
in the upcoming 1.1 release.

And even better is that Yehuda Katz how has made many contribution's to the 
tablesorter code, will be helping me write a proper manual. Making life 
sooo much easier for every one.


/christian



[EMAIL PROTECTED] wrote:
 Is TableSorter fully compatible with JQuery 1.1.1?
 
 With JQuery 1.1.1 (Rev: 1153 - 01.22.07)  we get this error from a click 
 event inside a table with TableSorter:
 
 Error: c.split is not a function
 
 Christian, are you still developing TableSorter?

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tablesorter jquery plugin modification

2007-01-22 Thread [EMAIL PROTECTED]
Is TableSorter fully compatible with JQuery 1.1.1?

With JQuery 1.1.1 (Rev: 1153 - 01.22.07)  we get this error from a click 
event inside a table with TableSorter:

Error: c.split is not a function

Christian, are you still developing TableSorter?

Thanks.

Roso


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tablesorter jquery plugin modification

2007-01-22 Thread [EMAIL PROTECTED]
I believe that the following selector in the TableSorter plug in is not 
compatible with  JQuery 1.1.1:

if(defaults.rowHighlightClass) {
jQuery( tbody:first/tr,oTable).click(function() {
if(ROW_LAST_HIGHLIGHT_OBJ) {
   
ROW_LAST_HIGHLIGHT_OBJ.removeClass(defaults.rowHighlightClass);
   }
   ROW_LAST_HIGHLIGHT_OBJ = 
jQuery(this).addClass(defaults.rowHighlightClass);
   });
}

[EMAIL PROTECTED] wrote:
 Is TableSorter fully compatible with JQuery 1.1.1?

 With JQuery 1.1.1 (Rev: 1153 - 01.22.07)  we get this error from a click 
 event inside a table with TableSorter:

 Error: c.split is not a function

 Christian, are you still developing TableSorter?

 Thanks.

 Roso


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


   

-- 
The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material.  Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited.  If you received this in error, please 
contact the sender and delete the material from any computer.



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tablesorter jquery plugin modification

2007-01-22 Thread Mike Chabot
It works for me, although my table is very simple.

-Mike Chabot

On 1/22/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I believe that the following selector in the TableSorter plug in is not
 compatible with  JQuery 1.1.1:

if(defaults.rowHighlightClass) {
jQuery( tbody:first/tr,oTable).click(function() {
if(ROW_LAST_HIGHLIGHT_OBJ) {

 ROW_LAST_HIGHLIGHT_OBJ.removeClass(defaults.rowHighlightClass);
   }
   ROW_LAST_HIGHLIGHT_OBJ =
 jQuery(this).addClass(defaults.rowHighlightClass);
   });
}

 [EMAIL PROTECTED] wrote:
  Is TableSorter fully compatible with JQuery 1.1.1?
 
  With JQuery 1.1.1 (Rev: 1153 - 01.22.07)  we get this error from a click
  event inside a table with TableSorter:
 
  Error: c.split is not a function
 
  Christian, are you still developing TableSorter?
 
  Thanks.
 
  Roso
 
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 
 

 --
 The information transmitted is intended only for the person or entity to 
 which it is addressed and may contain confidential and/or privileged 
 material.  Any review, retransmission, dissemination or other use of, or 
 taking of any action in reliance upon, this information by persons or 
 entities other than the intended recipient is prohibited.  If you received 
 this in error, please contact the sender and delete the material from any 
 computer.



 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tablesorter jquery plugin modification

2007-01-22 Thread [EMAIL PROTECTED]
Actually the error can be avoided by setting rowHighlightClass to false 
as default and giving it a class name that actually exists if we need 
the highlight-on-row-click functionality.

[EMAIL PROTECTED] wrote:
 I believe that the following selector in the TableSorter plug in is not 
 compatible with  JQuery 1.1.1:

 if(defaults.rowHighlightClass) {
 jQuery( tbody:first/tr,oTable).click(function() {
 if(ROW_LAST_HIGHLIGHT_OBJ) {

 ROW_LAST_HIGHLIGHT_OBJ.removeClass(defaults.rowHighlightClass);
}
ROW_LAST_HIGHLIGHT_OBJ = 
 jQuery(this).addClass(defaults.rowHighlightClass);
});
 }

 [EMAIL PROTECTED] wrote:
   
 Is TableSorter fully compatible with JQuery 1.1.1?

 With JQuery 1.1.1 (Rev: 1153 - 01.22.07)  we get this error from a click 
 event inside a table with TableSorter:

 Error: c.split is not a function

 Christian, are you still developing TableSorter?

 Thanks.

 Roso


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


   
 

   

-- 
The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material.  Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited.  If you received this in error, please 
contact the sender and delete the material from any computer.



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Tablesorter jquery plugin modification

2007-01-04 Thread sesilu nitram anier
Hi,

Your tablesorter jquery plugin make my life more easy. In our site we use
a lot of tables and Your plugin help us vey much.

But, we have tables with to much th with colspan in thead,
and your plugin don't work with these.

I make small modification to your jquery.tablesorte plugin to correct that,
and I hope that help others peoples.

I modify the buildColumnHeaders function in the begining as follow:

code
 ..
 ..
 ..
function buildColumnHeaders() {
 /* Sorry for my english, i hope You understand */
/
   Here begin Sesilu modification for colspan
  */
var oDataSampleRow = oTable.tBodies[0].rows[0];

var rowIdx = []; //Remember the first column to 
analyze next time in each row of thead
for(var ri = 0; ri  oTable.tHead.rows.length; ri++) 
//Initialize rowIdx in 0 for each row in thead
  rowIdx[ri]=0;
   /**
  Recursively function to check down each cell with colspan 
in thead
  until cells without colspan.
  This function have two params:
row : index of row of thead to analize.
until : How much cells to see in that row.
  **/
   function chkCellColSpan(row, until) {
  var ret = [];
  var cells = oTable.tHead.rows[row].cells;
  until += rowIdx[row];
  for(var i=rowIdx[row]; i  until; i++) {
 if ( cells[i].colSpan   1 )
   ret = 
ret.concat(chkCellColSpan(row+cells[i].rowSpan, cells[i].colSpan));
 else
   ret.push(cells[i]);
 rowIdx[row] = i+1;
  }
  return(ret);
}

var oFirstTableRow = {};
oFirstTableRow.cells = chkCellColSpan(0, 
oTable.tHead.rows[0].cells.length);
  /
   Here end Sesilu modification for colspan
  */

/** store column length */
COLUMN_HEADER_LENGTH = oFirstTableRow.cells.length;

/** loop column headers */
for( var i=0; i  COLUMN_HEADER_LENGTH; i++ ) {
 ..
 ..
 ..
/code

Sorry for my english and my Javascript. I'am not very good with them.

Thank for your work,

Sesilu Nitram.

_
MSN Amor: busca tu ½ naranja http://latam.msn.com/amor/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] tableSorter bug colspan in tfoot

2006-12-27 Thread Rafael Santos

hey, i'd like to know if i'm doing something wrong. Check this:

table
thead
tr
 td1/td
 td2/td
/tr
/thead
tbody
tr
 td1/td
 td2/td
/tr
/tbody
tfoot
 tr
td colspan=2products found: #que.recordCount#/td
  /tr
/tfoot
/table

When i try to sort it, firebug tells me:

tbl.sorter.js (line 292) : o has no properties
 return o.innerHTML;

I realise that if i remove the colspan it works fine...
So i shouldnt this attribute?
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter bug colspan in tfoot

2006-12-27 Thread Yehuda Katz

I'm not sure if this will help, but you're supposed to use th, not td, in
tfoot.

-- Yehuda

On 12/27/06, Rafael Santos [EMAIL PROTECTED] wrote:


hey, i'd like to know if i'm doing something wrong. Check this:

table
thead
tr
  td1/td
  td2/td
/tr
/thead
tbody
tr
  td1/td
  td2/td
/tr
/tbody
tfoot
  tr
 td colspan=2products found: #que.recordCount#/td
   /tr
/tfoot
/table

When i try to sort it, firebug tells me:

tbl.sorter.js (line 292) : o has no properties
  return o.innerHTML;

I realise that if i remove the colspan it works fine...
So i shouldnt this attribute?




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/






--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter bug colspan in tfoot

2006-12-27 Thread Christian Bach
Hi,

Try upgrading to the latest version, this issue should be fixed.

The latest version is available here:
http://jquery.com/dev/svn/trunk/plugins/tablesorter/jquery.tablesorter.js?format=raw

/christian



Rafael Santos wrote:
 hey, i'd like to know if i'm doing something wrong. Check this:
 
 table
 thead
 tr
  td1/td
  td2/td
 /tr
 /thead
 tbody
 tr
  td1/td
  td2/td
 /tr
 /tbody
 tfoot
  tr
 td colspan=2products found: #que.recordCount#/td
   /tr
 /tfoot
 /table
 
 When i try to sort it, firebug tells me:
 
 tbl.sorter.js (line 292) : o has no properties
  return o.innerHTML;
 
 I realise that if i remove the colspan it works fine...
 So i shouldnt this attribute?
 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] tableSorter prevent a td to active the sorting

2006-12-27 Thread Rafael Santos

hey, How could I disable one or more td on the head when i click on it??
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter prevent a td to active the sorting

2006-12-27 Thread Yehuda Katz

What do you mean specifically? The most recent tablesorter includes a patch
I wrote that allows you to pass a jQuery object, DOM node, or DOM node array
to disableHeaders.

-- Yehuda

On 12/27/06, Rafael Santos [EMAIL PROTECTED] wrote:


hey, How could I disable one or more td on the head when i click on it??



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/






--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter prevent a td to active the sorting

2006-12-27 Thread Rafael Santos

totally wrong question ive made , sorry..

I was wondering how how could i set the parameter sortColumn for two or more
column, i have 4 columns the last one souldnt be sortable, u know... thx

2006/12/27, Yehuda Katz [EMAIL PROTECTED]:


What do you mean specifically? The most recent tablesorter includes a
patch I wrote that allows you to pass a jQuery object, DOM node, or DOM node
array to disableHeaders.

-- Yehuda

On 12/27/06, Rafael Santos [EMAIL PROTECTED] wrote:

 hey, How could I disable one or more td on the head when i click on
 it??



 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/





--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter prevent a td to active the sorting

2006-12-27 Thread Yehuda Katz

Like I said, use the disableHeader param. Pass it:
* A numerical index with the col #
* An id
* A DOM node
* A jQuery object containing DOM nodes
* An array containing DOM nodes

-- Yehuda

On 12/27/06, Rafael Santos [EMAIL PROTECTED] wrote:


totally wrong question ive made , sorry..

I was wondering how how could i set the parameter sortColumn for two or
more column, i have 4 columns the last one souldnt be sortable, u know...
thx

2006/12/27, Yehuda Katz [EMAIL PROTECTED]:

 What do you mean specifically? The most recent tablesorter includes a
 patch I wrote that allows you to pass a jQuery object, DOM node, or DOM node
 array to disableHeaders.

 -- Yehuda

 On 12/27/06, Rafael Santos [EMAIL PROTECTED] wrote:
 
  hey, How could I disable one or more td on the head when i click on
  it??
 
 
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 
 


 --
 Yehuda Katz
 Web Developer | Wycats Designs
 (ph)  718.877.1325
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/






--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tablesorter 1.1

2006-12-16 Thread Yehuda Katz

Good work guys. I've put in some solid work on tablesorter, specifically to
clean up bugs related to nested tables and issues with custom parsers. This
could rock.

-- Yehuda

On 12/15/06, Brice Burgess [EMAIL PROTECTED] wrote:


justin kelly wrote:

 cant wait for 1.1, jquery will have a proper datagrid (tablesorter +
 pager + filters = tablesorter1.1 :) )
Hey! + tableEditor too! :)

http://dev.iceburg.net/jquery/tableEditor/example_new.php

please note; the validation library (external) needs updating  I still
need to merge my deleteRow changes. I ought to setup a bug tracker to
organize development on this plugin...

~ Brice


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] tablesorter 1.1

2006-12-15 Thread justin kelly

Hi All,

anyone know how the progress of tablersorter1.1 is going, seems to be some
slight movement in the svn

cant wait for 1.1, jquery will have a proper datagrid (tablesorter + pager +
filters = tablesorter1.1 :) )

Cheers

Justin
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tablesorter 1.1

2006-12-15 Thread Brice Burgess
justin kelly wrote:

 cant wait for 1.1, jquery will have a proper datagrid (tablesorter + 
 pager + filters = tablesorter1.1 :) )
Hey! + tableEditor too! :)

http://dev.iceburg.net/jquery/tableEditor/example_new.php

please note; the validation library (external) needs updating  I still 
need to merge my deleteRow changes. I ought to setup a bug tracker to 
organize development on this plugin...

~ Brice


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] tablesorter probable bug

2006-12-04 Thread Andreas Wahlin
There seems to be a bug for the tablesorter plugin in IE6. When I  
assign a sortColumn (integer or string) I get a error message saying

'null' is null or not an object (translated from Swedish)

The offending line seems to be 173, IE6 seems to complain about the  
way the sorting gets fired.

Andreas

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter textExtractionCustom

2006-11-30 Thread Christian Bach
[EMAIL PROTECTED] wrote:
 thanks Mike, text or numeric value but I do not have it wrapped in a 
 span element and using this doesn't work:
 
 ..
 textExtractionCustom: {
 1: function(o) {
 return $('',o).val();
 },
 2: function(o) {
 return $('',o).val();
 }
 },

Hi!

Could you please send a sample of your table structure?

Regards
Christian

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter textExtractionCustom

2006-11-30 Thread Mike Alsup
 thanks Mike, text or numeric value but I do not have it wrapped in a
 span element and using this doesn't work:

 ..
 textExtractionCustom: {
 1: function(o) {
 return $('',o).val();
 },
 2: function(o) {
 return $('',o).val();
 }
 },

What is 'o' in this example?  Is it the TD element?  Have you tried:

return $(o).text();

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter textExtractionCustom

2006-11-29 Thread [EMAIL PROTECTED]
thanks Mike, text or numeric value but I do not have it wrapped in a 
span element and using this doesn't work:

..
textExtractionCustom: {
1: function(o) {
return $('',o).val();
},
2: function(o) {
return $('',o).val();
}
},
..



Mike Alsup wrote:
 How do I apply a regex function on that text?
 ..
 textExtractionCustom: {
 1: function(o) {
 return $('span',o).val();
 },
 2: function(o) {
 return $('span',o).val();
 }
 },
 

 Do you want the text of the element?

 $('span', o).text()

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


   

-- 
The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material.  Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited.  If you received this in error, please 
contact the sender and delete the material from any computer.



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] TableSorter textExtractionCustom

2006-11-28 Thread [EMAIL PROTECTED]
How do I apply the custom text extraction if I do not have the text 
wrapped in anything else than the regular td element?
How do I apply a regex function on that text?
..
textExtractionCustom: {
1: function(o) {
return $('span',o).val();
},
2: function(o) {
return $('span',o).val();
}
},
   ..

Also, if somebody (me included) couldn't figure out how to get the 
latest TableSorter from the SVN here's the link:
http://jquery.com/dev/svn/trunk/plugins/tablesorter/jquery.tablesorter.js?format=txt

Thanks.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter textExtractionCustom

2006-11-28 Thread Mike Alsup
 How do I apply a regex function on that text?
 ..
 textExtractionCustom: {
 1: function(o) {
 return $('span',o).val();
 },
 2: function(o) {
 return $('span',o).val();
 }
 },

Do you want the text of the element?

$('span', o).text()

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Tablesorter and pager

2006-11-27 Thread nsj

Just looking for some guidance / examples on using the excellent tablesorter
plugin but combined with pager. I've a number of large tables and really
need them to span multiple pages. I've seen the demo version at
http://motherrussia.polyester.se/pub/jquery/demos/pager/ but the code in
this doesn't work with the newer version of tablesorter.

Thanks 

N
-- 
View this message in context: 
http://www.nabble.com/Tablesorter-and-pager-tf2712251.html#a7561458
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter - reinitialise

2006-11-18 Thread Yehuda Katz

To the best of my knowledge, Christian added a resort method to the most
recent svn. An alternative is to do something like $(.sortUp,
.sortDown).click().click() but that's really ugly.

-- Yehuda

On 11/18/06, Barry Nauta [EMAIL PROTECTED] wrote:


Hi all,

I have a table with some editable fields in there. The table is sortable
using
the excellent tablesorting plugin foudn right here:
http://motherrussia.polyester.se/jquery-plugins/tablesorter

The only problem is that when I dynamically change a field in the table,
this
field is not taken into account for sorting. What I would like to do is
something like this (the example below doesn't work, obviously):

$(.sortableTable td).bind (change, function () {
   $(.sortableTable).reinitialize ();
   //alert (Change);
});

Anyone knows how to tell the table that the contents have changed?

Barry

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter - where has that guy gone...

2006-10-26 Thread SDisk SDisk
First, I think that it is cool, I used this plugin in my project and it is very simple, develop time ( in seconds) I like it :D.But only one thing, in header click you need return false if you don't want scroll up to the start of the page (normally click in a link with href="" scroll up the browser, this is fixed using some like a href=""  false;). 
I fixed table sorted returning false at the end of onClick event:jQuery(.sorter,oCell).click(function(e) {[]return false;}2006/10/26, Christian Bach 
[EMAIL PROTECTED]:Well what can i say? I'm late as usual...
Down to business, i finally got to spend some quality time together withmy trusting companion the tableSorter. I squashed the tfoot bug so it onlyindexes td elements inside the tbody element.And added a new parameter called bind.
The bind parameter is kind of cool (well at least i think so). What it doesis to allow you to set the alias on which event the tablesorter willtrigger a resort.To clarify here is some sample code:
$('#myTable').tableSorter(bind: 'resort');Ok, so the users has updated a table row or perhaps you have inserted someelement to the table, well this calls for a resort on the last sorted
column, right? Well all you have to do is call your binded event to makeit resort.$('#myTable').resort();Or if you prefer$('#myTable').trigger(resort);A demo is located here:
http://cbach.jquery.com/demo.htmlAnd the latest source code is now located in the jQuery svnunder plugins/tablesorter___
jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] tableSorter - where has that guy gone...

2006-10-25 Thread Christian Bach
Well what can i say? I'm late as usual...

Down to business, i finally got to spend some quality time together with 
my trusting companion the tableSorter. I squashed the tfoot bug so it only 
indexes td elements inside the tbody element.

And added a new parameter called bind.

The bind parameter is kind of cool (well at least i think so). What it does 
is to allow you to set the alias on which event the tablesorter will 
trigger a resort.

To clarify here is some sample code:

$('#myTable').tableSorter(
bind: 'resort'
);


Ok, so the users has updated a table row or perhaps you have inserted some 
element to the table, well this calls for a resort on the last sorted 
column, right? Well all you have to do is call your binded event to make 
it resort.

$('#myTable').resort();

Or if you prefer

$('#myTable').trigger(resort);


A demo is located here:
http://cbach.jquery.com/demo.html

And the latest source code is now located in the jQuery svn
under plugins/tablesorter


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter - where has that guy gone...

2006-10-25 Thread Brice Burgess


Christian Bach wrote:
 
 A demo is located here:
 http://cbach.jquery.com/demo.html
 

Christian,

  This is too cool. The ability to sort checkboxes  selects is far out
indeed -- and provides about all the utility we'll need in any
implementation of tableSorter. 

  I like the new bind event -- it's something that can trivially be
expanded. As you know, I'm in the midst of working on an in-place AJAX
editing of tableSorter tables. When a user finishes editing a row, I plan on
either a) changing the bind event to reset the cache ONLY (not do a table
resort UNTIL user clicks header) or [preferably] b) updating only that row's
data in the column INDEX.

  Obviously B] is more efficient, especially with large datasets. In
actuality I plan on extending the tableSorter object to provide the
functionality of either a or b from the above through a new bind() event
modelled after what you have already provided. If you have any thoughts, I'm
all ears.

  Thanks again,

~ Brice


-- 
View this message in context: 
http://www.nabble.com/tableSorter---where-has-that-guy-gone...-tf2510806.html#a7003394
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tablesorter

2006-10-19 Thread Christian Bach
Hi!

1. I could provied a kind of trigger for you, how about something like this.

Ex.

$(myTableWithTableSorter).trigger(resort);

2. Well it depends how your table is structured and how big it is. Please 
post a example.

/christian


Yehuda Katz wrote:
 I have a need to have the tablesorter do the following:
 
 1) Refresh when I need it to (I'm going to be doing DOM insertions, and 
 will
 need to refresh the table after an insertion). The best thing I could think
 of thus far is $(.sortUp, .sortDown).click().click(). Obviously not the
 best idea.
 2) Use custom sorters. I see that the table sorter SUPPORTS custom sorters
 and parsers, but I wasn't sure about the best way to do this.
 
 Christian? Anyone?
 
 
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tablesorter

2006-10-19 Thread Adrian Sweeney
-- errors
There are problems with your table sorter. 
Create a sortable table with  colspans and it will through lots of errors if
you fix those then it will work fine.

-- feature request
What I would really like is sorting tables grouped by tbody 

Ie each tbody would stay in the same place but the rows would sort inside
each tbody  except for tr's with class='tablesort-ignore'
If the r used the class='tablesort-up-down' then you could move the tbodys
up and down the table with (drag/drop) or (arrows pointing up and down).

Which would hold your tbody header information  

Example:
thead
tr
th ...
th ...
th ...
/tr
/thead
tbody
tr class=ignore
td colspan ='3' my first category/td
/tr
tr
td ...
td ...
td ...
/tr
/tbody
tbody
tr class=ignore
td colspan ='3' my second category/td
/tr
tr
td ...
td ...
td ...
/tr
/tbody
tbody
tr class=ignore
td colspan ='3' my ... category/td
/tr
tr
td ...
td ...
td ...
/tr
/tbody
Adrian Sweeney
Web Developer
Mills  Reeve
Tel: +44(0)121 456 8236
mailto:[EMAIL PROTECTED]
http://www.mills-reeve.com


-Original Message-
From: Christian Bach [mailto:[EMAIL PROTECTED] 
Sent: 19 October 2006 09:46
To: jQuery Discussion.
Subject: Re: [jQuery] Tablesorter


Hi!

1. I could provied a kind of trigger for you, how about something like this.

Ex.

$(myTableWithTableSorter).trigger(resort);

2. Well it depends how your table is structured and how big it is. Please 
post a example.

/christian


Yehuda Katz wrote:
 I have a need to have the tablesorter do the following:
 
 1) Refresh when I need it to (I'm going to be doing DOM insertions, 
 and
 will
 need to refresh the table after an insertion). The best thing I could
think
 of thus far is $(.sortUp, .sortDown).click().click(). Obviously not the
 best idea.
 2) Use custom sorters. I see that the table sorter SUPPORTS custom sorters
 and parsers, but I wasn't sure about the best way to do this.
 
 Christian? Anyone?
 
 
 --
 --
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


bBirmingham Law Society 'Law Firm of the Year' 2006/b


bMills  Reeve - one of The Sunday Times 100 Best Companies To Work For in 
2004, 2005 and 2006/b

This email is confidential and may be privileged.  If you are not the intended 
recipient please accept our apologies; please do not disclose, copy, or 
distribute information in this email nor take any action in reliance on its 
contents: to do so is strictly prohibited and may be unlawful. Please inform us 
that this message has gone astray before deleting it. Thank you for your 
co-operation.

Mills  Reeve Solicitors, offices at:

Birmingham: 78-84 Colmore Row, Birmingham, B3 2AB.
Cambridge:  Francis House, 112 Hills Road, Cambridge CB2 1PH. 
Norwich: 1 St James Court, Whitefriars, Norwich NR3 1RU.
London:  Fountain House, 130 Fenchurch Street, London, EC3M 5DJ.

Mills  Reeve is regulated by the Law Society.

A list of Partners may be inspected at any of the above addresses.

Visit our web site at: http://www.mills-reeve.com

This message has been checked for viruses by the Mills  Reeve screening system.

Service cannot be effected on us by e mail.



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tablesorter

2006-10-19 Thread Yehuda Katz
On 10/19/06, Christian Bach [EMAIL PROTECTED] wrote:
Hi!1. I could provied a kind of trigger for you, how about something like this.Ex.$(myTableWithTableSorter).trigger(resort);Are you saying you *could* provide this or that you already have?
2. Well it depends how your table is structured and how big it is. Pleasepost a example.
It's pretty complicated (and proprietary). I have no problem with Regex; I was just curious how the custom sorters worked. Do you need a custom parser for each sorter?
/christianYehuda Katz wrote: I have a need to have the tablesorter do the following: 1) Refresh when I need it to (I'm going to be doing DOM insertions, and will need to refresh the table after an insertion). The best thing I could think
 of thus far is $(.sortUp, .sortDown).click().click(). Obviously not the best idea. 2) Use custom sorters. I see that the table sorter SUPPORTS custom sorters and parsers, but I wasn't sure about the best way to do this.
 Christian? Anyone?  ___ jQuery mailing list
 discuss@jquery.com http://jquery.com/discuss/___jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/-- Yehuda KatzWeb Developer | Wycats Designs
(ph)718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tablesorter

2006-10-19 Thread Mark D. Lincoln








I have discovered a little problem that
others may have seen. We have pages in our Web portal that have empty
grids (tables) that are not populated until the user selects one or more values
from pick lists which enables us to request the target data from the database
server and populate the grid. Unfortunately, the table sorter raises an
exception if the table has no data rows. The exception is raised on line 66
of table sorter version 1.03, however, the real problem is that the variable on
line 58 for the first data row in null.





Mark D. Lincoln



Mark D. Lincoln, Director of Research
 Development

Eye On Solutions, LLC

(866) 253-9366x101

www.eyeonsolutions.com





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Yehuda Katz
Sent: Thursday, October 19, 2006
9:44 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Tablesorter







On 10/19/06, Christian Bach [EMAIL PROTECTED]
wrote:

Hi!

1. I could provied a kind of trigger for you, how about something like this.

Ex.

$(myTableWithTableSorter).trigger(resort);




Are you saying you *could* provide this or that you already have? 







2. Well it depends how your table is structured and
how big it is. Please
post a example. 






It's pretty complicated (and proprietary). I have no problem with Regex; I was
just curious how the custom sorters worked. Do you need a custom parser for
each sorter?







/christian


Yehuda Katz wrote:
 I have a need to have the tablesorter do the following:

 1) Refresh when I need it to (I'm going to be doing DOM insertions, and
 will
 need to refresh the table after an insertion). The best thing I could
think 
 of thus far is $(.sortUp, .sortDown).click().click().
Obviously not the
 best idea.
 2) Use custom sorters. I see that the table sorter SUPPORTS custom sorters
 and parsers, but I wasn't sure about the best way to do this. 

 Christian? Anyone?


 

 ___
 jQuery mailing list 
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list 
discuss@jquery.com
http://jquery.com/discuss/








-- 
Yehuda Katz
Web Developer | Wycats Designs 
(ph)718.877.1325 






___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Tablesorter

2006-10-18 Thread Yehuda Katz
I have a need to have the tablesorter do the following:1) Refresh when I need it to (I'm going to be doing DOM insertions, and will need to refresh the table after an insertion). The best thing I could think of thus far is $(.sortUp, .sortDown).click().click(). Obviously not the best idea.
2) Use custom sorters. I see that the table sorter SUPPORTS custom sorters and parsers, but I wasn't sure about the best way to do this.Christian? Anyone?-- Yehuda KatzWeb Developer | Wycats Designs
(ph)718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter question

2006-10-17 Thread Paul Bakaus
Alright, gonna try that, thank you!2006/10/16, Blair Mitchelmore [EMAIL PROTECTED]:
Well, I noticed that in some of the highlightFade instances youspecified and end parameter, and my plug-in doesn't know that you wantthat style removed afterwards because that could lead to a bumpy colourtransition. Add the final parameter set to an empty string and see if
the highlightFade problems go away.ie change$(td:gt(3),this.parentNode).highlightFade({start: 'green',end: '#D0FFDA'});to$(td:gt(3),this.parentNode).highlightFade({start: 'green',end: '#D0FFDA', final: ''});
-blairPaul Bakaus wrote: Hi there, I still don't know what plugin it causes..however, it's not too important, it's only a prototype. But if you want to look at it yourself:
 http://paul.jquery.com/plugins/demo_mk/ http://paul.jquery.com/plugins/demo_mk/
 Save it and uncomment this line: $(drag).children().removeClass(highlighted); then try to drag a row around and drop it into the table again. Now try the sorting, and you will see that the class doesn#t update again.
 Strange, huh? Paul 2006/10/13, Blair Mitchelmore [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
: I wrote highlightFade so that it would remove the styles it set after the fact except when necessary to keep them for some reason. Can you set up a simple test case of this error so I can see why it's happening?
 -blair Paul Bakaus wrote:  forget it, it was not a table sorter bug I had, but this was caused  because of the highlightFade plugin, which does not remove its
 inline  styles after fading. Doo :)  ___jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/-- Paul BakausWeb DeveloperHildastr. 35
79102 Freiburg
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter question

2006-10-17 Thread Christian Bach
This very cool!

Sorry for the late reply, i have been overrun by work lately.

/christian

Paul Bakaus wrote:
 Alright, gonna try that, thank you!
 
 2006/10/16, Blair Mitchelmore [EMAIL PROTECTED]:

 Well, I noticed that in some of the highlightFade instances you
 specified and end parameter, and my plug-in doesn't know that you want
 that style removed afterwards because that could lead to a bumpy colour
 transition. Add the final parameter set to an empty string and see if
 the highlightFade problems go away.

 ie change

 $(td:gt(3),this.parentNode).highlightFade({start: 'green',end:
 '#D0FFDA'});

 to

 $(td:gt(3),this.parentNode).highlightFade({start: 'green',end:
 '#D0FFDA', final: ''});

 -blair

 Paul Bakaus wrote:
  Hi there,
 
  I still don't know what plugin it causes..however, it's not too
  important, it's only a prototype. But if you want to look at it
 yourself:
 
  http://paul.jquery.com/plugins/demo_mk/
  http://paul.jquery.com/plugins/demo_mk/
 
  Save it and uncomment this line:
 
  $(drag).children().removeClass(highlighted);
 
  then try to drag a row around and drop it into the table again. Now
  try the sorting, and you will see that the class doesn#t update again.
  Strange, huh?
 
  Paul
 
  2006/10/13, Blair Mitchelmore [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]:
 
  I wrote highlightFade so that it would remove the styles it set
 after
  the fact except when necessary to keep them for some reason. Can
  you set
  up a simple test case of this error so I can see why it's 
 happening?
 
  -blair
 
  Paul Bakaus wrote:
   forget it, it was not a table sorter bug I had, but this was
 caused
   because of the highlightFade plugin, which does not remove its
  inline
   styles after fading. Doo :)
  
  
 
 


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/

 
 
 
 
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter question

2006-10-16 Thread Blair Mitchelmore
Well, I noticed that in some of the highlightFade instances you 
specified and end parameter, and my plug-in doesn't know that you want 
that style removed afterwards because that could lead to a bumpy colour 
transition. Add the final parameter set to an empty string and see if 
the highlightFade problems go away.

ie change

$(td:gt(3),this.parentNode).highlightFade({start: 'green',end: '#D0FFDA'});   

to

$(td:gt(3),this.parentNode).highlightFade({start: 'green',end: '#D0FFDA', 
final: ''});

-blair

Paul Bakaus wrote:
 Hi there,

 I still don't know what plugin it causes..however, it's not too 
 important, it's only a prototype. But if you want to look at it yourself:

 http://paul.jquery.com/plugins/demo_mk/ 
 http://paul.jquery.com/plugins/demo_mk/

 Save it and uncomment this line:

 $(drag).children().removeClass(highlighted);

 then try to drag a row around and drop it into the table again. Now 
 try the sorting, and you will see that the class doesn#t update again. 
 Strange, huh?

 Paul

 2006/10/13, Blair Mitchelmore [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]:

 I wrote highlightFade so that it would remove the styles it set after
 the fact except when necessary to keep them for some reason. Can
 you set
 up a simple test case of this error so I can see why it's happening?

 -blair

 Paul Bakaus wrote:
  forget it, it was not a table sorter bug I had, but this was caused
  because of the highlightFade plugin, which does not remove its
 inline
  styles after fading. Doo :)
 
 




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] tableSorter question

2006-10-13 Thread Paul Bakaus
Hi there,how do I refresh tableSorters instance? like a rebuild?In short my problem: I'm combining sortables with the tableSorter, and after the Sorting (Drag Drop), the highlightClass for this row is not updated anymore.
-- Paul BakausWeb DeveloperHildastr. 3579102 Freiburg
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter question

2006-10-13 Thread Paul Bakaus
forget it, it was not a table sorter bug I had, but this was caused because of the highlightFade plugin, which does not remove its inline styles after fading. Doo :)2006/10/13, Paul Bakaus 
[EMAIL PROTECTED]:Hi there,
how do I refresh tableSorters instance? like a rebuild?In short my problem: I'm combining sortables with the tableSorter, and after the Sorting (Drag Drop), the highlightClass for this row is not updated anymore.
-- Paul BakausWeb DeveloperHildastr. 3579102 Freiburg

-- Paul BakausWeb DeveloperHildastr. 3579102 Freiburg
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter Preview: Filtering.

2006-09-26 Thread Christian Bach
Jörn,

This is certainly a very interesting approach!

I will try to incorporate the ides into the release.

As for RegExp, the filters for text nodes do support standard RegExp syntax.

There will be support for a global RegExp driven search field
that will search the entire table structure.


Thanks for the feedback!

/christian

Jörn Zaefferer wrote:
 Christian Bach schrieb:
 Hi All!

 I have been working hard to get filtering into the next release of 
 TableSorter. So i have put up a rough demo of how it will work.

 The demo is located here: 
 http://motherrussia.polyester.se/pub/jquery/demos/filter/filter-demo.html

 In the full release filtering on dates will work and there will be an 
 option to apply text filtering on all columns, more of a search function 
 for tables.

 Feedback would be appreciated.
   
 Thats pretty cool stuff!
 
 I think this could very nicely work like this (maybe partly the same on 
 what you are planning already):
 Click on the filter icon for a column, a popup is displayed at the icon 
 with an input (with focus!), I enter something, hit enter key and watch 
 the result. Pressing escape removes the popup. By deleting what I 
 entered and pressing enter, I get the full result again. That way I can 
 apply more than one filter column. With one or more filters applied, 
 clicking on a column sorter then sorts the filtered table. The icon 
 changes for each column that has a filter active, that way I can find 
 and remove them.
 Though the range filter is nice, I want to be able to do a text search 
 on all columns, eg. all IDs containing 004. A simple grep/regex syntax 
 to search for start or end of strings would be nice, too.
 
 -- Jörn

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter Preview: Filtering.

2006-09-26 Thread Dan Atkinson

Hey!

This is great stuff!

It looks like IP address filtering is a bit weird though. It recognises the
IP as a range, but each octet is not seperated by a period (.).

Other than that, it's great!

Will the final have/(be able to have) paging included at all?

Cheers,

Dan


Christian Bach wrote:
 
 Hi All!
 
 I have been working hard to get filtering into the next release of 
 TableSorter. So i have put up a rough demo of how it will work.
 
 The demo is located here: 
 http://motherrussia.polyester.se/pub/jquery/demos/filter/filter-demo.html
 
 In the full release filtering on dates will work and there will be an 
 option to apply text filtering on all columns, more of a search function 
 for tables.
 
 Feedback would be appreciated.
 
 Best regards
 Christian Bach
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/TableSorter-Preview%3A-Filtering.-tf2333610.html#a6504956
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter Preview: Filtering.

2006-09-26 Thread Christian Bach
Hi again,

There was a small glitch in the last demo (Forgot to remove a log message, 
stupid!)

So if anyone else experienced that i got stock on the sorting message, please 
try again.

URL: http://motherrussia.polyester.se/pub/jquery/demos/filter/filter-demo.html

Best regards
Christian


Christian Bach wrote:
 Hi All!
 
 I have been working hard to get filtering into the next release of 
 TableSorter. So i have put up a rough demo of how it will work.
 
 The demo is located here: 
 http://motherrussia.polyester.se/pub/jquery/demos/filter/filter-demo.html
 
 In the full release filtering on dates will work and there will be an 
 option to apply text filtering on all columns, more of a search function 
 for tables.
 
 Feedback would be appreciated.
 
 Best regards
 Christian Bach
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter Preview: Filtering.

2006-09-26 Thread Christian Bach
Hi!

Yes, paging will be included in the 1.1 release as will a ton of documentation 
/ examples.

There are some issues with filtering, Dates don't work and ip-addresses are 
displayed wrong.

All the issues will be fixed in time to the release.

Best regards
Christian


Dan Atkinson wrote:
 Hey!
 
 This is great stuff!
 
 It looks like IP address filtering is a bit weird though. It recognises the
 IP as a range, but each octet is not seperated by a period (.).
 
 Other than that, it's great!
 
 Will the final have/(be able to have) paging included at all?
 
 Cheers,
 
 Dan
 
 
 Christian Bach wrote:
 Hi All!

 I have been working hard to get filtering into the next release of 
 TableSorter. So i have put up a rough demo of how it will work.

 The demo is located here: 
 http://motherrussia.polyester.se/pub/jquery/demos/filter/filter-demo.html

 In the full release filtering on dates will work and there will be an 
 option to apply text filtering on all columns, more of a search function 
 for tables.

 Feedback would be appreciated.

 Best regards
 Christian Bach

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter Preview: Filtering.

2006-09-26 Thread Jörn Zaefferer
Christian Bach schrieb:
 I can share a very geeky discovery which i run across earlier today:

 I was benchmarking some new sort methods for the plugin to see if i could
 out bid the default Array.sort method. It's seems that the built in sort
 method has a few speed enhancements up it's sleeves.

 Because not a single one out did the native sort method!
   
Heh, nice. It's good to know that you can rely on Array.sort being quick 
enough.

-- Jörn

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] TableSorter Preview: Filtering.

2006-09-25 Thread Christian Bach
Hi All!

I have been working hard to get filtering into the next release of 
TableSorter. So i have put up a rough demo of how it will work.

The demo is located here: 
http://motherrussia.polyester.se/pub/jquery/demos/filter/filter-demo.html

In the full release filtering on dates will work and there will be an 
option to apply text filtering on all columns, more of a search function 
for tables.

Feedback would be appreciated.

Best regards
Christian Bach

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter Preview: Filtering.

2006-09-25 Thread Jörn Zaefferer
Christian Bach schrieb:
 Hi All!

 I have been working hard to get filtering into the next release of 
 TableSorter. So i have put up a rough demo of how it will work.

 The demo is located here: 
 http://motherrussia.polyester.se/pub/jquery/demos/filter/filter-demo.html

 In the full release filtering on dates will work and there will be an 
 option to apply text filtering on all columns, more of a search function 
 for tables.

 Feedback would be appreciated.
   
Thats pretty cool stuff!

I think this could very nicely work like this (maybe partly the same on 
what you are planning already):
Click on the filter icon for a column, a popup is displayed at the icon 
with an input (with focus!), I enter something, hit enter key and watch 
the result. Pressing escape removes the popup. By deleting what I 
entered and pressing enter, I get the full result again. That way I can 
apply more than one filter column. With one or more filters applied, 
clicking on a column sorter then sorts the filtered table. The icon 
changes for each column that has a filter active, that way I can find 
and remove them.
Though the range filter is nice, I want to be able to do a text search 
on all columns, eg. all IDs containing 004. A simple grep/regex syntax 
to search for start or end of strings would be nice, too.

-- Jörn

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter feedback requested!

2006-09-04 Thread Sam Collett
One thing I have noticed is that it does not work when you have a table footer set:table id=simple-init-sort thead  tr   thName/th
   thAge/th   thTotal purchase/th   thEmail/th   thDate/th  /tr /thead
 tbody  tr   tdPeter/td   td28/td   td$9.99/td   td
[EMAIL PROTECTED]/td   tdJul 6, 2006 8:14 AM/td  /tr  tr   tdJohn/td   td32/td
   td$19.99/td   td[EMAIL PROTECTED]/td   tdDec 10, 2002 5:14 AM/td  /tr
  tr   tdClark/td   td18/td   td$15.89/td   td[EMAIL PROTECTED]
/td   tdJan 12, 2003 11:14 AM/td  /tr /tbody tfoot  tr   td colspan=53 Records found/td
  /tr /tfoot/tableHowever, if you alter the 'flatten' function, it works:flatten: function(columnData,columnCache,columnIndex) {   var flatData = [];
   var l = columnData.length;   for (var i=0;i  l; i++) {// make sure only cells in tbody are addedif(columnData[i].parentNode.nodeName.toLowerCase() == tbody) {
 flatData.push([i,columnCache[columnIndex].format($.tableSorter.utils.getElementText(columnData[i].cells[columnIndex]))]);}   }   return flatData;  }
On 30/08/06, Christian Bach [EMAIL PROTECTED] wrote:
Hi All,I'm currently working on the 1.1 release of tableSorter.I would love to here your request for new features, improvements andthoughts to make this little plugin even better!Here's my current list of features and improvements that will be in 
1.1:* A real user manual, with more examples and all parameters documented.* Make parameter names more logical.* Provide api documentation.* Commit the tableSorter in to the jQuery svn with manual and api.
* Add function for highlighting current selected row.* Provide a excel theme using css.* Add support for row numbering.* Add filter support.* Add John's pager plugin, and provide examples.
* Add support for custom icons (adding images to headers).* Add more parsers (UK long date).* Add support for HTML elements in td cells (Get values from any childelement)Thanks to everyone for all the support, cheers and comments!
/christian
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter feedback requested!

2006-08-31 Thread Todd Menier
Thanks for pointing that out, I did look at it when it came out but sort of forgot about it. I initially dismissed it because seemed like it had too many bells and whistles and was much too slow, but that cetainly could be a server issue and not a problem with the plugin. I'll give it another look and see if it's something that can be scaled down a bit to meet my needs.
Thanks!ToddOn 8/31/06, Jörn Zaefferer [EMAIL PROTECTED] wrote:
 A great example of what I'm trying to acheive is the Rico LiveGrid: http://openrico.org/rico/livegrid.page. Very slick demo, but clunky to implement. I'd much prefer a jQuery pluin (or 2).
You should take a look at Stefan Petres Live Grid Demo(!): http://interface.eyecon.ro/demos/grid.htmlSee his post for details: 
http://jquery.com/discuss/2006-August/009898/-- Jörn--Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!Ideal für Modem und ISDN: 
http://www.gmx.net/de/go/smartsurfer___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] tableSorter feedback requested!

2006-08-30 Thread Christian Bach
Hi All,

I'm currently working on the 1.1 release of tableSorter.

I would love to here your request for new features, improvements and 
thoughts to make this little plugin even better!


Here's my current list of features and improvements that will be in 1.1:
* A real user manual, with more examples and all parameters documented.
* Make parameter names more logical.
* Provide api documentation.
* Commit the tableSorter in to the jQuery svn with manual and api.
* Add function for highlighting current selected row.
* Provide a excel theme using css.
* Add support for row numbering.
* Add filter support.
* Add John's pager plugin, and provide examples.
* Add support for custom icons (adding images to headers).
* Add more parsers (UK long date).
* Add support for HTML elements in td cells (Get values from any child 
element)

Thanks to everyone for all the support, cheers and comments!

/christian











___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter feedback requested!

2006-08-30 Thread Christian Bach
Hi,

The way it's currently implemented is to just check the first row in the 
tbody. There is however a way to specify your own parser, using column 
index and the parser id string.

Ex.

$('.aTable').tableSorter({
columnParser: [[0,'time'],[2,'shortDate']];
}

This will be fully documented in the user manual.

/christian


Mohsen Saboorian wrote:
 Hi Christian,
 Just a question.
 How do you decide for a column type? I'd seen that you have some
 analyzers, but don't know if you analyze every cell of a row, or only
 the first one, or ...?
 
 On 8/30/06, Christian Bach [EMAIL PROTECTED] wrote:
 Hi All,

 I'm currently working on the 1.1 release of tableSorter.

 I would love to here your request for new features, improvements and
 thoughts to make this little plugin even better!


 Here's my current list of features and improvements that will be in 1.1:
 * A real user manual, with more examples and all parameters documented.
 * Make parameter names more logical.
 * Provide api documentation.
 * Commit the tableSorter in to the jQuery svn with manual and api.
 * Add function for highlighting current selected row.
 * Provide a excel theme using css.
 * Add support for row numbering.
 * Add filter support.
 * Add John's pager plugin, and provide examples.
 * Add support for custom icons (adding images to headers).
 * Add more parsers (UK long date).
 * Add support for HTML elements in td cells (Get values from any child
 element)

 Thanks to everyone for all the support, cheers and comments!

 /christian











 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/

 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter feedback requested!

2006-08-30 Thread Morbus Iff
 I would love to here your request for new features, improvements and 
 thoughts to make this little plugin even better!

You've heard this one from me via email:

  * Secondary sort (ie., user clicks on one column, it primary
sorts by that one, then secondary sorts by another named column).

-- 
Morbus Iff ( HOW DO I DELIT TEH TREE [EMAIL PROTECTED] )
Technical: http://www.oreillynet.com/pub/au/779
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter feedback requested!

2006-08-30 Thread Justin Kelly
Hi Christain,can't wait for 1.1!!re filters,i'd love to be able to define different types of filters, so some row filters can be text boxes and some can be drop down lists etc..Xlsheet has some good ideas on filters (unfortunately if IE only)
http://xlsheet.sourceforge.net/Adjustable column widths (http://makoomba.altervista.org/grid/) would also be a great enhancement
keep up the great workCheersJustinOn 8/30/06, Christian Bach
 [EMAIL PROTECTED] wrote:
Hi All,I'm currently working on the 1.1 release of tableSorter.I would love to here your request for new features, improvements andthoughts to make this little plugin even better!Here's my current list of features and improvements that will be in 
1.1:* A real user manual, with more examples and all parameters documented.* Make parameter names more logical.* Provide api documentation.* Commit the tableSorter in to the jQuery svn with manual and api.
* Add function for highlighting current selected row.* Provide a excel theme using css.* Add support for row numbering.* Add filter support.* Add John's pager plugin, and provide examples.
* Add support for custom icons (adding images to headers).* Add more parsers (UK long date).* Add support for HTML elements in td cells (Get values from any childelement)Thanks to everyone for all the support, cheers and comments!
/christian___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter feedback requested!

2006-08-30 Thread Christian Bach
I was thinking that the diffent parser would be in charge for choosing 
the appropriate filter type.

Ex.
$.tableSorter.filters.date = {
// add logic and markup for filter type date
}

$.tableSorter.parsers.shortDate = {
id: 'shortDate',
// assign a filter class
filter: $.tableSorter.filters.date,
is: function(s) {
return s.match(/^\d{1,2}[/-]\d{1,2}[/-]\d{4}$/);
},
format: function(s) {
s = s.replace(/-/g,'/');
var defaults = $.tableSorter.utils.getParams();
if(defaults.dateFormat == mm/dd/ || defaults.dateFormat 
== 
mm-dd-) {
/** reformat the string in ISO format */
s = s.replace(/(\d{1,2})[/-](\d{1,2})[/-](\d{4})/, 
'$3/$1/$2');
} else if(defaults.dateFormat == dd/mm/ || 
defaults.dateFormat 
== dd-mm-) {
/** reformat the string in ISO format */
s = s.replace(/(\d{1,2})[/-](\d{1,2})[/-](\d{4})/, 
'$3/$2/$1');
}
return parseFloat((new Date(s)).getTime());
},
sorter: $.tableSorter.sorters.numeric
};

/christian

Justin Kelly wrote:
 Hi Christain,
 
 can't wait for 1.1!!
 
 re filters,
 
 i'd love to be able to define different types of filters, so some row
 filters can be text boxes and some can be drop down lists etc..
 
 Xlsheet has some good ideas on filters (unfortunately if IE only)
 http://xlsheet.sourceforge.net/
 
 Adjustable column widths (http://makoomba.altervista.org/grid/) would also
 be a great enhancement
 
 keep up the great work
 
 Cheers
 
 Justin
 
 On 8/30/06, Christian Bach [EMAIL PROTECTED] wrote:

 Hi All,

 I'm currently working on the 1.1 release of tableSorter.

 I would love to here your request for new features, improvements and
 thoughts to make this little plugin even better!


 Here's my current list of features and improvements that will be in 1.1:
 * A real user manual, with more examples and all parameters documented.
 * Make parameter names more logical.
 * Provide api documentation.
 * Commit the tableSorter in to the jQuery svn with manual and api.
 * Add function for highlighting current selected row.
 * Provide a excel theme using css.
 * Add support for row numbering.
 * Add filter support.
 * Add John's pager plugin, and provide examples.
 * Add support for custom icons (adding images to headers).
 * Add more parsers (UK long date).
 * Add support for HTML elements in td cells (Get values from any child
 element)

 Thanks to everyone for all the support, cheers and comments!

 /christian











 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/

 
 
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter feedback requested!

2006-08-30 Thread Justin Kelly
christian,that sounds pretty goodwould be nice if it could be: if you define a row as X type filter(the use that filter) and if its not defined use the tablesorter parser default### ie. if tr class set to 'filter_drop_down'
-- then use drop down filterelse no filter explicity set so use tablesorter parser default#thanks againjustinOn 8/30/06, 
Christian Bach [EMAIL PROTECTED] wrote:
I was thinking that the diffent parser would be in charge for choosingthe appropriate filter type.Ex.$.tableSorter.filters.date = {// add logic and markup for filter type date}$.tableSorter.parsers.shortDate = {
id: 'shortDate',// assign a filter classfilter: $.tableSorter.filters.date,is: function(s) {return s.match(/^\d{1,2}[/-]\d{1,2}[/-]\d{4}$/);},
format: function(s) {s = s.replace(/-/g,'/');var defaults = $.tableSorter.utils.getParams();if(defaults.dateFormat == mm/dd/ || defaults.dateFormat
 ==mm-dd-) {/** reformat the string in ISO format */s = s.replace(/(\d{1,2})[/-](\d{1,2})[/-](\d{4})/, '$3/$1/$2');} else if(
defaults.dateFormat == dd/mm/ || defaults.dateFormat== dd-mm-) {/** reformat the string in ISO format */s = s.replace(/(\d{1,2})[/-](\d{1,2})[/-](\d{4})/, '$3/$2/$1');
}return parseFloat((new Date(s)).getTime());},sorter: $.tableSorter.sorters.numeric};/christianJustin Kelly wrote: Hi Christain,
 can't wait for 1.1!! re filters, i'd love to be able to define different types of filters, so some row filters can be text boxes and some can be drop down lists etc..
 Xlsheet has some good ideas on filters (unfortunately if IE only) http://xlsheet.sourceforge.net/ Adjustable column widths (
http://makoomba.altervista.org/grid/) would also be a great enhancement keep up the great work Cheers Justin On 8/30/06, Christian Bach 
[EMAIL PROTECTED] wrote: Hi All, I'm currently working on the 1.1 release of tableSorter. I would love to here your request for new features, improvements and
 thoughts to make this little plugin even better! Here's my current list of features and improvements that will be in 1.1: * A real user manual, with more examples and all parameters documented.
 * Make parameter names more logical. * Provide api documentation. * Commit the tableSorter in to the jQuery svn with manual and api. * Add function for highlighting current selected row.
 * Provide a excel theme using css. * Add support for row numbering. * Add filter support. * Add John's pager plugin, and provide examples. * Add support for custom icons (adding images to headers).
 * Add more parsers (UK long date). * Add support for HTML elements in td cells (Get values from any child element) Thanks to everyone for all the support, cheers and comments!
 /christian ___
 jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ 
 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
-- email: [EMAIL PROTECTED]Mob.: 0402 667 075jabber: [EMAIL PROTECTED]
gtalk: [EMAIL PROTECTED]msn: [EMAIL PROTECTED]yahoo im: justinjameskellyicq: 202893989
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] tableSorter feedback requested!

2006-08-30 Thread Matt Stith
Or even better than that, would be secondary sort when the user holds Shift or Control.On 8/30/06, Morbus Iff [EMAIL PROTECTED]
 wrote: I would love to here your request for new features, improvements and
 thoughts to make this little plugin even better!You've heard this one from me via email:* Secondary sort (ie., user clicks on one column, it primarysorts by that one, then secondary sorts by another named column).
--Morbus Iff ( HOW DO I DELIT TEH TREE [EMAIL PROTECTED] )Technical: http://www.oreillynet.com/pub/au/779Culture: http://www.disobey.com/
 and http://www.gamegrene.com/icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus___
jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] TableSorter 1.0.3 plugin for jQuery released

2006-08-21 Thread Christian Bach
ChangeLog
--
* Renamed tablesorter.js  jquery.tablesorter.js
* Bugfix: Now possible to have to instaces of tableSorter with diffrent 
defaults.
* Bugfix: sortColumn would not work with value 0.
* Added: Support for John's soon to be released pager plugin.
* Added: Support for US long date with format: Jul 6, 2006 8:14 AM
* Added: New parameter columnParser. See: example/columnparser.html
* Added: New parameter minRowsForWaitingMsg. See: example/minrows.html
* Added: Support for building tableSorter with Ant. See the ANT-README file.
* Added: Small documentation (docs/index.html)

Examples and downloads can be found here:
http://motherrussia.polyester.se/jquery-plugins/tablesorter/

Enjoy!
/christian

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter 1.0.3 plugin for jQuery released

2006-08-21 Thread Dan Atkinson

Hey!

Great stuff Christian!

I'm having a problem looking at your examples.

It's telling me that $ is not defined. I'm not sure if you've put the js
file in the right place or not, but this happens in all my browsers.

Cheers


Christian Bach wrote:
 
 ChangeLog
 --
 * Renamed tablesorter.js  jquery.tablesorter.js
 * Bugfix: Now possible to have to instaces of tableSorter with diffrent 
 defaults.
 * Bugfix: sortColumn would not work with value 0.
 * Added: Support for John's soon to be released pager plugin.
 * Added: Support for US long date with format: Jul 6, 2006 8:14 AM
 * Added: New parameter columnParser. See: example/columnparser.html
 * Added: New parameter minRowsForWaitingMsg. See: example/minrows.html
 * Added: Support for building tableSorter with Ant. See the ANT-README
 file.
 * Added: Small documentation (docs/index.html)
 
 Examples and downloads can be found here:
 http://motherrussia.polyester.se/jquery-plugins/tablesorter/
 
 Enjoy!
 /christian
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/TableSorter-1.0.3-plugin-for-jQuery-released-tf2140872.html#a5909037
Sent from the JQuery forum at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter 1.0.3 plugin for jQuery released

2006-08-21 Thread Sam Collett
On 21/08/06, Christian Bach [EMAIL PROTECTED] wrote:
 ChangeLog
 --
 * Renamed tablesorter.js  jquery.tablesorter.js
 * Bugfix: Now possible to have to instaces of tableSorter with diffrent
 defaults.
 * Bugfix: sortColumn would not work with value 0.
 * Added: Support for John's soon to be released pager plugin.
 * Added: Support for US long date with format: Jul 6, 2006 8:14 AM
 * Added: New parameter columnParser. See: example/columnparser.html
 * Added: New parameter minRowsForWaitingMsg. See: example/minrows.html
 * Added: Support for building tableSorter with Ant. See the ANT-README file.
 * Added: Small documentation (docs/index.html)

 Examples and downloads can be found here:
 http://motherrussia.polyester.se/jquery-plugins/tablesorter/

 Enjoy!
 /christian


It just keeps getting better with each release...

Perhaps you could add GMT/UTC as well:

Regular Expression =
[A-Za-z]{3},\s[0-3]?[0-9]\s[A-Za-z]{3}\s[0-9]{4}\s[0-1]?[0-9]:[0-5][0-9]:[0-9]?[0-9]\sGMT

Will match
Mon, 21 Aug 2006 15:54:16 GMT

Does anyone know of any sites that list the types of dates the
JavaScript Date object accepts?

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter 1.0.3 plugin for jQuery released

2006-08-21 Thread Christian Bach
Sorry,

I moved around the examples before the release and forgot to change the 
script-path.

The examples should be working now :)

/christian

Dan Atkinson wrote:
 Hey!
 
 Great stuff Christian!
 
 I'm having a problem looking at your examples.
 
 It's telling me that $ is not defined. I'm not sure if you've put the js
 file in the right place or not, but this happens in all my browsers.
 
 Cheers

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter 1.0.3 plugin for jQuery released

2006-08-21 Thread Dan Atkinson

The only stuff I know about is from w3schools:
http://www.w3schools.com/jsref/jsref_obj_date.asp


Sam Collett wrote:
 
 On 21/08/06, Christian Bach [EMAIL PROTECTED] wrote:
 ChangeLog
 --
 * Renamed tablesorter.js  jquery.tablesorter.js
 * Bugfix: Now possible to have to instaces of tableSorter with diffrent
 defaults.
 * Bugfix: sortColumn would not work with value 0.
 * Added: Support for John's soon to be released pager plugin.
 * Added: Support for US long date with format: Jul 6, 2006 8:14 AM
 * Added: New parameter columnParser. See: example/columnparser.html
 * Added: New parameter minRowsForWaitingMsg. See: example/minrows.html
 * Added: Support for building tableSorter with Ant. See the ANT-README
 file.
 * Added: Small documentation (docs/index.html)

 Examples and downloads can be found here:
 http://motherrussia.polyester.se/jquery-plugins/tablesorter/

 Enjoy!
 /christian

 
 It just keeps getting better with each release...
 
 Perhaps you could add GMT/UTC as well:
 
 Regular Expression =
 [A-Za-z]{3},\s[0-3]?[0-9]\s[A-Za-z]{3}\s[0-9]{4}\s[0-1]?[0-9]:[0-5][0-9]:[0-9]?[0-9]\sGMT
 
 Will match
 Mon, 21 Aug 2006 15:54:16 GMT
 
 Does anyone know of any sites that list the types of dates the
 JavaScript Date object accepts?
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/TableSorter-1.0.3-plugin-for-jQuery-released-tf2140872.html#a5909972
Sent from the JQuery forum at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] TableSorter 1.0.3 plugin for jQuery released

2006-08-21 Thread Christian Bach
Sam Collett wrote:
 It just keeps getting better with each release...
Thanks!

 
 Perhaps you could add GMT/UTC as well:
 
 Regular Expression =
 [A-Za-z]{3},\s[0-3]?[0-9]\s[A-Za-z]{3}\s[0-9]{4}\s[0-1]?[0-9]:[0-5][0-9]:[0-9]?[0-9]\sGMT
 
 Will match
 Mon, 21 Aug 2006 15:54:16 GMT

Sure thing, will be adding it shortly.

 Does anyone know of any sites that list the types of dates the
 JavaScript Date object accepts?

This page has a lot of information regarding dates in javascript:
http://www.merlyn.demon.co.uk/js-dates.htm

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/