[jQuery] Re: TableSorter plugin - default column sort DESC instead? How?

2009-08-31 Thread Crazy Serb

Nobody has a clue?

On Aug 27, 8:03 pm, Serb  wrote:
> Right, but that's for the default on-page-load sort, so to speak...
> I'm talking about all the other on-demand, on-header-click sorts -
> they all default to ascending for some reason...
>
> On Aug 27, 7:12 pm, marksimon  wrote:
>
> > $(document).ready(function() {
> >      $(".tablesorter").tablesorter({
> >          sortList: [[0,1]], widthFixed: true, widgets: ['zebra']});});
>
> > the sortList parameter takes two arguments: column, and direction. So
> > sorting 0,1 sorts on the first column descending. 1,0 would be second
> > column descending. That's on the page so I'm not sure it's exactly
> > what your looking for (default?)
>
> > On Aug 27, 12:47 pm, Crazy Serb  wrote:
>
> > > Ok, I can't figure this out...
>
> > > The default sort (when clicking on any of the headers in the
> > > tablesorter table) is ascending.
>
> > > Now, I want to change that to descending for ALL columns, not just the
> > > initial sort column (defined in sortList). I've tried editing
> > > sortInitialOrder parameter in the .js itself, and nothing. I've tried
> > > adding it as a parameter in my html page when defining and assigning
> > > tablesorter, and nothing.
>
> > > What am I missing? And how do I accomplish this?
>
>


[jQuery] Re: TableSorter plugin - default column sort DESC instead? How?

2009-08-27 Thread marksimon

$(document).ready(function() {
 $(".tablesorter").tablesorter({
 sortList: [[0,1]], widthFixed: true, widgets: ['zebra']});
});
the sortList parameter takes two arguments: column, and direction. So
sorting 0,1 sorts on the first column descending. 1,0 would be second
column descending. That's on the page so I'm not sure it's exactly
what your looking for (default?)

On Aug 27, 12:47 pm, Crazy Serb  wrote:
> Ok, I can't figure this out...
>
> The default sort (when clicking on any of the headers in the
> tablesorter table) is ascending.
>
> Now, I want to change that to descending for ALL columns, not just the
> initial sort column (defined in sortList). I've tried editing
> sortInitialOrder parameter in the .js itself, and nothing. I've tried
> adding it as a parameter in my html page when defining and assigning
> tablesorter, and nothing.
>
> What am I missing? And how do I accomplish this?


[jQuery] Re: TableSorter plugin - default column sort DESC instead? How?

2009-08-27 Thread Serb

Right, but that's for the default on-page-load sort, so to speak...
I'm talking about all the other on-demand, on-header-click sorts -
they all default to ascending for some reason...

On Aug 27, 7:12 pm, marksimon  wrote:
> $(document).ready(function() {
>      $(".tablesorter").tablesorter({
>          sortList: [[0,1]], widthFixed: true, widgets: ['zebra']});});
>
> the sortList parameter takes two arguments: column, and direction. So
> sorting 0,1 sorts on the first column descending. 1,0 would be second
> column descending. That's on the page so I'm not sure it's exactly
> what your looking for (default?)
>
> On Aug 27, 12:47 pm, Crazy Serb  wrote:
>
> > Ok, I can't figure this out...
>
> > The default sort (when clicking on any of the headers in the
> > tablesorter table) is ascending.
>
> > Now, I want to change that to descending for ALL columns, not just the
> > initial sort column (defined in sortList). I've tried editing
> > sortInitialOrder parameter in the .js itself, and nothing. I've tried
> > adding it as a parameter in my html page when defining and assigning
> > tablesorter, and nothing.
>
> > What am I missing? And how do I accomplish this?


[jQuery] Re: Tablesorter plugin - grouping rows and sorting per group?

2009-08-07 Thread Crazy Serb

Don't be so sure now... I'm still a rookie when it comes to jQuery.

After playing with the code a bit, I realized I can't even logically
fathom how to go about making this work for multiple tables/classes,
thus I've got what you can call a writer's block when it comes to
putting it into code - I can't see it visually to start off with...

What's funny enough (and a bit frustrating too) is that if I have
multiple tables with "tablesorter" and "multiple" class assigned to
them show up on the page in different tabs (if I plug in the tabbed
viewing of sorts), if any of these tables have different number of
columns and some of those are defined inline as non-sortable (just
added a class {sorter: false} as per instructions in tablesorter
docs), that limitation seems to apply to all tables with tablesorter
class across the board, and when I try to multi-sort on say column 2
on tables 2 & 3 (bound together with the code above), if table 1 had
sorter:false on that column, table 3 doesn't get sorted on that column
either - only the original table 2 does.

Something I need to work around, or maybe, possibly declare different
classes for each table and apply tablesorter() on them individually...
maybe.

On Aug 5, 5:18 pm, aquaone  wrote:
> I'm sure you can look at the code and find a way to get it working in the
> general case. What's there was just kinda a quick and dirty hack I wrote for
> another guy a while ago. I'll leave it as an exercise for the reader though.
> ;-)
>
> aquaone
>
>
>
> On Wed, Aug 5, 2009 at 14:16, Crazy Serb  wrote:
>
> > A-ha!
>
> > That's pretty much what I'd need...
>
> > Now, is there any slick way of repeating that over and over for
> > different tables (with class names of "multisort1", "multisort2", etc)
> > in case I have a few of these multi-sort tables on the same page and
> > need to keep them separate?
>
> > Or would I pretty much have to rewrite that logic and change the class
> > name(s) to the new table's class name every time?
>
> > Just out of curiosity...
>
> > Thanks again!
>
> > On Aug 4, 5:02 pm, aquaone  wrote:
> > > Tablesorter doesn't support that. You could do it as separate tables with
> > no
> > > gaps between them... but that's as close as you'll get. If you need
> > linked
> > > sorting, e.g. clicking the header of one table sorts all tables, you'll
> > need
> > > something like this:
>
> > > 
> > > $(document).ready( function(){
> > >   $("table.tablesorter").tablesorter();
> > >   var $multisort = $("table.multisort");
> > >   $multisort.addClass( "multisort_unsorted" );
> > >   $multisort.bind( "sortStart", function(){
> > >     $(this).removeClass( "multisort_unsorted" );
> > >     });
> > >   $multisort.filter( ".multisort_unsorted" ).bind( "sortEnd", function(){
> > >     var sortOrder = [ this.config.sortList ]; // get sort order
> > >     $multisort.filter( ".multisort_unsorted" ).removeClass(
> > > "multisort_unsorted" ).trigger( "sorton", sortOrder );
> > >     setTimeout( function(){ $multisort.addClass( "multisort_unsortedd" );
> > },
> > > 0 ); // avoid retriggering
> > >     });
> > >   });
> > > 
> > > 
> > > 
> > > 
> > >   
> > >     
> > >       col 1
> > >       col 2
> > >       col 3
> > >     
> > >   
> > >   
> > >     
> > >       1
> > >       10
> > >       beef
> > >     
> > >     
> > >       1
> > >       6
> > >       sausage
> > >     
> > >     
> > >       -3
> > >       12
> > >       ham
> > >     
> > >     
> > >       -3
> > >       6
> > >       beef
> > >     
> > >     
> > >       4
> > >       7
> > >       pork
> > >     
> > >     
> > >       4
> > >       7
> > >       beef
> > >     
> > >   
> > > 
> > > 
> > >   
> > >     
> > >       col 1
> > >       col 2
> > >       col 3
> > >     
> > >   
> > >   
> > >     
> > >       11
> > >       4
> > >       pork
> > >     
> > >     
> > >       12
> > >       3
> > >       ham
> > >     
> > >     
> > >       10
> > >       1
> > >       sausage
> > >     
> > >     
> > >       4
> > >       7
> > >       pork
> > >     
> > >   
> > > 
> > > 
> > >   
> > >     
> > >       col 1
> > >       col 2
> > >       col 3
> > >     
> > >   
> > >   
> > >     
> > >       7
> > >       -2
> > >       turkey
> > >     
> > >     
> > >       4
> > >       7
> > >       pork
> > >     
> > >     
> > >       20
> > >       -10
> > >       beef
> > >     
> > >     
> > >       17
> > >       6
> > >       fish
> > >     
> > >   
> > > 
>
> > > On Tue, Aug 4, 2009 at 11:57, Crazy Serb  wrote:
>
> > > > In using Tablesorter plugin, I have run into an challenging issue.
>
> > > > What I am looking to do is group certain rows in a single table into
> > > > two different groups, have a blank row between them and be able to
> > > > sort based on columns that apply to both groups of rows but without
> > > > the rows from one group actually mixing with the rows from another
> > > > group.
>
> > > > So, basically, I want to have a table like this:
>
> > > > TABLE:
> > > > Gr

