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

2006-10-26 Thread Christian Bach
SDisk SDisk wrote:
> 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  onclick="return false;">).
> 
> I fixed table sorted returning false at the end of onClick event:
> jQuery(".sorter",oCell).click(function(e) {
> []
> return false;
> }

Thanks for the heads up, i just committed the fix to the svn.

Best regards
Christian

___
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 ). 
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/


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/


[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/