<?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 finds new life</title>
	<atom:link href="http://www.ghidinelli.com/2013/03/30/jquery-tablesorter-finds-new-life/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ghidinelli.com/2013/03/30/jquery-tablesorter-finds-new-life</link>
	<description></description>
	<lastBuildDate>Thu, 01 Jun 2017 18:51:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brian</title>
		<link>http://www.ghidinelli.com/2013/03/30/jquery-tablesorter-finds-new-life/comment-page-1#comment-76517</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Wed, 22 May 2013 22:47:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghidinelli.com/?p=1545#comment-76517</guid>
		<description>@John, sorry about the formatting.  The best place to put your requests is with the author of the plugin.  He has a githup repo and issues tracker here:

https://github.com/Mottie/tablesorter/issues</description>
		<content:encoded><![CDATA[<p>@John, sorry about the formatting.  The best place to put your requests is with the author of the plugin.  He has a githup repo and issues tracker here:</p>
<p><a href="https://github.com/Mottie/tablesorter/issues" rel="nofollow">https://github.com/Mottie/tablesorter/issues</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JohnJ</title>
		<link>http://www.ghidinelli.com/2013/03/30/jquery-tablesorter-finds-new-life/comment-page-1#comment-76445</link>
		<dc:creator>JohnJ</dc:creator>
		<pubDate>Wed, 22 May 2013 18:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghidinelli.com/?p=1545#comment-76445</guid>
		<description>replace &rt; on &gt; please :(</description>
		<content:encoded><![CDATA[<p>replace &rt; on &gt; please <img src='http://www.ghidinelli.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JohnJ</title>
		<link>http://www.ghidinelli.com/2013/03/30/jquery-tablesorter-finds-new-life/comment-page-1#comment-76444</link>
		<dc:creator>JohnJ</dc:creator>
		<pubDate>Wed, 22 May 2013 18:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghidinelli.com/?p=1545#comment-76444</guid>
		<description>html-parser function also was cutted...
&lt;code&gt;
ts.addParser({
   id: &#039;html&#039;,
   is: function (s) {
      return /&lt;.*&rt;/.test(s);
   },
   format: function (s) {
      return s.toLowerCase().replace(/&lt;.*?&rt;/g, &#039;&#039;);
   },
   type: &#039;text&#039;
});
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>html-parser function also was cutted&#8230;<br />
<code><br />
ts.addParser({<br />
   id: 'html',<br />
   is: function (s) {<br />
      return /&lt;.*&rt;/.test(s);<br />
   },<br />
   format: function (s) {<br />
      return s.toLowerCase().replace(/&lt;.*?&rt;/g, '');<br />
   },<br />
   type: 'text'<br />
});<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JohnJ</title>
		<link>http://www.ghidinelli.com/2013/03/30/jquery-tablesorter-finds-new-life/comment-page-1#comment-76443</link>
		<dc:creator>JohnJ</dc:creator>
		<pubDate>Wed, 22 May 2013 17:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghidinelli.com/?p=1545#comment-76443</guid>
		<description>ops, tags cutted...
* So, now we can use &lt;th data-tablesorter=&quot;none&quot;&rt; for disabling sorting for this column and &lt;th data-tablesorter=&quot;currency&quot;&rt; (or some other) to set parser for this column (disable autodetect for parser type).</description>
		<content:encoded><![CDATA[<p>ops, tags cutted&#8230;<br />
* So, now we can use &lt;th data-tablesorter=&#8221;none&#8221;&rt; for disabling sorting for this column and &lt;th data-tablesorter=&#8221;currency&#8221;&rt; (or some other) to set parser for this column (disable autodetect for parser type).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JohnJ</title>
		<link>http://www.ghidinelli.com/2013/03/30/jquery-tablesorter-finds-new-life/comment-page-1#comment-76442</link>
		<dc:creator>JohnJ</dc:creator>
		<pubDate>Wed, 22 May 2013 17:54:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghidinelli.com/?p=1545#comment-76442</guid>
		<description>Hello, I can&#039;t find any contact&#039;s info of the author of tablesorter jquery-plugin. It&#039;s nice plugin, but when I started use it, find some problems for me (and I give you solution):
1. Using [0, 0], [1, 0], etc in call $().tablesorter looked not so nice for me.
2. Using metadata as &quot;{...}&quot; in class atribute not so nice too, because I use Smarty templator for templates.
3. In default parsers &quot;html&quot; is absent. I can&#039;t understand why sorting with mistakes when using started :)

My resolve based on using validating user-atributes data-*. jQuery support it atributes with function $(...).data()
So, now we can use  for disabling sorting for this column and  and some to set parser for this column (disable autodetect for parser type).

Code changed (jquery.tablesorter.js Version 2.0.3 ):

in function buildHeaders:
replace &lt;code&gt;if(checkHeaderMetadata(this) &#124;&#124; checkHeaderOptions(table,index)) this.sortDisabled = true;&lt;/code&gt;
by
&lt;code&gt;if (checkHeaderMetadata(this) &#124;&#124; checkHeaderOptions(table,index) &#124;&#124; checkHeaderUserdata(this)) this.sortDisabled = true;&lt;/code&gt;

so add function checkHeaderUserdata before checkHeaderMetadata:
            &lt;code&gt;function checkHeaderUserdata(cell) {
                return $(cell).data(&#039;tablesorter&#039;) === &#039;none&#039;;
            }&lt;/code&gt;
			
in function buildParserCache:
before &lt;code&gt;} else if((table.config.headers[i] &amp;&amp; table.config.headers[i].sorter)) {&lt;/code&gt; insert next rows:
						&lt;code&gt;} else if ($($headers[i]).data(&#039;tablesorter&#039;) &amp;&amp; $($headers[i]).data(&#039;tablesorter&#039;) !== &#039;none&#039;) {
                            p = getParserById($($headers[i]).data(&#039;tablesorter&#039;));&lt;/code&gt;

And finally, html-parser:
        &lt;code&gt;ts.addParser({
            id: &#039;html&#039;,
            is: function (s) {
                return //.test(s);
            },
            format: function (s) {
                return s.toLowerCase().replace(//g, &#039;&#039;);
            },
            type: &#039;text&#039;
        });&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hello, I can&#8217;t find any contact&#8217;s info of the author of tablesorter jquery-plugin. It&#8217;s nice plugin, but when I started use it, find some problems for me (and I give you solution):<br />
1. Using [0, 0], [1, 0], etc in call $().tablesorter looked not so nice for me.<br />
2. Using metadata as &#8220;{&#8230;}&#8221; in class atribute not so nice too, because I use Smarty templator for templates.<br />
3. In default parsers &#8220;html&#8221; is absent. I can&#8217;t understand why sorting with mistakes when using started <img src='http://www.ghidinelli.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>My resolve based on using validating user-atributes data-*. jQuery support it atributes with function $(&#8230;).data()<br />
So, now we can use  for disabling sorting for this column and  and some to set parser for this column (disable autodetect for parser type).</p>
<p>Code changed (jquery.tablesorter.js Version 2.0.3 ):</p>
<p>in function buildHeaders:<br />
replace <code>if(checkHeaderMetadata(this) || checkHeaderOptions(table,index)) this.sortDisabled = true;</code><br />
by<br />
<code>if (checkHeaderMetadata(this) || checkHeaderOptions(table,index) || checkHeaderUserdata(this)) this.sortDisabled = true;</code></p>
<p>so add function checkHeaderUserdata before checkHeaderMetadata:<br />
            <code>function checkHeaderUserdata(cell) {<br />
                return $(cell).data('tablesorter') === 'none';<br />
            }</code></p>
<p>in function buildParserCache:<br />
before <code>} else if((table.config.headers[i] &amp;&amp; table.config.headers[i].sorter)) {</code> insert next rows:<br />
						<code>} else if ($($headers[i]).data('tablesorter') &amp;&amp; $($headers[i]).data('tablesorter') !== 'none') {<br />
                            p = getParserById($($headers[i]).data('tablesorter'));</code></p>
<p>And finally, html-parser:<br />
        <code>ts.addParser({<br />
            id: 'html',<br />
            is: function (s) {<br />
                return //.test(s);<br />
            },<br />
            format: function (s) {<br />
                return s.toLowerCase().replace(//g, '');<br />
            },<br />
            type: 'text'<br />
        });</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karthick</title>
		<link>http://www.ghidinelli.com/2013/03/30/jquery-tablesorter-finds-new-life/comment-page-1#comment-72230</link>
		<dc:creator>karthick</dc:creator>
		<pubDate>Mon, 22 Apr 2013 11:25:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghidinelli.com/?p=1545#comment-72230</guid>
		<description>pager and grouping not working properly</description>
		<content:encoded><![CDATA[<p>pager and grouping not working properly</p>
]]></content:encoded>
	</item>
</channel>
</rss>