[jQuery] Re: Tablesorter plugin - grouping rows and sorting per group?

2009-08-05 Thread aquaone
I'm sure you can look at the code and find a way to get it working in the
general case. What's there was just kinda a quick and dirty hack I wrote for
another guy a while ago. I'll leave it as an exercise for the reader though.
;-)

aquaone


On Wed, Aug 5, 2009 at 14:16, Crazy Serb  wrote:

>
> A-ha!
>
> That's pretty much what I'd need...
>
> Now, is there any slick way of repeating that over and over for
> different tables (with class names of "multisort1", "multisort2", etc)
> in case I have a few of these multi-sort tables on the same page and
> need to keep them separate?
>
> Or would I pretty much have to rewrite that logic and change the class
> name(s) to the new table's class name every time?
>
> Just out of curiosity...
>
> Thanks again!
>
> On Aug 4, 5:02 pm, aquaone  wrote:
> > Tablesorter doesn't support that. You could do it as separate tables with
> no
> > gaps between them... but that's as close as you'll get. If you need
> linked
> > sorting, e.g. clicking the header of one table sorts all tables, you'll
> need
> > something like this:
> >
> > 
> > $(document).ready( function(){
> >   $("table.tablesorter").tablesorter();
> >   var $multisort = $("table.multisort");
> >   $multisort.addClass( "multisort_unsorted" );
> >   $multisort.bind( "sortStart", function(){
> > $(this).removeClass( "multisort_unsorted" );
> > });
> >   $multisort.filter( ".multisort_unsorted" ).bind( "sortEnd", function(){
> > var sortOrder = [ this.config.sortList ]; // get sort order
> > $multisort.filter( ".multisort_unsorted" ).removeClass(
> > "multisort_unsorted" ).trigger( "sorton", sortOrder );
> > setTimeout( function(){ $multisort.addClass( "multisort_unsortedd" );
> },
> > 0 ); // avoid retriggering
> > });
> >   });
> > 
> > 
> > 
> > 
> >   
> > 
> >   col 1
> >   col 2
> >   col 3
> > 
> >   
> >   
> > 
> >   1
> >   10
> >   beef
> > 
> > 
> >   1
> >   6
> >   sausage
> > 
> > 
> >   -3
> >   12
> >   ham
> > 
> > 
> >   -3
> >   6
> >   beef
> > 
> > 
> >   4
> >   7
> >   pork
> > 
> > 
> >   4
> >   7
> >   beef
> > 
> >   
> > 
> > 
> >   
> > 
> >   col 1
> >   col 2
> >   col 3
> > 
> >   
> >   
> > 
> >   11
> >   4
> >   pork
> > 
> > 
> >   12
> >   3
> >   ham
> > 
> > 
> >   10
> >   1
> >   sausage
> > 
> > 
> >   4
> >   7
> >   pork
> > 
> >   
> > 
> > 
> >   
> > 
> >   col 1
> >   col 2
> >   col 3
> > 
> >   
> >   
> > 
> >   7
> >   -2
> >   turkey
> > 
> > 
> >   4
> >   7
> >   pork
> > 
> > 
> >   20
> >   -10
> >   beef
> > 
> > 
> >   17
> >   6
> >   fish
> > 
> >   
> > 
> >
> > On Tue, Aug 4, 2009 at 11:57, Crazy Serb  wrote:
> >
> > > In using Tablesorter plugin, I have run into an challenging issue.
> >
> > > What I am looking to do is group certain rows in a single table into
> > > two different groups, have a blank row between them and be able to
> > > sort based on columns that apply to both groups of rows but without
> > > the rows from one group actually mixing with the rows from another
> > > group.
> >
> > > So, basically, I want to have a table like this:
> >
> > > TABLE:
> > > Group 1 Row 1
> > > Group 1 Row 2
> > > Group 1 Row 3
> > > Group 1 Row 4
> > > - blank row -
> > > Group 2 Row 1
> > > Group 2 Row 2
> > > Group 2 Row 3
> >
> > > So any re-sorting on any of the columns would sort the top 4 rows
> > > amongst themselves, keep the blank row after that 1st group and then
> > > resort the bottom 3 rows amongst themselves too, without any
> > > intermingling and mixing of the two groups of rows.
> >
> > > Is this possible at all, with some modifications or custom plugin/
> > > code? How would I go about putting this together if so?
> >
> > > Thanks!
>


[jQuery] Re: Tablesorter plugin - grouping rows and sorting per group?

2009-08-05 Thread Crazy Serb

A-ha!

That's pretty much what I'd need...

Now, is there any slick way of repeating that over and over for
different tables (with class names of "multisort1", "multisort2", etc)
in case I have a few of these multi-sort tables on the same page and
need to keep them separate?

Or would I pretty much have to rewrite that logic and change the class
name(s) to the new table's class name every time?

Just out of curiosity...

Thanks again!

On Aug 4, 5:02 pm, aquaone  wrote:
> Tablesorter doesn't support that. You could do it as separate tables with no
> gaps between them... but that's as close as you'll get. If you need linked
> sorting, e.g. clicking the header of one table sorts all tables, you'll need
> something like this:
>
> 
> $(document).ready( function(){
>   $("table.tablesorter").tablesorter();
>   var $multisort = $("table.multisort");
>   $multisort.addClass( "multisort_unsorted" );
>   $multisort.bind( "sortStart", function(){
>     $(this).removeClass( "multisort_unsorted" );
>     });
>   $multisort.filter( ".multisort_unsorted" ).bind( "sortEnd", function(){
>     var sortOrder = [ this.config.sortList ]; // get sort order
>     $multisort.filter( ".multisort_unsorted" ).removeClass(
> "multisort_unsorted" ).trigger( "sorton", sortOrder );
>     setTimeout( function(){ $multisort.addClass( "multisort_unsortedd" ); },
> 0 ); // avoid retriggering
>     });
>   });
> 
> 
> 
> 
>   
>     
>       col 1
>       col 2
>       col 3
>     
>   
>   
>     
>       1
>       10
>       beef
>     
>     
>       1
>       6
>       sausage
>     
>     
>       -3
>       12
>       ham
>     
>     
>       -3
>       6
>       beef
>     
>     
>       4
>       7
>       pork
>     
>     
>       4
>       7
>       beef
>     
>   
> 
> 
>   
>     
>       col 1
>       col 2
>       col 3
>     
>   
>   
>     
>       11
>       4
>       pork
>     
>     
>       12
>       3
>       ham
>     
>     
>       10
>       1
>       sausage
>     
>     
>       4
>       7
>       pork
>     
>   
> 
> 
>   
>     
>       col 1
>       col 2
>       col 3
>     
>   
>   
>     
>       7
>       -2
>       turkey
>     
>     
>       4
>       7
>       pork
>     
>     
>       20
>       -10
>       beef
>     
>     
>       17
>       6
>       fish
>     
>   
> 
>
> On Tue, Aug 4, 2009 at 11:57, Crazy Serb  wrote:
>
> > In using Tablesorter plugin, I have run into an challenging issue.
>
> > What I am looking to do is group certain rows in a single table into
> > two different groups, have a blank row between them and be able to
> > sort based on columns that apply to both groups of rows but without
> > the rows from one group actually mixing with the rows from another
> > group.
>
> > So, basically, I want to have a table like this:
>
> > TABLE:
> > Group 1 Row 1
> > Group 1 Row 2
> > Group 1 Row 3
> > Group 1 Row 4
> > - blank row -
> > Group 2 Row 1
> > Group 2 Row 2
> > Group 2 Row 3
>
> > So any re-sorting on any of the columns would sort the top 4 rows
> > amongst themselves, keep the blank row after that 1st group and then
> > resort the bottom 3 rows amongst themselves too, without any
> > intermingling and mixing of the two groups of rows.
>
> > Is this possible at all, with some modifications or custom plugin/
> > code? How would I go about putting this together if so?
>
> > Thanks!


