<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: jQuery TableSorter Comma Parser</title>
	<atom:link href="http://www.barneyb.com/barneyblog/2009/06/03/jquery-tablesorter-comma-parser/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.barneyb.com/barneyblog/2009/06/03/jquery-tablesorter-comma-parser/</link>
	<description>Thoughts, rants, and even some code from the mind of Barney Boisvert.</description>
	<lastBuildDate>Thu, 11 Sep 2014 09:58:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ondiege</title>
		<link>https://www.barneyb.com/barneyblog/2009/06/03/jquery-tablesorter-comma-parser/comment-page-1/#comment-307076</link>
		<dc:creator>Ondiege</dc:creator>
		<pubDate>Tue, 01 May 2012 21:46:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=992#comment-307076</guid>
		<description>Thanks!! I have been trying to figure this out for the past few hours, this worked perfect!</description>
		<content:encoded><![CDATA[<p>Thanks!! I have been trying to figure this out for the past few hours, this worked perfect!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: changeboy</title>
		<link>https://www.barneyb.com/barneyblog/2009/06/03/jquery-tablesorter-comma-parser/comment-page-1/#comment-292132</link>
		<dc:creator>changeboy</dc:creator>
		<pubDate>Wed, 11 Jan 2012 07:10:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=992#comment-292132</guid>
		<description>More Simple:
&lt;pre&gt;$(document).ready(function() {
        var mydigits= function(node)  {  
        // extract data from markup and return it  
         var s=node.innerHTML;
        return s.replace(/,/g, &quot;&quot;);
        } 
        $(function() {
        $(&quot;#{$chart_id}_table&quot;).tablesorter( {
                textExtraction:mydigits
                })
        });
});
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>More Simple:</p>
<pre>$(document).ready(function() {
        var mydigits= function(node)  {
        // extract data from markup and return it
         var s=node.innerHTML;
        return s.replace(/,/g, "");
        }
        $(function() {
        $("#{$chart_id}_table").tablesorter( {
                textExtraction:mydigits
                })
        });
});
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>https://www.barneyb.com/barneyblog/2009/06/03/jquery-tablesorter-comma-parser/comment-page-1/#comment-290255</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Fri, 30 Dec 2011 14:00:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=992#comment-290255</guid>
		<description>Thanks for the help.</description>
		<content:encoded><![CDATA[<p>Thanks for the help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: H@ck!</title>
		<link>https://www.barneyb.com/barneyblog/2009/06/03/jquery-tablesorter-comma-parser/comment-page-1/#comment-290109</link>
		<dc:creator>H@ck!</dc:creator>
		<pubDate>Thu, 29 Dec 2011 15:37:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=992#comment-290109</guid>
		<description>it should be

&lt;pre&gt;$(function() {
$(&quot;table&quot;).tablesorter( {

headers:{
3:{sorter:&#039;commaDigit&#039;}//3 referin to the header number
}
)
});
});
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>it should be</p>
<pre>$(function() {
$("table").tablesorter( {

headers:{
3:{sorter:'commaDigit'}//3 referin to the header number
}
)
});
});
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>https://www.barneyb.com/barneyblog/2009/06/03/jquery-tablesorter-comma-parser/comment-page-1/#comment-286855</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Thu, 08 Dec 2011 22:32:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=992#comment-286855</guid>
		<description>Sorry for the dumb question, but I&#039;m struggling. I put your parser code into my js file and referenced it with: $(&quot;table&quot;).tablesorter( {sorter:&#039;commaDigit&#039;})

And it isn&#039;t working. Here&#039;s my whole JS file if you don&#039;t mind telling me what I&#039;m doing wrong (Thanks a ton):

&lt;pre&gt;
$(document).ready(function() {
	
jQuery.tablesorter.addParser({
  id: &quot;commaDigit&quot;,
  is: function(s, table) {
    var c = table.config;
    return jQuery.tablesorter.isDigit(s.replace(/,/g, &quot;&quot;), c);
  },
  format: function(s) {
    return jQuery.tablesorter.formatFloat(s.replace(/,/g, &quot;&quot;));
  },
  type: &quot;numeric&quot;
});
$(function() { 
$(&quot;table&quot;).tablesorter( {sorter:&#039;commaDigit&#039;})
});
});
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Sorry for the dumb question, but I'm struggling. I put your parser code into my js file and referenced it with: $("table").tablesorter( {sorter:'commaDigit'})</p>
<p>And it isn't working. Here's my whole JS file if you don't mind telling me what I'm doing wrong (Thanks a ton):</p>
<pre>
$(document).ready(function() {

jQuery.tablesorter.addParser({
  id: "commaDigit",
  is: function(s, table) {
    var c = table.config;
    return jQuery.tablesorter.isDigit(s.replace(/,/g, ""), c);
  },
  format: function(s) {
    return jQuery.tablesorter.formatFloat(s.replace(/,/g, ""));
  },
  type: "numeric"
});
$(function() {
$("table").tablesorter( {sorter:'commaDigit'})
});
});
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronaldo</title>
		<link>https://www.barneyb.com/barneyblog/2009/06/03/jquery-tablesorter-comma-parser/comment-page-1/#comment-278165</link>
		<dc:creator>ronaldo</dc:creator>
		<pubDate>Thu, 29 Sep 2011 20:08:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=992#comment-278165</guid>
		<description>Awesome  I was trying to find a solution for this issue and your solution did it.... 
 thank you ! thank you! thank you!</description>
		<content:encoded><![CDATA[<p>Awesome  I was trying to find a solution for this issue and your solution did it&#8230;.<br />
 thank you ! thank you! thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>https://www.barneyb.com/barneyblog/2009/06/03/jquery-tablesorter-comma-parser/comment-page-1/#comment-276240</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Mon, 19 Sep 2011 10:48:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=992#comment-276240</guid>
		<description>Thank you! Ive been searching for this solution for almost a week and this solved my problem!</description>
		<content:encoded><![CDATA[<p>Thank you! Ive been searching for this solution for almost a week and this solved my problem!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie</title>
		<link>https://www.barneyb.com/barneyblog/2009/06/03/jquery-tablesorter-comma-parser/comment-page-1/#comment-254027</link>
		<dc:creator>Charlie</dc:creator>
		<pubDate>Wed, 20 Apr 2011 17:15:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=992#comment-254027</guid>
		<description>Ugh, apologies for the comment spam!  Just to finish this I had to follow instructions here: http://tablesorter.com/docs/example-parsers.html

That was the only way I was able to get this to work.  I&#039;ll stop commenting now.</description>
		<content:encoded><![CDATA[<p>Ugh, apologies for the comment spam!  Just to finish this I had to follow instructions here: <a href="http://tablesorter.com/docs/example-parsers.html" rel="nofollow">http://tablesorter.com/docs/example-parsers.html</a></p>
<p>That was the only way I was able to get this to work.  I'll stop commenting now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie</title>
		<link>https://www.barneyb.com/barneyblog/2009/06/03/jquery-tablesorter-comma-parser/comment-page-1/#comment-254023</link>
		<dc:creator>Charlie</dc:creator>
		<pubDate>Wed, 20 Apr 2011 16:55:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=992#comment-254023</guid>
		<description>I&#039;m sorry, please ignore my last comment.  All good!</description>
		<content:encoded><![CDATA[<p>I'm sorry, please ignore my last comment.  All good!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie</title>
		<link>https://www.barneyb.com/barneyblog/2009/06/03/jquery-tablesorter-comma-parser/comment-page-1/#comment-254022</link>
		<dc:creator>Charlie</dc:creator>
		<pubDate>Wed, 20 Apr 2011 16:53:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=992#comment-254022</guid>
		<description>I&#039;m struggling here, I&#039;ve tried to add your code, and even explicitly registering the parsers in the th tags, but it&#039;s not working.  Has a change in jQuery or the tablesorter project changed the way this is implemented?</description>
		<content:encoded><![CDATA[<p>I'm struggling here, I've tried to add your code, and even explicitly registering the parsers in the th tags, but it's not working.  Has a change in jQuery or the tablesorter project changed the way this is implemented?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
