<?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: Creating A On-The-Fly Sortable Table With PHP, MySQL &amp; jQuery</title>
	<atom:link href="http://return-true.com/2008/12/creating-a-on-the-fly-sortable-table-with-php-mysql-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://return-true.com/2008/12/creating-a-on-the-fly-sortable-table-with-php-mysql-jquery/</link>
	<description>Coding Tutorials, hints &#38; tips in PHP, jQuery, CSS &#38; HTML</description>
	<lastBuildDate>Thu, 29 Jul 2010 22:16:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Paul Robinson</title>
		<link>http://return-true.com/2008/12/creating-a-on-the-fly-sortable-table-with-php-mysql-jquery/comment-page-1/#comment-17705</link>
		<dc:creator>Paul Robinson</dc:creator>
		<pubDate>Wed, 14 Jul 2010 10:20:52 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=371#comment-17705</guid>
		<description>That code goes between your head tags inside &lt;script&gt; tags.</description>
		<content:encoded><![CDATA[<p>That code goes between your head tags inside &lt;script&gt; tags.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geri</title>
		<link>http://return-true.com/2008/12/creating-a-on-the-fly-sortable-table-with-php-mysql-jquery/comment-page-1/#comment-17704</link>
		<dc:creator>Geri</dc:creator>
		<pubDate>Wed, 14 Jul 2010 10:12:26 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=371#comment-17704</guid>
		<description>Hi!
where should i write this tag? in the  ?

1	$(document).ready(function() {
2	        $(&quot;#myTable&quot;).tablesorter({widgets: [&#039;zebra&#039;]});
3	});

Geri</description>
		<content:encoded><![CDATA[<p>Hi!<br />
where should i write this tag? in the  ?</p>
<p>1	$(document).ready(function() {<br />
2	        $(&#8220;#myTable&#8221;).tablesorter({widgets: ['zebra']});<br />
3	});</p>
<p>Geri</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Veneficus Unus</title>
		<link>http://return-true.com/2008/12/creating-a-on-the-fly-sortable-table-with-php-mysql-jquery/comment-page-1/#comment-9790</link>
		<dc:creator>Veneficus Unus</dc:creator>
		<pubDate>Wed, 02 Sep 2009 14:42:15 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=371#comment-9790</guid>
		<description>Hi,

Sorry but I don&#039;t maintain the tablesorter jquery plugin, this tutorial was just built to show how to set it up as the tablesorter website doesn&#039;t give a detailed tutorial. I can only imagine it is due to the javascript not being triggered after the ajax load. You could try adding a callback after the load is triggered &amp; fire off the tablesorter by calling it directly.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Sorry but I don&#8217;t maintain the tablesorter jquery plugin, this tutorial was just built to show how to set it up as the tablesorter website doesn&#8217;t give a detailed tutorial. I can only imagine it is due to the javascript not being triggered after the ajax load. You could try adding a callback after the load is triggered &amp; fire off the tablesorter by calling it directly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajay patel</title>
		<link>http://return-true.com/2008/12/creating-a-on-the-fly-sortable-table-with-php-mysql-jquery/comment-page-1/#comment-9787</link>
		<dc:creator>Ajay patel</dc:creator>
		<pubDate>Wed, 02 Sep 2009 11:36:40 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=371#comment-9787</guid>
		<description>Hy but this table sorting function does not work if table is loaded using $.(&quot;#tableDiv&quot;).load(&quot;loadTable.php&quot;);</description>
		<content:encoded><![CDATA[<p>Hy but this table sorting function does not work if table is loaded using $.(&#8220;#tableDiv&#8221;).load(&#8220;loadTable.php&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Veneficus Unus</title>
		<link>http://return-true.com/2008/12/creating-a-on-the-fly-sortable-table-with-php-mysql-jquery/comment-page-1/#comment-8582</link>
		<dc:creator>Veneficus Unus</dc:creator>
		<pubDate>Fri, 10 Jul 2009 10:56:08 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=371#comment-8582</guid>
		<description>Hi John,

I did manage to get it working. If you look on the tablesorter demo page for the pager you can see it working. As well as the jQuery code you need this code written where-ever you want the pager to appear:
[html]
&lt;div id=&quot;pager&quot; class=&quot;pager&quot;&gt;
	&lt;form&gt;
		&lt;img src=&quot;first.png&quot; class=&quot;first&quot;/&gt;
		&lt;img src=&quot;prev.png&quot; class=&quot;prev&quot;/&gt;
		&lt;input type=&quot;text&quot; class=&quot;pagedisplay&quot;/&gt;
		&lt;img src=&quot;next.png&quot; class=&quot;next&quot;/&gt;
		&lt;img src=&quot;last.png&quot; class=&quot;last&quot;/&gt;
		&lt;select class=&quot;pagesize&quot;&gt;
			&lt;option selected=&quot;selected&quot;  value=&quot;10&quot;&gt;10&lt;/option&gt;

			&lt;option value=&quot;20&quot;&gt;20&lt;/option&gt;
			&lt;option value=&quot;30&quot;&gt;30&lt;/option&gt;
			&lt;option  value=&quot;40&quot;&gt;40&lt;/option&gt;
		&lt;/select&gt;
	&lt;/form&gt;
&lt;/div&gt;
[/html]
The images are obviously images of your choice but those are examples. Give that a try and it should work. If not give &lt;a href=&quot;http://tablesorter.com/docs/example-pager.html&quot; rel=&quot;nofollow&quot;&gt;this page&lt;/a&gt; a check, and if that still doesn&#039;t help drop another comment &amp; I&#039;ll see if I can help further.</description>
		<content:encoded><![CDATA[<p>Hi John,</p>
<p>I did manage to get it working. If you look on the tablesorter demo page for the pager you can see it working. As well as the jQuery code you need this code written where-ever you want the pager to appear:</p>
<pre class="brush: xml;">
&lt;div id=&quot;pager&quot; class=&quot;pager&quot;&gt;
	&lt;form&gt;
		&lt;img src=&quot;first.png&quot; class=&quot;first&quot;/&gt;
		&lt;img src=&quot;prev.png&quot; class=&quot;prev&quot;/&gt;
		&lt;input type=&quot;text&quot; class=&quot;pagedisplay&quot;/&gt;
		&lt;img src=&quot;next.png&quot; class=&quot;next&quot;/&gt;
		&lt;img src=&quot;last.png&quot; class=&quot;last&quot;/&gt;
		&lt;select class=&quot;pagesize&quot;&gt;
			&lt;option selected=&quot;selected&quot;  value=&quot;10&quot;&gt;10&lt;/option&gt;

			&lt;option value=&quot;20&quot;&gt;20&lt;/option&gt;
			&lt;option value=&quot;30&quot;&gt;30&lt;/option&gt;
			&lt;option  value=&quot;40&quot;&gt;40&lt;/option&gt;
		&lt;/select&gt;
	&lt;/form&gt;
&lt;/div&gt;
</pre>
<p>The images are obviously images of your choice but those are examples. Give that a try and it should work. If not give <a href="http://tablesorter.com/docs/example-pager.html" rel="nofollow">this page</a> a check, and if that still doesn&#8217;t help drop another comment &amp; I&#8217;ll see if I can help further.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://return-true.com/2008/12/creating-a-on-the-fly-sortable-table-with-php-mysql-jquery/comment-page-1/#comment-8570</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 10 Jul 2009 00:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=371#comment-8570</guid>
		<description>oops I forgot to comment out the code. Here it goes again -
[js]

	
	
		$(function() {
			$(&quot;#tablesorter-demo&quot;)
			.tablesorter({sortList:[[2,0]], widthFixed: true, widgets: [&#039;zebra&#039;], headers: {0: {sorter:false}, 5: {sorter:false}} })
			.tablesorterPager({container: $(&quot;#pager&quot;)});
		});

[/js]
and then after the table:
</description>
		<content:encoded><![CDATA[<p>oops I forgot to comment out the code. Here it goes again -</p>
<pre class="brush: jscript;">

		$(function() {
			$("#tablesorter-demo")
			.tablesorter({sortList:[[2,0]], widthFixed: true, widgets: ['zebra'], headers: {0: {sorter:false}, 5: {sorter:false}} })
			.tablesorterPager({container: $("#pager")});
		});
</pre>
<p>and then after the table:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://return-true.com/2008/12/creating-a-on-the-fly-sortable-table-with-php-mysql-jquery/comment-page-1/#comment-8569</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 10 Jul 2009 00:33:57 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=371#comment-8569</guid>
		<description>Have you been able to get the pager add on to work as well? For some reason its not working for me...

I added the javascript at the top:



		$(function() {
			$(&quot;#tablesorter-demo&quot;)
			.tablesorter({sortList:[[2,0]], widthFixed: true, widgets: [&#039;zebra&#039;], headers: {0: {sorter:false}, 5: {sorter:false}} })
			.tablesorterPager({container: $(&quot;#pager&quot;)});
		});
	

and then after the php table I have:


	
		
		
		
		
		
		
			10

			20
			30
			40
		
	


but nothing happens. Any idea what I am missing?</description>
		<content:encoded><![CDATA[<p>Have you been able to get the pager add on to work as well? For some reason its not working for me&#8230;</p>
<p>I added the javascript at the top:</p>
<p>		$(function() {<br />
			$(&#8220;#tablesorter-demo&#8221;)<br />
			.tablesorter({sortList:[[2,0]], widthFixed: true, widgets: ['zebra'], headers: {0: {sorter:false}, 5: {sorter:false}} })<br />
			.tablesorterPager({container: $(&#8220;#pager&#8221;)});<br />
		});</p>
<p>and then after the php table I have:</p>
<p>			10</p>
<p>			20<br />
			30<br />
			40</p>
<p>but nothing happens. Any idea what I am missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://return-true.com/2008/12/creating-a-on-the-fly-sortable-table-with-php-mysql-jquery/comment-page-1/#comment-8341</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 24 Jun 2009 04:32:09 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=371#comment-8341</guid>
		<description>There is standard solution for template engines (like Smarty): how it knows what to parse and process? There is delimiters, they say to template engine where its piece starts and ends. Like {if blah-blah}, you can just define your own delimiters. For example you need to deal with CSS, so just define delimiters as {{ and }}...</description>
		<content:encoded><![CDATA[<p>There is standard solution for template engines (like Smarty): how it knows what to parse and process? There is delimiters, they say to template engine where its piece starts and ends. Like {if blah-blah}, you can just define your own delimiters. For example you need to deal with CSS, so just define delimiters as {{ and }}&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Veneficus Unus</title>
		<link>http://return-true.com/2008/12/creating-a-on-the-fly-sortable-table-with-php-mysql-jquery/comment-page-1/#comment-8173</link>
		<dc:creator>Veneficus Unus</dc:creator>
		<pubDate>Thu, 11 Jun 2009 10:29:45 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=371#comment-8173</guid>
		<description>Yep, good call. :)

It&#039;s generally completely different per template system, so a look at how it assigns other template vars like {ID} would help. Although some systems are just use a simple &lt;code&gt;str_replace&lt;/code&gt; which means you&#039;d just need to open the core files &amp; add an extra &lt;code&gt;str_replace&lt;/code&gt; for your info.

If you can write some code, I&#039;ll see what I can find for you. :) Just beware that WordPress tends to have a bit of a gripe with PHP in the comments system. You could try using &lt;pre lang=&quot;php&quot;&gt; your code &lt;/pre&gt; and hopefully that should work.</description>
		<content:encoded><![CDATA[<p>Yep, good call. <img src='http://return-true.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>It&#8217;s generally completely different per template system, so a look at how it assigns other template vars like {ID} would help. Although some systems are just use a simple <code>str_replace</code> which means you&#8217;d just need to open the core files &amp; add an extra <code>str_replace</code> for your info.</p>
<p>If you can write some code, I&#8217;ll see what I can find for you. <img src='http://return-true.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Just beware that WordPress tends to have a bit of a gripe with PHP in the comments system. You could try using &lt;pre lang=&#8221;php&#8221;&gt; your code &lt;/pre&gt; and hopefully that should work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://return-true.com/2008/12/creating-a-on-the-fly-sortable-table-with-php-mysql-jquery/comment-page-1/#comment-8170</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 11 Jun 2009 06:36:14 +0000</pubDate>
		<guid isPermaLink="false">http://return-true.com/?p=371#comment-8170</guid>
		<description>I need to prepare some stuff to show, cause the Template Engine I&#039;m use is in brazillian-portuguese wich I&#039;m almost sure you can&#039;t read hehe.</description>
		<content:encoded><![CDATA[<p>I need to prepare some stuff to show, cause the Template Engine I&#8217;m use is in brazillian-portuguese wich I&#8217;m almost sure you can&#8217;t read hehe.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