[jQuery] Re: Tablesorter plugin - grouping rows and sorting per group?

2009-08-04 Thread aquaone
Tablesorter doesn't support that. You could do it as separate tables with no
gaps between them... but that's as close as you'll get. If you need linked
sorting, e.g. clicking the header of one table sorts all tables, you'll need
something like this:


$(document).ready( function(){
  $("table.tablesorter").tablesorter();
  var $multisort = $("table.multisort");
  $multisort.addClass( "multisort_unsorted" );
  $multisort.bind( "sortStart", function(){
$(this).removeClass( "multisort_unsorted" );
});
  $multisort.filter( ".multisort_unsorted" ).bind( "sortEnd", function(){
var sortOrder = [ this.config.sortList ]; // get sort order
$multisort.filter( ".multisort_unsorted" ).removeClass(
"multisort_unsorted" ).trigger( "sorton", sortOrder );
setTimeout( function(){ $multisort.addClass( "multisort_unsortedd" ); },
0 ); // avoid retriggering
});
  });




  

  col 1
  col 2
  col 3

  
  

  1
  10
  beef


  1
  6
  sausage


  -3
  12
  ham


  -3
  6
  beef


  4
  7
  pork


  4
  7
  beef

  


  

  col 1
  col 2
  col 3

  
  

  11
  4
  pork


  12
  3
  ham


  10
  1
  sausage


  4
  7
  pork

  


  

  col 1
  col 2
  col 3

  
  

  7
  -2
  turkey


  4
  7
  pork


  20
  -10
  beef


  17
  6
  fish

  




On Tue, Aug 4, 2009 at 11:57, Crazy Serb  wrote:

>
> In using Tablesorter plugin, I have run into an challenging issue.
>
> What I am looking to do is group certain rows in a single table into
> two different groups, have a blank row between them and be able to
> sort based on columns that apply to both groups of rows but without
> the rows from one group actually mixing with the rows from another
> group.
>
> So, basically, I want to have a table like this:
>
> TABLE:
> Group 1 Row 1
> Group 1 Row 2
> Group 1 Row 3
> Group 1 Row 4
> - blank row -
> Group 2 Row 1
> Group 2 Row 2
> Group 2 Row 3
>
> So any re-sorting on any of the columns would sort the top 4 rows
> amongst themselves, keep the blank row after that 1st group and then
> resort the bottom 3 rows amongst themselves too, without any
> intermingling and mixing of the two groups of rows.
>
> Is this possible at all, with some modifications or custom plugin/
> code? How would I go about putting this together if so?
>
> Thanks!
>


[jQuery] Re: tablesorter plugin leaks memory in IE6 and IE7

2009-07-07 Thread pob

right,

I narrowed down the problem and found it occurs in IE6 sp2, but not
sp3.
Probably why nobody metioned a memory leak!!!
I'm using $.browser to only allow it for sp3 users of IE6.

thanks,

pob



On Jun 17, 12:43 pm, pob  wrote:
> Thanks for the prompt reply MorningZ,
>
> Apologies for the inaccurate description, the apparent  leak is only
> in IE6
> I took your advice, created a simple table 10*200, based on the one on
> the plugin page.
> The only scripts on the page are:
>
>  jquery-1.3.1.js,
>  jquery.tablesorter.js,  and the constructor:
>
> $(document).ready(function()
>     {
>         $("#myTable").tablesorter( {sortList: [[0,0], [1,0]]} );
>     }
> );
>
> On each refresh in IE6 the memory rises by 1,200k
>
> If I reduce the table size to only one row, the memory still rises by
> 700k on each refresh.
>
> the page html looks like this:
>
> 
> 
>   
>
>     
>     
>     
> 
>     
> 
>     
>
>     $(document).ready(function()
>     {
>         $("#myTable").tablesorter( {sortList: [[0,0], [1,0]]} );
>     }
>     );
>
>     
>   
>   
>     
>       
>         
>           
>             Last Name
>           
>           
>             First Name
>           
>           
>             Email
>           
>           
>             Due
>           
>           
>             Web Site
>           
>           
>             Last Name
>           
>           
>             First Name
>           
>           
>             Email
>           
>           
>             Due
>           
>           
>             Web Site
>           
>         
>       
>       
>         
>           
>             Smith
>           
>           
>             John
>           
>           
>             jsm...@gmail.com
>           
>           
>             $50.00
>           
>           
>            http://www.jsmith.com
>           
>           
>             Smith
>           
>           
>             John
>           
>           
>             jsm...@gmail.com
>           
>           
>             $50.00
>           
>           
>            http://www.jsmith.com
>           
>         
>       
>     
>   
> 
>
> I have tried using jquery's unbind on th elements to deallocate it,
> also setting the $("#myTable").html('') to remove the dom elements,
> but nothing seems to work.
>
> Any help with this would be greatly appreciated!!
>
> thanks.
>
> On Jun 15, 2:14 pm, MorningZ  wrote:
>
> > I wouldn't be so quick to point fingers @ the plugin
>
> > There's lots of people on this list using it, with tables larger than
> > your 10x200, without any talk of memory leaks of 2 megs on a page
> > refresh...
>
> > I'd start super simple (static HTML, tablesorter applied with all
> > default options) and the add your code on top of that to figure out
> > where/why the leak is happening.
>
> > On Jun 15, 7:24 am, pob  wrote:
>
> > > Hi there,
> > > I have a table, 10 cols, 200 rows. Using tablesorter causes a memory
> > > leak on every page refresh of almost 2mB.
> > > A smaller table causes a proportionately smaller memory leak.
> > > Is there way to clear this memory? I've tried setting inner html of
> > > the table to '', but it makes no difference. Is there even a universal
> > > method i can call to remove any trace of any jquery plugin I have on
> > > the page?
> > > Any ideas would be great, I love this plugin and don't want to have to
> > > use a different one instead.
>
> > > - Pierce


[jQuery] Re: tablesorter plugin leaks memory in IE6 and IE7

2009-06-17 Thread pob

Thanks for the prompt reply MorningZ,

Apologies for the inaccurate description, the apparent  leak is only
in IE6
I took your advice, created a simple table 10*200, based on the one on
the plugin page.
The only scripts on the page are:

 jquery-1.3.1.js,
 jquery.tablesorter.js,  and the constructor:

$(document).ready(function()
{
$("#myTable").tablesorter( {sortList: [[0,0], [1,0]]} );
}
);

On each refresh in IE6 the memory rises by 1,200k

If I reduce the table size to only one row, the memory still rises by
700k on each refresh.

the page html looks like this:



  









$(document).ready(function()
{
$("#myTable").tablesorter( {sortList: [[0,0], [1,0]]} );
}
);


  
  

  

  
Last Name
  
  
First Name
  
  
Email
  
  
Due
  
  
Web Site
  
  
Last Name
  
  
First Name
  
  
Email
  
  
Due
  
  
Web Site
  

  
  

  
Smith
  
  
John
  
  
jsm...@gmail.com
  
  
$50.00
  
  
http://www.jsmith.com
  
  
Smith
  
  
John
  
  
jsm...@gmail.com
  
  
$50.00
  
  
http://www.jsmith.com
  

  

  



I have tried using jquery's unbind on th elements to deallocate it,
also setting the $("#myTable").html('') to remove the dom elements,
but nothing seems to work.

Any help with this would be greatly appreciated!!

thanks.





