it
does.
I figured out how to get this working in my project via TableSorter's
textExtraction option. Would like to understand why the docs claim to
support this however.
--
Christian Bach
Polyester*
Wittstocksgatan 2nb
11524 Stockholm, Sweden
+46 70 443 91 90
Hi,
The plugin name changed with the 2.0 release to .tablesorter().
Check out the docs @ http://tablesorter.com
/Christian
2008/5/20 Luciano [EMAIL PROTECTED]:
hi,
i want create sort table in 3 tables byclass
the code:
$(.box table).tableSorter({
Bettina, try downloading the latest development version:
http://jqueryjs.googlecode.com/svn/trunk/plugins/tablesorter/2.0/
And see if it fixes the problem, there is a bug in the 2.0.3 version that
doesn't auto detect number if the equal zero.
/Christian
2008/5/20 Hamish Campbell [EMAIL
Hi Kevin,
Take a look at the source of this page:
http://tablesorter.com/tests/checkbox.html
There is a special ie-checkbox widget, i wrote to deal with the checked
state not being fired correctly in IE6.
Happy tablesorting!
/Christian
2008/3/25, Kevin Scholl [EMAIL PROTECTED]:
Hello, all.
Hi Guys,
I will see to it that i incorporate this into the next bug fix version of
tablesorter.
Thanks for spotting it!
/Christian
2008/1/17, Cesar [EMAIL PROTECTED]:
I encountered this bug the alternate fix, if you want to use version
2.0 of the metadata plugin, is to open up tablesorter,
, Christian Bach [EMAIL PROTECTED]
wrote:
Hi Jay,
This will solve your problem:
// add parser through the tablesorter addParser method
$.tablesorter.addParser({
// set a unique id
id: 'dates',
is: function(s) {
// return false so this parser
Hi Jay,
This will solve your problem:
// add parser through the tablesorter addParser method
$.tablesorter.addParser({
// set a unique id
id: 'dates',
is: function(s) {
// return false so this parser is not auto detected
return false;
},
Hi,
there is a new undocumented features for this type of behaviour take a look
at:
http://tablesorter.com/docs/example-triggers.html
/christian
2007/12/12, Arturo [EMAIL PROTECTED]:
I use a code to bgcolor odd table rows in my tables. Something like:
code
Hi,
Just extact the value of the input fields and replace it with a text node.
This is untested but should work:
$(input:text).each(function() {
var $this=$(this);
$this
.after($(p/p)
.html($this.val()))
.hide();
});
/c
2007/12/7, Johan_S [EMAIL PROTECTED]:
Hello.
Is
Nope, nothing wrong in what you are doing.
Just make sure that trigger is called on the table and not the row.
Ex.
$(table).trigger(update);
/c
2007/12/3, Adam Kroll [EMAIL PROTECTED]:
I'm having problems with tablesorter 2.0.1 and removing rows. I'm
allowing users to remove rows, and
Hi Guys,
This issue has been resolved in the latest tablesorter release.
Get it from: http://tablesorter.com/
/Christian
2007/11/29, pambuk [EMAIL PROTECTED]:
Hi,
I have the exact same problem and frankly, I'm out of ideas.
Last thing I tried was writing a widget, to rebind events, but
Hi Scott,
The parser will parse the value inside the table cell and store it's values
in a huge array representing the table data.
This is done only once per column and sorting direction. So setting a max /
min value will only display the right way in one direction.
/christian
2007/11/22,
Hi Joe,
Are you passing any sorter options to tablesorter?
/christian
2007/11/5, [EMAIL PROTECTED] [EMAIL PROTECTED]:
Has anyone been seeing the following in the firefox error console when
sorting a tablesorter:
parsers[i] has no properties line:482
It happens whenever a sort is run
HI Shawn,
Yeah your right, will add it to the docs as soon as i have the time.
Thanks for the feedback!
/christian
2007/10/3, sgrover [EMAIL PROTECTED]:
I'm using the tablesorter plugin (Excellent work! - makes my job MUCH
easier). But I found a slight flaw with the documentation.
In my
try: jQuery('#foo\\.bar\\:filter');
2007/9/27, ravenel [EMAIL PROTECTED]:
Hello jQuery Coders!
Since it is allowed to use ., : in the id-Tag (http://www.w3.org/
TR/html4/types.html#h-6.2)
I wonder how I select it while using the jQuery Selector Syntax?
jQuery('#foo.bar:filter')
I like the idea!
I don't have the time to put together such a solutions, is anyone interested
in helping out?
/christian
2007/9/26, Kia Niskavaara [EMAIL PROTECTED]:
A suggestion is that all parsers (except the basic ones) are removed from
the plugin, and selectable
from an archive.
To change the date-format to the one you requested just pass the dateFormat
options like this:
$(table).tablesorter({dateFormat: 'uk'});
/christian
2007/9/26, Jean [EMAIL PROTECTED]:
Unfortunally i´m a jquery noob =/
On 9/26/07, Christian Bach [EMAIL PROTECTED] wrote:
I like the idea
Fabien,
This needs to be done to support the :focus pseudo class.
Getting the stylesheet with the native cssText method will return :focus as
unkown.
/christian
2007/9/23, Fabien Meghazi [EMAIL PROTECTED]:
May I ask you why you are fetching inline/remote css in the updated
version of
Updated the script to support :focus and :after
http://lovepeacenukes.com/jquery/ie6cssfix/
/christian
2007/9/21, Christian Bach [EMAIL PROTECTED]:
Unfortunately :after renders as unknown in ie6 :(
So no luck there...
2007/9/21, Christian Bach [EMAIL PROTECTED]:
That would be way cool
Bill,
Try the updated version, it fixes this issue:
http://tablesorter.com/jquery.tablesorter.pack.js
/christian
2007/9/20, Bill Huber [EMAIL PROTECTED]:
Thanks for the great work Christian! I did find that the 2.0.1 packed
version
does not work for me. It complains about a missing
Hi list,
The other day i got feed up with ie6 not having :hover css support so i
decided to fix it.
Here is a simple script that solves the problem:
http://lovepeacenukes.com/jquery/ie6hoverfix/
/christian
Joel: nope i didn't plan on adding it, but if you want you can add it.
Brandon: thanks man!
Fabien:
1. The script only looks for declarations in the stylesheets, that's the
beauty of it.
2. If it was rewritten to use Brandons exellent livequery plugin it would
work with load append etc.
3. Yeah
?
// ie6HoverFix - Author : Christian Bach
$.ie6HoverFix = function(only_hovers) {
if ($.browser.msie $.browser.version 7) {
only_hovers = only_hovers || false;
var cssRules = [], newStyleSheet =
document.createStyleSheet(),
styleSheets = document.styleSheets
Unfortunately :after renders as unknown in ie6 :(
So no luck there...
2007/9/21, Christian Bach [EMAIL PROTECTED]:
That would be way cool, and not to hard to implement!
/christian
2007/9/21, Brandon Aaron [EMAIL PROTECTED]:
Well why not fix :after and :before too :)
--
Brandon
That would be way cool, and not to hard to implement!
/christian
2007/9/21, Brandon Aaron [EMAIL PROTECTED]:
Well why not fix :after and :before too :)
--
Brandon Aaron
On 9/21/07, Christian Bach [EMAIL PROTECTED] wrote:
Yeah that would make sense!
A other thing that could be use
Sorry!
This is now resolved.
Thanks for the heads up!
/Christian
2007/9/19, Stoyan [EMAIL PROTECTED]:
Anyone gets an error in the tablesortger pager example ?
http://tablesorter.com/docs/example-pager.html
missing ; before statement
urn
the checkCellColSpan() function so you can see the
result I'm looking for.
It's: http://www.garethphipps.com/tablesorttest/index2.html
=
On Sep 18, 6:02 am, Christian Bach [EMAIL PROTECTED]
wrote:
Thanks Kia, saved a few more bytes!
Removed
Hi Chris,
Nope there is no reason other than that i forgot to delete it.
Its removed now.
Thanks for the feedback.
/christian
2007/9/17, Chris [EMAIL PROTECTED]:
Is there a reason jquery-1.1.3.js is included in the Zip file when
1.2.1 is required?
On Sep 17, 12:37 pm, Christian Bach
On what page in the wiki did you find tableSorter?
Could you point me to the page so i can change it.
/christian
2007/9/18, Rabbit [EMAIL PROTECTED]:
Ah, of course. It's tablesorter() -- lowercase 's'. The wiki needs to
be updated to reflect that, as it uses a capital 'S'.
On 9/17/07,
);
},
type: numeric
});
Christian Bach wrote:
Hi list!
Just uploaded the new version of tablesorter that works with the 1.2
release of jQuery.
Here are the main changes in version tablesorter 2.0.1
General
* Removed the need for Dimensions plugin when using
Hi Rigent,
Try this:
Change: table id=#sorttable
To: table id=sorttable
I will be releasing version 2.0.1 of tablesorter today or tomorrow with
support for jQuery 1.2.
/christian
2007/9/15, Rigent [EMAIL PROTECTED]:
I'm loving the tablesorter plugin, everything works splendidly except
Hi Guys,
I have been stuck on a small island in Greece the last two weeks working on
project called vacation.
I will be releasing a 2.0.1 version of tablesorter (tonight or tomorrow)
that takes care of these issues.
/christian
2007/9/16, Rodrigo Moraes [EMAIL PROTECTED]:
On 9/14/07, James
again for your work on this plugin.
Cheers
Christian Bach wrote:
Hi Rigent,
Try this:
Change: table id=#sorttable
To: table id=sorttable
I will be releasing version 2.0.1 of tablesorter today or tomorrow with
support for jQuery 1.2.
/christian
--
View
Hi list!
Just uploaded the new version of tablesorter that works with the 1.2 release
of jQuery.
Here are the main changes in version tablesorter 2.0.1
General
* Removed the need for Dimensions plugin when using the pagination plugin
thanks to offset being included in the jQuery 1.2 core.
*
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,
Hi Travis,
Would it be possible to send me a test-case of your table, off-list?
Makes spotting the bug easier for me.
Regards
Christian
2007/8/28, tlphipps [EMAIL PROTECTED]:
Tablesorter 2.0 rocks! But I think I've uncovered a bug.
I have a table with two rows in the thead section, but
Thanks Rey!
If anyone would like to help me get the word out even more, please feel free
to digg:
http://digg.com/programming/jQuery_plugin_Tablesorter_2_0
Best regards
Christian
2007/8/24, Rey Bango [EMAIL PROTECTED]:
The press continues around Christian Bach's tableSorter plugin. The most
Thanks Brandon and Marshall!
/christian
2007/8/24, Marshall Salinger [EMAIL PROTECTED]:
I upgraded from 1.0 to 2.0 in my app and noticed a big improvement in
speed. It is an excellent plug-in. Dugg!
Christian Bach wrote:
Thanks Rey!
If anyone would like to help me get the word out even
like this?
script
$(document).ready(function() {
// call the tablesorter plugin
$(table).tablesorter({
widgets: ['zebra','metadata']
});
});
/script
On Aug 17, 5:29 pm, Christian Bach [EMAIL
was to control this action in some other
way.
Thanks
Luke
On Aug 17, 10:36 pm, Christian Bach [EMAIL PROTECTED]
wrote:
Lukek,
I will supply a fix for this after the weekend. If you cant wait that
long a tip is that if this.config exists that should be extended
instead
Thanks Chris,
The docs are know updated.
/christian
2007/8/19, Chris [EMAIL PROTECTED]:
Two easy to fix errors:
The example code in Getting Started uses tableSorter() several times
rather than tablesorter(). Threw me off till I compared my code with
other examples.
Dan,
in order to set options inline you need to include the metadata
plugin. The reason why this seems to work with out metadata is because
the auto detection for column sorter is working its magic. There is no
need to specify sorters for standard columns like the ones that you
have in your
Lukek,
I will supply a fix for this after the weekend. If you cant wait that
long a tip is that if this.config exists that should be extended
instead of the defaults. /christian
2007/8/17, lukek [EMAIL PROTECTED]:
Hi,
I have just been playing with the new Tablesorter 2.0. Thanks Mr Bach!
Chris, Glean and Sean: Thanks!
I'm really happy with this release and hopefully it will solve all your
table sorting needs.
/christian
Thanks guys!
I will see to it that i add a short overview to the examples.
/christian
Does anyone have an example of how to stripe the data rows? The
default looks like it should be .odd .even and I am using the blue
theme but nothing is getting striped.
You need to pass the widgets option, try this:
$(table).tablesorter({
sortForce: [0,0],
widgets: ['zebra']
});
Hi List,
I just released the 2.0 version of tablesorter.
Here are the highlight for this release:
* Multi-column sorting
* Parsers for sorting text, URIs, integers, currency, floats, IP addresses,
dates (ISO, long and short formats), time. Add your own easily
* Support for ROWSPAN and COLSPAN
2007/7/19, Kia [EMAIL PROTECTED]:
Personally I would prefer if the string wasn't lowercased. I think the
parser should lowercase it (or use the regexp modifier 'i'), if
needed.
I will change this in time for the final release.
/christian
That's not the case for me (the sizes are mixed up on the page).
The normal one is 13.15 kb for me and the packed on is 6.73kb. If you
pack using the Base62 encode option you can get it even smaller.
Thanks Sam, i repacked it and got down to 5,2 KB.
Updated the page to reflect the changes:
After another late night, fixing a few bugs, the code is finally ready for
it's first beta release.
The main new features include:
* Multi-column sorting
* In-line support for setting options done via the class attribute on the TH
elements.
* The plugin has been re-written from scratch.
* Support
2007/7/17, David Duymelinck [EMAIL PROTECTED]:
Christian Bach schreef:
After another late night, fixing a few bugs, the code is finally ready
for it's first beta release.
The main new features include:
* Multi-column sorting
* In-line support for setting options done via the class
2007/7/17, Rick Pasotto [EMAIL PROTECTED]:
On Tue, Jul 17, 2007 at 03:04:59PM +0200, Christian Bach wrote:
The new 2.0 release can be found here:
http://lovepeacenukes.com/tablesorter/2.0/
Interesting that the packed version is twice as large as the unpacked. :-)
Yeah, packer doesn't
I'm glad to see you made the multi-column sort key configurable. My
instinct
was to use the [CTRL] key, not the [SHIFT] key (although I know Outlook
uses
the [SHIFT] key.)
Tablesorter can be configured to use either SHIFT or CTRL, all though SHIFT
is default.
Here is a example on how to
excellent job christian,
Thanks!
i have one bug to report: consider this html
if the tr element contains inline styles such as:
tr style=background-color:red
once sorted, the style is removed.
I did a quick test, and the style attribute was not removed, perhaps the
style is
Looks promising but I'm having a little problem with numeric sorting.
Here's my invocation and the table header.
$(function() { $(#listclubs).tablesorter(); });
theadtr
th class={sorter:'integer'}ID#/th
thClub Name/th
thArea/th
thType/th
thCharter/th
/tr/thead
When the
Immediately after sending the above I think I realized what the problem
is.
Each of the numeric values in that first column is wrapped in a/a
and you're probably sorting on that. Do I need to write a parser? If so,
what might it be?
This should work:
$.tablesorter.addParser({
id:
Hi List,
After many late night i have managed to sort out a documentation/FAQ, for
the new 2.0 release.
I hope to have included the most common questions/problems + showing off the
new features,
but i might have missed some, so any feedback on this would be great!
The new documentation is
Hi Phil,
In the 1.x release there is a option called disableHeader
Here is a example:
// disable one header from being sorted
disableHeader: 0
//disable more then one
disableHeader: [0,5,8]
/christian
2007/7/5, Phil Glatz [EMAIL PROTECTED]:
Christian Bach wrote:
And to leak a new
2007/7/6, MichaL Sanger [EMAIL PROTECTED]:
I have same wish, paging is a must! =)
MichaL
2007/7/6, Michael Stuhr [EMAIL PROTECTED]:
Christian Bach schrieb:
Hi,
I put together a demo/preview for the upcoming release tablesorter
2.0 release.
The main features of the upcoming
connection for editing datas inside the table and I owe
you BIG time!
;-)
GREAT WORK!!
On 6 Jul., 13:34, Christian Bach [EMAIL PROTECTED]
wrote:
2007/7/6, Kia Niskavaara [EMAIL PROTECTED]:
Multi-colum sorting is great news. Good work!! Reverse multisorting
on one
column and normal sorting
connection for editing datas inside the table and I owe
you BIG time!
;-)
GREAT WORK!!
On 6 Jul., 13:34, Christian Bach [EMAIL PROTECTED]
wrote:
2007/7/6, Kia Niskavaara [EMAIL PROTECTED]:
Multi-colum sorting is great news. Good work!! Reverse multisorting
on one
column and normal
.
The demo/preview is located here:
http://lovepeacenukes.com/tablesorter/2.0/tests/demo.html
Best regards
Christian Bach
2007/7/6, Kia Niskavaara [EMAIL PROTECTED]:
Multi-colum sorting is great news. Good work!! Reverse multisorting on one
column and normal sorting
on another column doesn't seem to be working (yet)
Is it possible to add a custom sorter that sort using the initial order?
Custom sorter will be
Hi Phil,
set useCache: false
then trigger this after the update.
$('#bodytable').trigger(updateColumnData);
I'm addressing this issue in the new 2.0 version of tablesorter supplying a
simple .update() method that will rebuild the cached table.
And to leak a new feature: it will contain
.trigger(resort);
/christian
2007/7/5, Phil Glatz [EMAIL PROTECTED]:
On Jul 5, 4:22 am, Christian Bach [EMAIL PROTECTED]
wrote:
set useCache: false
then trigger this after the update.
$('#bodytable').trigger(updateColumnData);
Thanks, Christian; that did the trick.
When I rebuild
You could try this, it's a bit sloppy but what the heck...
$.fn.outerHtml = function() {
$this = $(this);
var h = $this.html();
var s = $this.wrap(div/div).parent().html();
$this.empty().html(h);
return s;
};
div id=A
div id=B
tableSorter({
sortColumn: 0,
sortDir: 1
});
Will sort the first column in the opposite direction.
/christian
2007/4/9, Chris W. Parker [EMAIL PROTECTED]:
On Monday, April 09, 2007 12:02 PM Andy Matthews said:
There's an option for default sort. How is the data getting to the
page? Is it
Sorry Chris, seems you found a bug.
I checked in a new version that takes care of business.
http://dev.jquery.com/browser/trunk/plugins/tablesorter/jquery.tablesorter.js?format=txt
/christian
2007/4/9, Chris W. Parker [EMAIL PROTECTED]:
On Monday, April 09, 2007 12:43 PM Christian Bach
the
score field. (I removed the 0's, as normally those
fields would be BLANK, as opposed to 0). I also
tried
changing [2, 'integer'] to 'decimal' or 'double', to
no avail. Any ideas on this last tiny bit?
thanks again,
-kim
--- Christian Bach [EMAIL PROTECTED]
wrote:
I took a look at your
69 matches
Mail list logo