<?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: Sort Lock Table</title>
	<atom:link href="http://stansight.com/WordPress/2007/10/07/sort-lock-table/feed/" rel="self" type="application/rss+xml" />
	<link>http://stansight.com/WordPress/2007/10/07/sort-lock-table/</link>
	<description>Coding for the Web - A JavaScript Resource</description>
	<lastBuildDate>Mon, 06 Dec 2010 16:29:21 -0500</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Arun</title>
		<link>http://stansight.com/WordPress/2007/10/07/sort-lock-table/comment-page-1/#comment-1412</link>
		<dc:creator>Arun</dc:creator>
		<pubDate>Tue, 06 Apr 2010 12:04:43 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=3#comment-1412</guid>
		<description>Can you please try this, i have requirement where the first 3 columns in a table should be freezed during horizontall scroll. I tried a lot but coudn&#039;t acheive this. Can you please help with this?</description>
		<content:encoded><![CDATA[<p>Can you please try this, i have requirement where the first 3 columns in a table should be freezed during horizontall scroll. I tried a lot but coudn&#8217;t acheive this. Can you please help with this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravi</title>
		<link>http://stansight.com/WordPress/2007/10/07/sort-lock-table/comment-page-1/#comment-1409</link>
		<dc:creator>Ravi</dc:creator>
		<pubDate>Wed, 17 Mar 2010 16:23:03 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=3#comment-1409</guid>
		<description>Hi There,

How are you doing..I&#039;m looking for some example for locked sorting. Above piece of code suits for requirement, however it&#039;s not working in Safari browse. My observation in safari is header is scrolling up. Appreciate your valuable inputs to fix this issue.

Thanks in advance..

-Ravi</description>
		<content:encoded><![CDATA[<p>Hi There,</p>
<p>How are you doing..I&#8217;m looking for some example for locked sorting. Above piece of code suits for requirement, however it&#8217;s not working in Safari browse. My observation in safari is header is scrolling up. Appreciate your valuable inputs to fix this issue.</p>
<p>Thanks in advance..</p>
<p>-Ravi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie Dodwell</title>
		<link>http://stansight.com/WordPress/2007/10/07/sort-lock-table/comment-page-1/#comment-1408</link>
		<dc:creator>Eddie Dodwell</dc:creator>
		<pubDate>Tue, 09 Mar 2010 16:11:09 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=3#comment-1408</guid>
		<description>I know this is an old thread, but being not a js programmer and loving your sortTables, I have a ?. Is there possibly a way to have 2 tr in the thead section that are left alone. The table has a 1st tr that is a multi column grouping and the 2nd tr is the actual column labels with the onclick sort. I have tried doing originalCol.shift(); twice to try to move down in the array, but to no avail. The 2 trs stay in place and sorts correctly, but the sort image disappears, the alternating tr colors are no longer altered and no highlight of sorted column. Sorted column highlight is no biggie really, but would like to retain alternateRow and sort img. 
Thanks for devoting time to these kind of scripts for we who are less talented.</description>
		<content:encoded><![CDATA[<p>I know this is an old thread, but being not a js programmer and loving your sortTables, I have a ?. Is there possibly a way to have 2 tr in the thead section that are left alone. The table has a 1st tr that is a multi column grouping and the 2nd tr is the actual column labels with the onclick sort. I have tried doing originalCol.shift(); twice to try to move down in the array, but to no avail. The 2 trs stay in place and sorts correctly, but the sort image disappears, the alternating tr colors are no longer altered and no highlight of sorted column. Sorted column highlight is no biggie really, but would like to retain alternateRow and sort img.<br />
Thanks for devoting time to these kind of scripts for we who are less talented.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: choi</title>
		<link>http://stansight.com/WordPress/2007/10/07/sort-lock-table/comment-page-1/#comment-1398</link>
		<dc:creator>choi</dc:creator>
		<pubDate>Thu, 25 Feb 2010 13:35:58 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=3#comment-1398</guid>
		<description>Stan,

A small problem,

When I scroll,a small portion of the rows that moves upwards is visible from betwwwn the container border and the header top.Pls help</description>
		<content:encoded><![CDATA[<p>Stan,</p>
<p>A small problem,</p>
<p>When I scroll,a small portion of the rows that moves upwards is visible from betwwwn the container border and the header top.Pls help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://stansight.com/WordPress/2007/10/07/sort-lock-table/comment-page-1/#comment-1396</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Mon, 15 Feb 2010 16:57:48 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=3#comment-1396</guid>
		<description>Stan - what great code. It’s very clean and elegant. I have used it for a few tables so far, and the users love it. However if there is a  tag in the title, FF does not display properly. It causes FF to hide the scrollbar for the table but adds a scrollbar to the right side and to the bottom of the table but scrolls the required scrollbar for the table off screen to the right. If you scroll to the right, you can see and use the scrollbar for the table.

To replicate this problem, add a ‘’ tag after ‘NAME’.

Any suggestions? I can set this up on an external web site if needed.</description>
		<content:encoded><![CDATA[<p>Stan &#8211; what great code. It’s very clean and elegant. I have used it for a few tables so far, and the users love it. However if there is a  tag in the title, FF does not display properly. It causes FF to hide the scrollbar for the table but adds a scrollbar to the right side and to the bottom of the table but scrolls the required scrollbar for the table off screen to the right. If you scroll to the right, you can see and use the scrollbar for the table.</p>
<p>To replicate this problem, add a ‘’ tag after ‘NAME’.</p>
<p>Any suggestions? I can set this up on an external web site if needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://stansight.com/WordPress/2007/10/07/sort-lock-table/comment-page-1/#comment-98</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Tue, 25 Nov 2008 22:20:25 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=3#comment-98</guid>
		<description>Stan,

I just stumbled across your great script and almost have it working the way I&#039;d like. One thing I&#039;m having trouble with is your demo table having entries in the name column that begin with numbers. I&#039;d like a column for book titles but when I replace a name with a title that begins with a number, the column sorts incorrectly.

Thanks in advance for any help...</description>
		<content:encoded><![CDATA[<p>Stan,</p>
<p>I just stumbled across your great script and almost have it working the way I&#8217;d like. One thing I&#8217;m having trouble with is your demo table having entries in the name column that begin with numbers. I&#8217;d like a column for book titles but when I replace a name with a title that begins with a number, the column sorts incorrectly.</p>
<p>Thanks in advance for any help&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stan Slaughter</title>
		<link>http://stansight.com/WordPress/2007/10/07/sort-lock-table/comment-page-1/#comment-90</link>
		<dc:creator>Stan Slaughter</dc:creator>
		<pubDate>Thu, 18 Sep 2008 12:29:44 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=3#comment-90</guid>
		<description>I&#039;m glad you find it useful. :)

That reminds me - I really do need to take the time and do a much more detailed write up on it.

It&#039;s jammed full of interesting DOM techniques and tricks that really deserve to be pointed out and explained some where other than just inside the code itself.</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad you find it useful. :)</p>
<p>That reminds me &#8211; I really do need to take the time and do a much more detailed write up on it.</p>
<p>It&#8217;s jammed full of interesting DOM techniques and tricks that really deserve to be pointed out and explained some where other than just inside the code itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gordon</title>
		<link>http://stansight.com/WordPress/2007/10/07/sort-lock-table/comment-page-1/#comment-89</link>
		<dc:creator>gordon</dc:creator>
		<pubDate>Wed, 17 Sep 2008 14:41:51 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=3#comment-89</guid>
		<description>dear stan
thanks for the script - it&#039;s genius and something i could never have come up with myself.

i have implemented your script at http://www.passporttorichmond.co.uk/pubs/events.html
and i have one problem. 

what changes do i have to make to sorttable.js so that empty cells in my table are always sorted as the last rows when a column heading is clicked.

many thanks
GA</description>
		<content:encoded><![CDATA[<p>dear stan<br />
thanks for the script &#8211; it&#8217;s genius and something i could never have come up with myself.</p>
<p>i have implemented your script at <a href="http://www.passporttorichmond.co.uk/pubs/events.html" rel="nofollow">http://www.passporttorichmond.co.uk/pubs/events.html</a><br />
and i have one problem. </p>
<p>what changes do i have to make to sorttable.js so that empty cells in my table are always sorted as the last rows when a column heading is clicked.</p>
<p>many thanks<br />
GA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stan Slaughter</title>
		<link>http://stansight.com/WordPress/2007/10/07/sort-lock-table/comment-page-1/#comment-75</link>
		<dc:creator>Stan Slaughter</dc:creator>
		<pubDate>Wed, 16 Jul 2008 13:46:28 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=3#comment-75</guid>
		<description>Interesting Martin.  So you essentially added a a new type of item to the FormatForType function in sortTable.js 

One that would understand the unique content you wanted sorted in that column. 

Nice solution to your problem.  I&#039;m glad you got it to work for you.</description>
		<content:encoded><![CDATA[<p>Interesting Martin.  So you essentially added a a new type of item to the FormatForType function in sortTable.js </p>
<p>One that would understand the unique content you wanted sorted in that column. </p>
<p>Nice solution to your problem.  I&#8217;m glad you got it to work for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://stansight.com/WordPress/2007/10/07/sort-lock-table/comment-page-1/#comment-74</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Sun, 13 Jul 2008 17:24:06 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=3#comment-74</guid>
		<description>Finally got it to work how I wanted.
I added this code to the function for modifying the values.

    // If the item matches a mixed Letter/numeric pattern (e.g. 2a, 3c)
  if (itm.match(/([1-5][abc]$)/) &#124;&#124; 
	  itm.match(/([W]$)/)) {
   // Replace letters or spaces with a number for sorting. 
    if (itm.match(/([W]$)/)){sortValue = itm.replace(/([W])/g,1);}
    else if (itm.match(/(\d[a]$)/)){sortValue = itm.replace(/([a])/g,4);}
	else if (itm.match(/(\d[b]$)/)){sortValue = itm.replace(/([b])/g,3);}
	else if (itm.match(/(\d[c]$)/)){sortValue = itm.replace(/([c])/g,2);}
    else if (itm.match(/()/)){sortValue = itm.replace(/()/g,-1);}
    else {sortValue = sortValue;}
   
	   if (isNaN(sortValue)) { 
   //  sortValue = sortValue.replace(/,/g,&#039;&#039;);
     sortValue = 0;
   } else {
     sortValue = parseFloat(sortValue);
   }
  }

It now seems to do exactly what I want without messing up the other sorting.</description>
		<content:encoded><![CDATA[<p>Finally got it to work how I wanted.<br />
I added this code to the function for modifying the values.</p>
<p>    // If the item matches a mixed Letter/numeric pattern (e.g. 2a, 3c)<br />
  if (itm.match(/([1-5][abc]$)/) ||<br />
	  itm.match(/([W]$)/)) {<br />
   // Replace letters or spaces with a number for sorting.<br />
    if (itm.match(/([W]$)/)){sortValue = itm.replace(/([W])/g,1);}<br />
    else if (itm.match(/(\d[a]$)/)){sortValue = itm.replace(/([a])/g,4);}<br />
	else if (itm.match(/(\d[b]$)/)){sortValue = itm.replace(/([b])/g,3);}<br />
	else if (itm.match(/(\d$)/)){sortValue = itm.replace(/()/g,2);}<br />
    else if (itm.match(/()/)){sortValue = itm.replace(/()/g,-1);}<br />
    else {sortValue = sortValue;}</p>
<p>	   if (isNaN(sortValue)) {<br />
   //  sortValue = sortValue.replace(/,/g,&#8221;);<br />
     sortValue = 0;<br />
   } else {<br />
     sortValue = parseFloat(sortValue);<br />
   }<br />
  }</p>
<p>It now seems to do exactly what I want without messing up the other sorting.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.043 seconds -->