On Jun 15, 2:14 pm, MorningZ  wrote:
> I wouldn't be so quick to point fingers @ the plugin
>
> There's lots of people on this list using it, with tables larger than
> your 10x200, without any talk of memory leaks of 2 megs on a page
> refresh...
>
> I'd start super simple (static HTML, tablesorter applied with all
> default options) and the add your code on top of that to figure out
> where/why the leak is happening.
>
> On Jun 15, 7:24 am, pob  wrote:
>
> > Hi there,
> > I have a table, 10 cols, 200 rows. Using tablesorter causes a memory
> > leak on every page refresh of almost 2mB.
> > A smaller table causes a proportionately smaller memory leak.
> > Is there way to clear this memory? I've tried setting inner html of
> > the table to '', but it makes no difference. Is there even a universal
> > method i can call to remove any trace of any jquery plugin I have on
> > the page?
> > Any ideas would be great, I love this plugin and don't want to have to
> > use a different one instead.
>
> > - Pierce


[jQuery] Re: tablesorter plugin leaks memory in IE6 and IE7

2009-06-15 Thread MorningZ

I wouldn't be so quick to point fingers @ the plugin

There's lots of people on this list using it, with tables larger than
your 10x200, without any talk of memory leaks of 2 megs on a page
refresh...

I'd start super simple (static HTML, tablesorter applied with all
default options) and the add your code on top of that to figure out
where/why the leak is happening.


On Jun 15, 7:24 am, pob  wrote:
> Hi there,
> I have a table, 10 cols, 200 rows. Using tablesorter causes a memory
> leak on every page refresh of almost 2mB.
> A smaller table causes a proportionately smaller memory leak.
> Is there way to clear this memory? I've tried setting inner html of
> the table to '', but it makes no difference. Is there even a universal
> method i can call to remove any trace of any jquery plugin I have on
> the page?
> Any ideas would be great, I love this plugin and don't want to have to
> use a different one instead.
>
> - Pierce


[jQuery] Re: tablesorter plugin help -- getting it to ignore quotation marks

2009-05-22 Thread aquaone
You'll need to write a custom parser. For detection tell it to look for your
quote characters at start and end with string characters between. For cache
population, use regex to strip the quotes.

aquaone


On Thu, May 21, 2009 at 22:04, clorentzen  wrote:

>
> I'm using the tablesorter plugin, and have run into a small issue I
> can't figure out how to solve:
>
> One of the columns in my table contains titles, some of which are
> books, others of which are articles or television episodes. The latter
> two start with a double quote (“)...
>
> So, for example, one cell in the column might be:
>
> Title of Book
>
> while another would be:
>
> “Title of Article”
>
> Tablesorter seems to be factoring these starting double quotes into
> the sort order for that column, so I end up with a list that is titles
> without quotes alphabetically first, and then titles with quotes
> alphabetically second.
>
> Is there any way I can get it to ignore the double quote, so that
> sorting on the column always goes by the first actual letter of the
> text?
>
> Thanks a bunch for any help.
>


[jQuery] Re: tablesorter plugin

2009-03-26 Thread David



On 26 mrt, 13:45, nick hensgen  wrote:
> Since yesterday, I have gotten about 80 of these emails from you and others 
> at this email address.  I think somehow I accidently got put on a 
> distribution list of what appear to be internal Google emails.  Please remove 
> my email address.
>  
> Thanks.
>

This is done standaard, has nothing to with me or other users, you can
easyly change that yourself in the settings ...


[jQuery] Re: tablesorter plugin

2009-03-26 Thread nick hensgen
Since yesterday, I have gotten about 80 of these emails from you and others at 
this email address.  I think somehow I accidently got put on a distribution 
list of what appear to be internal Google emails.  Please remove my email 
address. 
 
Thanks.

--- On Thu, 3/26/09, David  wrote:


From: David 
Subject: [jQuery] tablesorter plugin
To: "jQuery (English)" 
Date: Thursday, March 26, 2009, 8:42 AM



Hi all,

I found this very handy tablesorter plugin (http://tablesorter.com/
docs/#Demo).

But i have a problem when i want to put an image in it, the image is
trashed and/or does not display properly.

Is there a special way to do it with tablesorter ?

my code:

echo '';
echo '';
echo '';



  

[jQuery] Re: TableSorter Plugin Question

2009-03-02 Thread chobo2


Hi

hmm thats what I was afraid off. It seems that when I use "update" trigger
on a asp.net gridview it updates the whole page then. I need a solution that
can sort purely on the client side and does not need to update the
gridview(what is just a table but I am sure there is stuff behind the
scenes.).

Otherwise my page will always just reload.

aquaone wrote:
> 
> as long as you trigger the "update" event after adding content you should
> be
> fine.
> 
> http://tablesorter.com/docs/example-ajax.html
> 
> 
> On Sun, Mar 1, 2009 at 21:49, chobo2  wrote:
> 
>>
>>
>> Hi
>>
>> I am wondering I want to use jquery to add some rows when a person say
>> adds
>> some stuff. I would like to know if I add it like this(through jquery
>> javascript) will the tablesorter be able to figure out how to sort it(ie
>> when some presses the header columns will this new value get stored) or
>> do
>> I
>> to do something to get it to work?
>> --
>> View this message in context:
>> http://www.nabble.com/TableSorter-Plugin-Question-tp22282466s27240p22282466.html
>> Sent from the jQuery General Discussion mailing list archive at
>> Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/TableSorter-Plugin-Question-tp22282466s27240p22298400.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: TableSorter Plugin Question

2009-03-02 Thread aquaone
as long as you trigger the "update" event after adding content you should be
fine.

http://tablesorter.com/docs/example-ajax.html


On Sun, Mar 1, 2009 at 21:49, chobo2  wrote:

>
>
> Hi
>
> I am wondering I want to use jquery to add some rows when a person say adds
> some stuff. I would like to know if I add it like this(through jquery
> javascript) will the tablesorter be able to figure out how to sort it(ie
> when some presses the header columns will this new value get stored) or do
> I
> to do something to get it to work?
> --
> View this message in context:
> http://www.nabble.com/TableSorter-Plugin-Question-tp22282466s27240p22282466.html
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.
>
>


[jQuery] Re: TableSorter plugin is not working in IE7

2009-02-10 Thread MorningZ

Also works for me here on IE7

I'd suggest totally clearing your cache and try again


[jQuery] Re: TableSorter plugin is not working in IE7

2009-02-10 Thread Leonardo K
I test here and works fine for me in IE7

On Mon, Feb 9, 2009 at 18:47, Bluesapphire  wrote:

>
> Hi!
>  Kindly visit following link:
>
> http://vibersol.com/sitesdemo/shipping/admin/continent.php
>
> Table sorter plugin works fine in FireFox, but in IE7 this plugin
> doesn't work. Can some one guide me where and how to rectify this
> problem in my code, so that plugin begin to work in IE7.
>
> Thanks in advance


[jQuery] Re: Tablesorter plugin - lazy caching

2009-02-04 Thread petrillodavide


Stephen,

thanks for the tip ;)
I'm using a similar workaround at the moment, I anyway think a lazy caching
would be an useful feature for the plugin.

Ciao,
Davide.
-- 
View this message in context: 
http://www.nabble.com/Tablesorter-plugin---lazy-caching-tp21830458s27240p21835411.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Tablesorter plugin - lazy caching

2009-02-04 Thread aquaone
you could have the intiial page give a class to the  (or  w/
closest/delegation) and bind a click event to that class that would enable
tablesorter and remove the class,

stephen


On Wed, Feb 4, 2009 at 05:28, petrillodavide wrote:

>
>
> Hello everybody,
>
> I'm developing an application in which the users will deal with a big table
> (600+ rows).
> One target for the application is that it has to show up as fast as
> possible; anyway, applying the tablesorter on the table, the initial
> caching
> steals more than one second to the process.
>
> Do anybody knows if it's possible to run the cache initialization only when
> the user clicks on one of the table's headers?
>
> Thanks in advance!
> Davide.
> --
> View this message in context:
> http://www.nabble.com/Tablesorter-plugin---lazy-caching-tp21830458s27240p21830458.html
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.
>
>


