<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Development Blog &#187; sorter</title>
	<atom:link href="http://www.leigeber.com/tag/sorter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leigeber.com</link>
	<description>This web development blog features fresh articles on JavaScript, AJAX, CSS, XHTML, PHP, Photoshop and more.</description>
	<lastBuildDate>Sat, 13 Feb 2010 02:05:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Advanced JavaScript Table Sorter &#8211; TinyTable V3</title>
		<link>http://www.leigeber.com/2009/11/advanced-javascript-table-sorter/</link>
		<comments>http://www.leigeber.com/2009/11/advanced-javascript-table-sorter/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 01:06:24 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[sorter]]></category>
		<category><![CDATA[sorting]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://www.leigeber.com/?p=278</guid>
		<description><![CDATA[The third iteration of the TinyTable table sorting script adds search, column averages and totals, record numbering, a view all function, and a reset function. At only 6KB it is still lightweight, quick, and includes all previous features.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leigeber.com/wp-content/uploads/2009/11/tinytablev3.jpg" alt="TinyTable Table Sorting V3" width="592" height="275" /></p>
<p>The third iteration of the TinyTable table sorting script adds search, column averages and totals, record numbering, a view all function, and a reset function. At only 6KB it is still lightweight, quick, and includes all previous TinyTable features. Other features include alternate row highlighting, header class toggling, auto data type recognition, and selective column sorting. If you don&#8217;t need the new features take a look at the <a href="http://www.leigeber.com/2009/03/table-sorter/">second version</a> of the script which weighs 2.5KB.</p>
<p>To initialize a table sorter follow the pattern below:</p>
<pre class="brush: jscript;">var sorter = new TINY.table.sorter('sorter','table',{
	headclass:'head', // Header Class //
	ascclass:'asc', // Ascending Class //
	descclass:'desc', // Descending Class //
	evenclass:'evenrow', // Even Row Class //
	oddclass:'oddrow', // Odd Row Class //
	evenselclass:'evenselected', // Even Selected Column Class //
	oddselclass:'oddselected', // Odd Selected Column Class //
	paginate:true, // Paginate? (true or false) //
	size:10, // Initial Page Size //
	colddid:'columns', // Columns Dropdown ID (optional) //
	currentid:'currentpage', // Current Page ID (optional) //
	totalid:'totalpages', // Current Page ID (optional) //
	startingrecid:'startrecord', // Starting Record ID (optional) //
	endingrecid:'endrecord', // Ending Record ID (optional) //
	totalrecid:'totalrecords', // Total Records ID (optional) //
	hoverid:'selectedrow', // Hover Row ID (optional) //
	pageddid:'pagedropdown', // Page Dropdown ID (optional) //
	navid:'tablenav', // Table Navigation ID (optional) //
	sortcolumn:1, // Index of Initial Column to Sort (optional) //
	sortdir:1, // Sort Direction (1 or -1) //
	sum:[8], // Index of Columns to Sum (optional) //
	avg:[6,7,8,9], // Index of Columns to Average (optional) //
	columns:[{index:7, format:'%', decimals:1},{index:8, format:'$', decimals:0}], // Sorted Column Settings (optional) //
	init:true // Init Now? (true or false) //
});</pre>
<p>The first parameter taken by TINY.table.sorter is the variable name used for the object, the second is the id of the table, and the third is the settings object. You can either initialize the script in the object creation by setting init to true or you can initialize it later using sorter.init().</p>
<p>This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the <a href="http://creativecommons.org/licenses/by/3.0/us/" target="_blank">creative commons license</a>. Community support is <a href="http://forum.leigeber.com/">available here</a>. Paid support is also available, <a href="http://www.leigeber.com/contact/">contact me</a> for details.</p>
<p><strong><a href="http://sandbox.leigeber.com/tinytablev3/index.html">Click here for the demo.</a></strong></p>
<p><strong><a href="http://forum.leigeber.com/index.php?app=downloads&amp;showfile=3">Click here to download the source code.</a></strong></p>
<p><strong>11/16/2009</strong> &#8211; Updated script to function correctly in IE6/IE7.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leigeber.com/2009/11/advanced-javascript-table-sorter/feed/</wfw:commentRss>
		<slash:comments>59</slash:comments>
		</item>
		<item>
		<title>TinyTable JavaScript Table Sorter &#8211; 2.5KB</title>
		<link>http://www.leigeber.com/2009/03/table-sorter/</link>
		<comments>http://www.leigeber.com/2009/03/table-sorter/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 04:38:15 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[pagination]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[sorter]]></category>
		<category><![CDATA[sorting]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://www.leigeber.com/?p=154</guid>
		<description><![CDATA[This table sorter script is easy to use and feature packed at only 2.5KB. Features include column and alternate row highlighting, header class toggling, auto data type recognition, selective column sorting, pagination, link support, and more.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leigeber.com/wp-content/uploads/2009/03/tiny-table.gif" alt="Table Sorter" width="459" height="175" /></p>
<p>This updated table sorter script is easy to use and feature packed at only 2.5KB. New features include column highlighting, optional pagination, support for links, and date/link parsing. A few other features are alternate row highlighting, header class toggling, auto data type recognition and selective column sorting. More updates will follow soon.</p>
<p>To initialize a table sorter follow the pattern below:</p>
<pre class="brush: jscript;">var sorter = new TINY.table.sorter('sorter');
sorter.head = 'head'; //header class name
sorter.asc = 'asc'; //ascending header class name
sorter.desc = 'desc'; //descending header class name
sorter.even = 'evenrow'; //even row class name
sorter.odd = 'oddrow'; //odd row class name
sorter.evensel = 'evenselected'; //selected column even class
sorter.oddsel = 'oddselected'; //selected column odd class
sorter.paginate = true (false); //toggle for pagination logic
sorter.pagesize = 15 (20); //toggle for pagination logic
sorter.currentid = 'currentpage'; //current page id
sorter.limitid = 'pagelimit'; //page limit id
sorter.init('table',1);</pre>
<p>Before initialization, a new table sorter object must be created. The parameter taken by TINY.table.sorter is the variable name used for the object. The object.init function takes 2 parameters: the id of the table and the initially sorted column index (optional). If you want to exclude a column from sorting add class=”nosort” to the appropriate table header. Table styling is completely customizable via the CSS.</p>
<p>This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the <a href="http://creativecommons.org/licenses/by/3.0/us/" target="_blank">creative commons license</a>. Community support is <a href="http://forum.leigeber.com/">available here</a>. Paid support is also available, <a href="http://www.leigeber.com/contact/">contact me</a> for details.</p>
<p><strong><a href="http://sandbox.leigeber.com/table-sorter/index.html">Click here for the demo.</a></strong></p>
<p><strong><a href="http://sandbox.leigeber.com/table-sorter/sorter.zip">Click here to download the source code.</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leigeber.com/2009/03/table-sorter/feed/</wfw:commentRss>
		<slash:comments>201</slash:comments>
		</item>
		<item>
		<title>JavaScript Table Sorter</title>
		<link>http://www.leigeber.com/2008/11/javascript-table-sorter/</link>
		<comments>http://www.leigeber.com/2008/11/javascript-table-sorter/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 03:59:14 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[sorter]]></category>
		<category><![CDATA[sorting]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://www.leigeber.com/?p=87</guid>
		<description><![CDATA[This JavaScript table sorting script is easy to use, fast and lightweight at only 1.7KB. It includes alternate row formatting, header class toggling, auto data type recognition and selective column sorting.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leigeber.com/wp-content/uploads/2008/11/table_sorter.gif" alt="Table Sorter" width="459" height="190" /></p>
<p>A new version of this script is <a href="http://www.leigeber.com/2009/03/table-sorter/"><strong>available here</strong></a>.</p>
<p>This JavaScript table sorting script is easy to use, fast and lightweight at only 1.7KB. It includes alternate row formatting, header class toggling, auto data type recognition and selective column sorting. It will currently sort strings, numbers and currency. More features will follow.</p>
<p>To initialize sorting use the following code:</p>
<pre class="brush: jscript;">var sorter=new table.sorter('sorter');
sorter.init('sorter',1);</pre>
<p>You must create a new table sorter object before initialization. The parameter taken by table.sorter is the variable name used for the object. The object.init function takes 2 parameters: the id of the table and the index of the initially sorted column (optional). If you want to exclude a column from sorting then add class=&#8221;nosort&#8221; to the appropriate table header. The styling of the table is totally customizable via CSS.</p>
<p>This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the <a href="http://creativecommons.org/licenses/by/3.0/us/" target="_blank">creative commons license</a>. Community support is <a href="http://forum.leigeber.com/">available here</a>. Paid support is also available, <a href="http://www.leigeber.com/contact/">contact me</a> for details.</p>
<p><strong><a href="http://sandbox.leigeber.com/sorter/index.html">Click here for the demo.</a></strong></p>
<p><strong><a href="http://sandbox.leigeber.com/sorter/sorter.zip">Click here to download the source code.</a></strong></p>
<p>I would also like to thank my first sponsor, <a href="http://www.webbynode.com" target="_blank">WebbyNode</a>, and encourage you all to sign up for their beta Xen VPS Service by visiting their website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leigeber.com/2008/11/javascript-table-sorter/feed/</wfw:commentRss>
		<slash:comments>67</slash:comments>
		</item>
	</channel>
</rss>