[jQuery] Re: Tablesorter plugin: adding alternating colors

2008-12-19 Thread adeveloper

It appears to be happening because I have a table inside a row. When I
removed the table inside one of the cells, everything is fine.

I tried disabling the column with the table (sorter:false), but that
did not help. Is there a workaround (except completely removing the
inner table)?




On Dec 19, 7:47 pm, adeveloper  wrote:
> anybody?
>
> On Dec 19, 1:17 am, adeveloper  wrote:
>
> > The row coloring is done on client-side (withtablesorteritself). It
> > works on document load. However, after sorting, all rows become the
> > same color. Why is row coloring not preserved after sorting? What can
> > be the reason?
>
> > Here is a snippet:
> > -
> > 
> > 
> > 
> >         
> >                 Text
> >                 Text
> >         
> > 
> > 
> >         
> >                 Text
> >                 
> >                         Number
> >                                 Time
> >                 
> >                 
> >                   
> >                         
> >                                 
> >                         
> >                   
> >                 
> >         
> >         
> >               .
> >         
> > 
> > 
> > 
> > -
> > $(document).ready(function() {
> >     $("#tableID").tablesorter({
> >         headers: {
>
> >                 4: {
> >                            sorter: 'time'
> >                            }
>
> >                 },
> >                 widgets:['zebra'],
> >                 widgetZebra: {css: ["even","odd"]}
> >     });
>
> > });
>
> > -
> > .odd {
> > background-color: ...}
>
> > .even {
> > background-color: ...}
>
> > -
>
> > On Dec 18, 7:08 am, MorningZ  wrote:
>
> > > "I was trying to fix that with Zebra
> > > widget but gave up."
>
> > > Well, thistablesorterplugin most definitely does work, both on load
> > > and client sorting
>
> > > i'd suggest being more descriptive on why you gave up (explanation?
> > > example code?  question to clarify what it does?), instead of trying
> > > to recreate code that already works
>
> > > On Dec 17, 10:41 pm, adeveloper  wrote:
>
> > > > My table has alternating row coloring. It get's messed up after
> > > > sorting (eg, instead of odd, even, odd I get something like even,
> > > > even, odd, even, even...etc) I was trying to fix that with Zebra
> > > > widget but gave up.
>
> > > > All I need to do is to call this simple function 
> > > > tohttp://www.sitepoint.com/article/background-colors-javascript/, but I
> > > > am not sure where. I tried putting into:
> > > > 

[jQuery] Re: Tablesorter plugin: adding alternating colors

2008-12-19 Thread adeveloper

It appears to be happening because I have a table inside a row. When I
removed the table inside one of the cells, everything is fine.

I tried disabling the column with the table (sorter:false), but that
did not help. Is there a workaround (except completely removing the
inner table)?




On Dec 19, 7:47 pm, adeveloper  wrote:
> anybody?
>
> On Dec 19, 1:17 am, adeveloper  wrote:
>
> > The row coloring is done on client-side (withtablesorteritself). It
> > works on document load. However, after sorting, all rows become the
> > same color. Why is row coloring not preserved after sorting? What can
> > be the reason?
>
> > Here is a snippet:
> > -
> > 
> > 
> > 
> >         
> >                 Text
> >                 Text
> >         
> > 
> > 
> >         
> >                 Text
> >                 
> >                         Number
> >                                 Time
> >                 
> >                 
> >                   
> >                         
> >                                 
> >                         
> >                   
> >                 
> >         
> >         
> >               .
> >         
> > 
> > 
> > 
> > -
> > $(document).ready(function() {
> >     $("#tableID").tablesorter({
> >         headers: {
>
> >                 4: {
> >                            sorter: 'time'
> >                            }
>
> >                 },
> >                 widgets:['zebra'],
> >                 widgetZebra: {css: ["even","odd"]}
> >     });
>
> > });
>
> > -
> > .odd {
> > background-color: ...}
>
> > .even {
> > background-color: ...}
>
> > -
>
> > On Dec 18, 7:08 am, MorningZ  wrote:
>
> > > "I was trying to fix that with Zebra
> > > widget but gave up."
>
> > > Well, thistablesorterplugin most definitely does work, both on load
> > > and client sorting
>
> > > i'd suggest being more descriptive on why you gave up (explanation?
> > > example code?  question to clarify what it does?), instead of trying
> > > to recreate code that already works
>
> > > On Dec 17, 10:41 pm, adeveloper  wrote:
>
> > > > My table has alternating row coloring. It get's messed up after
> > > > sorting (eg, instead of odd, even, odd I get something like even,
> > > > even, odd, even, even...etc) I was trying to fix that with Zebra
> > > > widget but gave up.
>
> > > > All I need to do is to call this simple function 
> > > > tohttp://www.sitepoint.com/article/background-colors-javascript/, but I
> > > > am not sure where. I tried putting into:
> > > > 

[jQuery] Re: Tablesorter plugin: adding alternating colors

2008-12-19 Thread adeveloper

It appears to be happening because I have a table inside a row. When I
removed the table inside one of the cells, everything is fine.

I tried disabling the column with the table (sorter:false), but that
did not help. Is there a workaround (except completely removing the
inner table)?




On Dec 19, 7:47 pm, adeveloper  wrote:
> anybody?
>
> On Dec 19, 1:17 am, adeveloper  wrote:
>
> > The row coloring is done on client-side (withtablesorteritself). It
> > works on document load. However, after sorting, all rows become the
> > same color. Why is row coloring not preserved after sorting? What can
> > be the reason?
>
> > Here is a snippet:
> > -
> > 
> > 
> > 
> >         
> >                 Text
> >                 Text
> >         
> > 
> > 
> >         
> >                 Text
> >                 
> >                         Number
> >                                 Time
> >                 
> >                 
> >                   
> >                         
> >                                 
> >                         
> >                   
> >                 
> >         
> >         
> >               .
> >         
> > 
> > 
> > 
> > -
> > $(document).ready(function() {
> >     $("#tableID").tablesorter({
> >         headers: {
>
> >                 4: {
> >                            sorter: 'time'
> >                            }
>
> >                 },
> >                 widgets:['zebra'],
> >                 widgetZebra: {css: ["even","odd"]}
> >     });
>
> > });
>
> > -
> > .odd {
> > background-color: ...}
>
> > .even {
> > background-color: ...}
>
> > -
>
> > On Dec 18, 7:08 am, MorningZ  wrote:
>
> > > "I was trying to fix that with Zebra
> > > widget but gave up."
>
> > > Well, thistablesorterplugin most definitely does work, both on load
> > > and client sorting
>
> > > i'd suggest being more descriptive on why you gave up (explanation?
> > > example code?  question to clarify what it does?), instead of trying
> > > to recreate code that already works
>
> > > On Dec 17, 10:41 pm, adeveloper  wrote:
>
> > > > My table has alternating row coloring. It get's messed up after
> > > > sorting (eg, instead of odd, even, odd I get something like even,
> > > > even, odd, even, even...etc) I was trying to fix that with Zebra
> > > > widget but gave up.
>
> > > > All I need to do is to call this simple function 
> > > > tohttp://www.sitepoint.com/article/background-colors-javascript/, but I
> > > > am not sure where. I tried putting into:
> > > > 

[jQuery] Re: Tablesorter plugin: adding alternating colors

2008-12-19 Thread adeveloper

anybody?

On Dec 19, 1:17 am, adeveloper  wrote:
> The row coloring is done on client-side (withtablesorteritself). It
> works on document load. However, after sorting, all rows become the
> same color. Why is row coloring not preserved after sorting? What can
> be the reason?
>
> Here is a snippet:
> -
> 
> 
> 
>         
>                 Text
>                 Text
>         
> 
> 
>         
>                 Text
>                 
>                         Number
>                                 Time
>                 
>                 
>                   
>                         
>                                 
>                         
>                   
>                 
>         
>         
>               .
>         
> 
> 
> 
> -
> $(document).ready(function() {
>     $("#tableID").tablesorter({
>         headers: {
>
>                 4: {
>                            sorter: 'time'
>                            }
>
>                 },
>                 widgets:['zebra'],
>                 widgetZebra: {css: ["even","odd"]}
>     });
>
> });
>
> -
> .odd {
> background-color: ...}
>
> .even {
> background-color: ...}
>
> -
>
> On Dec 18, 7:08 am, MorningZ  wrote:
>
> > "I was trying to fix that with Zebra
> > widget but gave up."
>
> > Well, thistablesorterplugin most definitely does work, both on load
> > and client sorting
>
> > i'd suggest being more descriptive on why you gave up (explanation?
> > example code?  question to clarify what it does?), instead of trying
> > to recreate code that already works
>
> > On Dec 17, 10:41 pm, adeveloper  wrote:
>
> > > My table has alternating row coloring. It get's messed up after
> > > sorting (eg, instead of odd, even, odd I get something like even,
> > > even, odd, even, even...etc) I was trying to fix that with Zebra
> > > widget but gave up.
>
> > > All I need to do is to call this simple function 
> > > tohttp://www.sitepoint.com/article/background-colors-javascript/, but I
> > > am not sure where. I tried putting into:
> > > 

[jQuery] Re: Tablesorter plugin: adding alternating colors

2008-12-19 Thread adeveloper

anybody?

On Dec 19, 1:17 am, adeveloper  wrote:
> The row coloring is done on client-side (withtablesorteritself). It
> works on document load. However, after sorting, all rows become the
> same color. Why is row coloring not preserved after sorting? What can
> be the reason?
>
> Here is a snippet:
> -
> 
> 
> 
>         
>                 Text
>                 Text
>         
> 
> 
>         
>                 Text
>                 
>                         Number
>                                 Time
>                 
>                 
>                   
>                         
>                                 
>                         
>                   
>                 
>         
>         
>               .
>         
> 
> 
> 
> -
> $(document).ready(function() {
>     $("#tableID").tablesorter({
>         headers: {
>
>                 4: {
>                            sorter: 'time'
>                            }
>
>                 },
>                 widgets:['zebra'],
>                 widgetZebra: {css: ["even","odd"]}
>     });
>
> });
>
> -
> .odd {
> background-color: ...}
>
> .even {
> background-color: ...}
>
> -
>
> On Dec 18, 7:08 am, MorningZ  wrote:
>
> > "I was trying to fix that with Zebra
> > widget but gave up."
>
> > Well, thistablesorterplugin most definitely does work, both on load
> > and client sorting
>
> > i'd suggest being more descriptive on why you gave up (explanation?
> > example code?  question to clarify what it does?), instead of trying
> > to recreate code that already works
>
> > On Dec 17, 10:41 pm, adeveloper  wrote:
>
> > > My table has alternating row coloring. It get's messed up after
> > > sorting (eg, instead of odd, even, odd I get something like even,
> > > even, odd, even, even...etc) I was trying to fix that with Zebra
> > > widget but gave up.
>
> > > All I need to do is to call this simple function 
> > > tohttp://www.sitepoint.com/article/background-colors-javascript/, but I
> > > am not sure where. I tried putting into:
> > > 

[jQuery] Re: Tablesorter plugin: adding alternating colors

2008-12-18 Thread adeveloper

The row coloring is done on client-side (with tablesorter itself). It
works on document load. However, after sorting, all rows become the
same color. Why is row coloring not preserved after sorting? What can
be the reason?

Here is a snippet:
-




Text
Text




Text

Number
Time


  



  



  .




-
$(document).ready(function() {
$("#tableID").tablesorter({
headers: {

4: {
   sorter: 'time'
   }

},
widgets:['zebra'],
widgetZebra: {css: ["even","odd"]}
});

});
-
.odd {
background-color: ...
}
.even {
background-color: ...
}
-

On Dec 18, 7:08 am, MorningZ  wrote:
> "I was trying to fix that with Zebra
> widget but gave up."
>
> Well, thistablesorterplugin most definitely does work, both on load
> and client sorting
>
> i'd suggest being more descriptive on why you gave up (explanation?
> example code?  question to clarify what it does?), instead of trying
> to recreate code that already works
>
> On Dec 17, 10:41 pm, adeveloper  wrote:
>
> > My table has alternating row coloring. It get's messed up after
> > sorting (eg, instead of odd, even, odd I get something like even,
> > even, odd, even, even...etc) I was trying to fix that with Zebra
> > widget but gave up.
>
> > All I need to do is to call this simple function 
> > tohttp://www.sitepoint.com/article/background-colors-javascript/, but I
> > am not sure where. I tried putting into:
> > 

[jQuery] Re: Tablesorter plugin: adding alternating colors

2008-12-18 Thread MorningZ

"I was trying to fix that with Zebra
widget but gave up."

Well, this tablesorter plugin most definitely does work, both on load
and client sorting

i'd suggest being more descriptive on why you gave up (explanation?
example code?  question to clarify what it does?), instead of trying
to recreate code that already works



On Dec 17, 10:41 pm, adeveloper  wrote:
> My table has alternating row coloring. It get's messed up after
> sorting (eg, instead of odd, even, odd I get something like even,
> even, odd, even, even...etc) I was trying to fix that with Zebra
> widget but gave up.
>
> All I need to do is to call this simple function 
> tohttp://www.sitepoint.com/article/background-colors-javascript/, but I
> am not sure where. I tried putting into:
> 

[jQuery] Re: Tablesorter Plugin and widgets

2008-10-06 Thread ajpiano

you need to make your addWidget method handle a function as an
argument, and then execute the function if it is supplied and a
function...

function foo(bar,callback) {
$(bar).remove();
callback && $.isFunction(callback) && callback();
}


foo("#baz",function() {alert("done!");}); // removes baz and then says
"done"
foo("#baz"); // just removes baz.



On Oct 4, 9:55 am, Issac  Kelly <[EMAIL PROTECTED]> wrote:
> I'm working on Christian Bach's tablesorter.
>
> I've made a widget that can select rows, and now I want to make a
> widget that can delete rows, and have a callback.
>
> The problem is the callback.
>
> The widgets are called like this
>
>         $.tablesorter.addWidget({
>             // give the widget a id
>             id: "selectRows",
>             // format is called when the on init and when a sorting has
> finished
>             format: function(table)
>                 {
>                         $("tbody tr",table).click(function(e){
>                         row = this;
>                                 if($(row).hasClass('selectedRow'))
>                                         $(row).removeClass('selectedRow');
>                                 else
>                                         $(row).addClass('selectedRow');
>                         });
>             }
>         });
>         $.tablesorter.addWidget({
>             // give the widget a id
>             id: "deleteRows",
>             // format is called when the on init and when a sorting has
> finished
>             format: function(table)
>                 {
>                         if($("tfoot",table).length)
>                         {
>                                 //add the foot
>                                 $(table).append("");
>                         }
>                         //add a row.
>                         $("tfoot",table).append(" href=\"#\"
> class=\"deleteRows\">Delete selected entries");
>
>                         $(".deleteRows").click(function(){
>                                 $(".selectedRow",table).each(function(){
>                                         $(this).remove();
>                                         ///I WANT A CALLBACK HERE
>                                 });
>                         });
>                 }
>         });
>
>     $("table").tablesorter({
>         widgets: ['selectRows','deleteSelected']
>     });
>
> So, the widgets are called via a text array.  How could I add a
> callback to a widget?


[jQuery] Re: tablesorter plugin will not sort dynamically generated table from jquery load(script.php)

2008-08-20 Thread MorningZ

Wire up the Tablesorter code *after* the table is on the page

$(document).ready(function(){
$("#menuitem").click(function(event){
$("#outputdiv").load("script.php");
$("#outputdiv table").tablesorter();
});
});


[jQuery] Re: Tablesorter Plugin: Leave one column untouched

2008-07-25 Thread apaella

$("#myTable").tablesorter({ headers: { 1: {sorter: false }} });
$("#myTable").bind("sortEnd",function() {
$("#myTable tbody tr").each(function(index, item){
$("td:first", $(item)).html(index+1);
});
});


On 25 Lug, 12:00, DavidH <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using the tablesorter plugin. The first column of the table is
> "Position" (i.e. 1,2,3 etc). When I sort, I'd like this column to stay
> the same (e.g. if the table is resorted by a criteria, they are still
> placed with 1 at the top). Is this possibel or will I have to abandon
> tablesorter and go back to server side sorting?
>
> Best,
>
> DTH


[jQuery] Re: Tablesorter plugin and zebra striping

2008-06-19 Thread Ken

This is exactly what I needed.  Thank you to all you responded.  The
information was perfect!

On Jun 18, 11:35 am, Alex <[EMAIL PROTECTED]> wrote:
> Hi Ken, luckily for us the brilliant Christian Bach created a widget
> system for Tablesorter so when you initialize your table use this
> instead $("table#sorttable").tablesorter({widgets:["zebra"]}); this
> will automatically apply a class of odd and even so you just have to
> style it!  There are some other cool things that you can do like
> disable columns and whatnot just look in the documentation 
> ^_^.http://tablesorter.com/docs/#Examples
>
> Best of luck!
>

Thanks, Ken


[jQuery] Re: Tablesorter plugin and zebra striping

2008-06-18 Thread Alex

Hi Ken, luckily for us the brilliant Christian Bach created a widget
system for Tablesorter so when you initialize your table use this
instead $("table#sorttable").tablesorter({widgets:["zebra"]}); this
will automatically apply a class of odd and even so you just have to
style it!  There are some other cool things that you can do like
disable columns and whatnot just look in the documentation ^_^.
http://tablesorter.com/docs/#Examples

Best of luck!

On Jun 18, 7:34 am, Ken <[EMAIL PROTECTED]> wrote:
> I have the following in my $(document).ready:
>
> $(document).ready(function() {
>   $(".zebra tr:not([th]):even").addClass("even");
>   $(".zebra tr:not([th]):odd").addClass("odd");
>   $("table#sorttable").tablesorter();
> )};
>
> This allows my table to sort columns by clicking on the column headers
> and works great.  What I need to be able to do, is have the zebra
> striping happen after each table sort.
>
> Is there a way to set this up?
>
> Thanks, Ken


[jQuery] Re: Tablesorter plugin and zebra striping

2008-06-18 Thread Carl Von Stetten

Ken,

Tablesorter has a zebra capability built right in through the zebra 
widget - see the docs for the tablesorter plugin.  It will automatically 
redo the striping after each sort.  You can change your code to:

$(document).ready(function() {
  $("table#sorttable").tablesorter({widgets: ['zebra']});
)};

HTH,
Carl

Ken wrote:
> I have the following in my $(document).ready:
>
> $(document).ready(function() {
>   $(".zebra tr:not([th]):even").addClass("even");
>   $(".zebra tr:not([th]):odd").addClass("odd");
>   $("table#sorttable").tablesorter();
> )};
>
> This allows my table to sort columns by clicking on the column headers
> and works great.  What I need to be able to do, is have the zebra
> striping happen after each table sort.
>
> Is there a way to set this up?
>
> Thanks, Ken
>
>
>   


[jQuery] Re: Tablesorter plugin and zebra striping

2008-06-18 Thread aquaone
Tablesorter comes with a zebra-striping widget.

$("table").tablesorter({
widgets: ['zebra']
});

stephen

On Wed, Jun 18, 2008 at 6:34 AM, Ken <[EMAIL PROTECTED]> wrote:

>
> I have the following in my $(document).ready:
>
> $(document).ready(function() {
>  $(".zebra tr:not([th]):even").addClass("even");
>  $(".zebra tr:not([th]):odd").addClass("odd");
>  $("table#sorttable").tablesorter();
> )};
>
> This allows my table to sort columns by clicking on the column headers
> and works great.  What I need to be able to do, is have the zebra
> striping happen after each table sort.
>
> Is there a way to set this up?
>
> Thanks, Ken
>


[jQuery] Re: Tablesorter plugin and widthFixed property

2008-05-28 Thread [EMAIL PROTECTED]

Nevermind, I used CSS width property to set the width of the table
cell.
But, I'm still confused as to what widthFixed is supposed to do.
Anyone have any explanation?

Thanks!

On May 28, 3:12 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> I'm playing around with the Tablesorter plugin and I'm a little
> confused about the widthFixed property.
> I downloaded and included the Dimensions plugin and set widthFixed to
> true like so:
>
> /* Table Sorter */
> $("#mytable").tablesorter({
>  widthFixed: true,
>  widgets: ['zebra'],
>  sortList: [[3,0]]
>
> });
>
> Everything works, except that the width of the columns keeps getting
> wider to accommodate long text.  Any ideas how to prevent the columns
> from widening, and instead "wrap" the text inside each cell.
>
> Thanks,
> Konstantin


[jQuery] Re: Tablesorter plugin

2008-02-08 Thread Leanan

I fixed it:

The content I was having issues with was loaded via AJAX, and on that
"page" I included jQuery and the jQuery tablesorter script.  Well, it
also turns out that the page I was loading this content into also
included jQuery.  Apparently IE doesn't like that very much.  Firefox,
however, could care less.

Just thought I'd share with folks so they can avoid this problem.
Don't load jQuery twice, or IE will puke over itself.


[jQuery] Re: Tablesorter plugin

2008-02-07 Thread Leanan

Well, I've gotten the triggers to work, but I had to strip
*everything* out.  And I had to add a hide.

So now I have:

$(document).ready(function(){
  $(#'display-div.hide();
  $('table').tablesorter();

  $('table').bind("sortStart",function(){
$('#display-div.show();
  }).bind('sortEnd',function(){
$('#display-div.hide();
  });
});

But now it won't sort!


[jQuery] Re: Tablesorter plugin doesn't work properly with 1.2

2007-09-12 Thread Christian Bach

Hi. I have been on vacation the last two weeks. I will be back next
week so expect a patch then. /christian

2007/9/11, dobosgy <[EMAIL PROTECTED]>:
>
> I think so, that's why I sent this to the discussion list.
> Maybe he haven't noticed this issue yet by himself. :)
>
> --
> Thanks,
> Gy
>
> On Sep 11, 11:00 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> > I think the author is going to release an update that fixes this soon.
> >
> > --
> > Brandon Aaron
>
>


[jQuery] Re: Tablesorter plugin doesn't work properly with 1.2

2007-09-11 Thread dobosgy

I think so, that's why I sent this to the discussion list.
Maybe he haven't noticed this issue yet by himself. :)

--
Thanks,
Gy

On Sep 11, 11:00 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> I think the author is going to release an update that fixes this soon.
>
> --
> Brandon Aaron



[jQuery] Re: tablesorter plugin not working...

2007-09-11 Thread Andy Matthews
Good point Josh. I'll give that a shot.

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh Nathanson
Sent: Tuesday, September 11, 2007 3:51 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: tablesorter plugin not working...


Andy -
 
When I was first using the plugin, I noticed that it didn't seem to do
anything when I first clicked on the column header.  If your table loads up
already sorted correctly, the impression will be that nothing is happening
on that first click - when in fact it just looks like nothing is happening,
because the first click will just return the table sorted in the same way as
when it was loaded onto the page.
 
Try clicking on the column headers multiple times and see if you notice any
activity.  The second click should sort in reverse.
 
-- Josh
 
 

- Original Message - 
From: Andy  <mailto:[EMAIL PROTECTED]> Matthews 
To: jquery-en@googlegroups.com 
Sent: Tuesday, September 11, 2007 1:31 PM
Subject: [jQuery] Re: tablesorter plugin not working...

Nope...
 
I even tried copying the code directly from the TS demo page and it still
never ran. At least I didn't get an error in FF with the demo code. Anyone
else have an idea?

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh Nathanson
Sent: Tuesday, September 11, 2007 2:53 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: tablesorter plugin not working...


Andy - I think you need to use "th" tags in the header row, rather than
"td".  Give that a try.
 
-- Josh

- Original Message - 
From: Andy Matthews <mailto:[EMAIL PROTECTED]>  
To: [jQuery] <mailto:jquery-en@googlegroups.com>  
Sent: Tuesday, September 11, 2007 12:27 PM
Subject: [jQuery] tablesorter plugin not working...

I've tried it with multiple versions of jQuery including 1.1.3, 1.1.4, and
1.2, even referencing the jQuery file living on the tablesorter website. In
IE nothing happens, no errors, but no worky. In Firefox, I get an error in
the tablesorter plugin:
 
r[row] has no properties
http://localhost/dealerskins/wwwroot/ds2/includes/scripts/jquery.tablesorter
.unpacked.js
Line 293
 
Here's a snippet of my code:
 
jQuery:
$('#leadsTable').tablesorter();
 
HTML:
  
  
   Customer Name
  
  
   Vic Acevedo
   Adrian Adame
   Edgar Aguilar
   Terri Alexander
   Jane Alford
  
  
 


 
Andy Matthews
Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com <http://www.dealerskins.com/> 
 

<>

[jQuery] Re: Tablesorter plugin doesn't work properly with 1.2

2007-09-11 Thread Brandon Aaron
I think the author is going to release an update that fixes this soon.

--
Brandon Aaron

On 9/11/07, dobosgy <[EMAIL PROTECTED]> wrote:
>
>
> Tablesorter 2.0 plugin doesn't work properly with JQuery 1.2.
>
> If I bind a click function to the items in the table, it works well,
> as far as I try to sort the table. After sorting, the clickable items
> loose their function.
> Everything works well with JQuery 1.1.4.
>
> Example can be seen here: http://bitkreta.hu/tsorter/index.html
>
> Gy
>
>


[jQuery] Re: tablesorter plugin not working...

2007-09-11 Thread Josh Nathanson
Andy -

When I was first using the plugin, I noticed that it didn't seem to do anything 
when I first clicked on the column header.  If your table loads up already 
sorted correctly, the impression will be that nothing is happening on that 
first click - when in fact it just looks like nothing is happening, because the 
first click will just return the table sorted in the same way as when it was 
loaded onto the page.

Try clicking on the column headers multiple times and see if you notice any 
activity.  The second click should sort in reverse.

-- Josh


  - Original Message - 
  From: Andy Matthews 
  To: jquery-en@googlegroups.com 
  Sent: Tuesday, September 11, 2007 1:31 PM
  Subject: [jQuery] Re: tablesorter plugin not working...


  Nope...

  I even tried copying the code directly from the TS demo page and it still 
never ran. At least I didn't get an error in FF with the demo code. Anyone else 
have an idea?



--
  From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh 
Nathanson
  Sent: Tuesday, September 11, 2007 2:53 PM
  To: jquery-en@googlegroups.com
  Subject: [jQuery] Re: tablesorter plugin not working...


  Andy - I think you need to use "th" tags in the header row, rather than "td". 
 Give that a try.

  -- Josh
- Original Message - 
From: Andy Matthews 
To: [jQuery] 
Sent: Tuesday, September 11, 2007 12:27 PM
Subject: [jQuery] tablesorter plugin not working...


I've tried it with multiple versions of jQuery including 1.1.3, 1.1.4, and 
1.2, even referencing the jQuery file living on the tablesorter website. In IE 
nothing happens, no errors, but no worky. In Firefox, I get an error in the 
tablesorter plugin:

r[row] has no properties

http://localhost/dealerskins/wwwroot/ds2/includes/scripts/jquery.tablesorter.unpacked.js
Line 293

Here's a snippet of my code:

jQuery:
$('#leadsTable').tablesorter();

HTML:
  
  
   Customer Name
  
  
   Vic Acevedo
   Adrian Adame
   Edgar Aguilar
   Terri Alexander
   Jane Alford
  
  



Andy Matthews
Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com
<>

[jQuery] Re: tablesorter plugin not working...

2007-09-11 Thread Andy Matthews
Nope...
 
I even tried copying the code directly from the TS demo page and it still
never ran. At least I didn't get an error in FF with the demo code. Anyone
else have an idea?

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh Nathanson
Sent: Tuesday, September 11, 2007 2:53 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: tablesorter plugin not working...


Andy - I think you need to use "th" tags in the header row, rather than
"td".  Give that a try.
 
-- Josh

- Original Message - 
From: Andy Matthews <mailto:[EMAIL PROTECTED]>  
To: [jQuery] <mailto:jquery-en@googlegroups.com>  
Sent: Tuesday, September 11, 2007 12:27 PM
Subject: [jQuery] tablesorter plugin not working...

I've tried it with multiple versions of jQuery including 1.1.3, 1.1.4, and
1.2, even referencing the jQuery file living on the tablesorter website. In
IE nothing happens, no errors, but no worky. In Firefox, I get an error in
the tablesorter plugin:
 
r[row] has no properties
http://localhost/dealerskins/wwwroot/ds2/includes/scripts/jquery.tablesorter
.unpacked.js
Line 293
 
Here's a snippet of my code:
 
jQuery:
$('#leadsTable').tablesorter();
 
HTML:
  
  
   Customer Name
  
  
   Vic Acevedo
   Adrian Adame
   Edgar Aguilar
   Terri Alexander
   Jane Alford
  
  
 


 
Andy Matthews
Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com <http://www.dealerskins.com/> 
 

<>

[jQuery] Re: tablesorter plugin not working...

2007-09-11 Thread Andy Matthews
Nope...putting those in still returned the same error.

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh Nathanson
Sent: Tuesday, September 11, 2007 2:53 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: tablesorter plugin not working...


Andy - I think you need to use "th" tags in the header row, rather than
"td".  Give that a try.
 
-- Josh

- Original Message - 
From: Andy Matthews <mailto:[EMAIL PROTECTED]>  
To: [jQuery] <mailto:jquery-en@googlegroups.com>  
Sent: Tuesday, September 11, 2007 12:27 PM
Subject: [jQuery] tablesorter plugin not working...

I've tried it with multiple versions of jQuery including 1.1.3, 1.1.4, and
1.2, even referencing the jQuery file living on the tablesorter website. In
IE nothing happens, no errors, but no worky. In Firefox, I get an error in
the tablesorter plugin:
 
r[row] has no properties
http://localhost/dealerskins/wwwroot/ds2/includes/scripts/jquery.tablesorter
.unpacked.js
Line 293
 
Here's a snippet of my code:
 
jQuery:
$('#leadsTable').tablesorter();
 
HTML:
  
  
   Customer Name
  
  
   Vic Acevedo
   Adrian Adame
   Edgar Aguilar
   Terri Alexander
   Jane Alford
  
  
 


 
Andy Matthews
Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com <http://www.dealerskins.com/> 
 

<>

[jQuery] Re: tablesorter plugin not working...

2007-09-11 Thread Josh Nathanson
Andy - I think you need to use "th" tags in the header row, rather than "td".  
Give that a try.

-- Josh
  - Original Message - 
  From: Andy Matthews 
  To: [jQuery] 
  Sent: Tuesday, September 11, 2007 12:27 PM
  Subject: [jQuery] tablesorter plugin not working...


  I've tried it with multiple versions of jQuery including 1.1.3, 1.1.4, and 
1.2, even referencing the jQuery file living on the tablesorter website. In IE 
nothing happens, no errors, but no worky. In Firefox, I get an error in the 
tablesorter plugin:

  r[row] has no properties
  
http://localhost/dealerskins/wwwroot/ds2/includes/scripts/jquery.tablesorter.unpacked.js
  Line 293

  Here's a snippet of my code:

  jQuery:
  $('#leadsTable').tablesorter();

  HTML:


 Customer Name


 Vic Acevedo
 Adrian Adame
 Edgar Aguilar
 Terri Alexander
 Jane Alford



  

  Andy Matthews
  Senior ColdFusion Developer

  Office:  877.707.5467 x747
  Direct:  615.627.9747
  Fax:  615.467.6249
  [EMAIL PROTECTED]
  www.dealerskins.com
<>