<?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: Smart Area: A Lightweight Resizing Text Area Plugin for jQuery</title>
	<atom:link href="http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/</link>
	<description>AJAX Development, News, Techniques &#38; More</description>
	<lastBuildDate>Tue, 24 Jan 2012 01:39:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Altaphista</title>
		<link>http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/comment-page-1/#comment-25210</link>
		<dc:creator>Altaphista</dc:creator>
		<pubDate>Fri, 17 Sep 2010 13:19:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/#comment-25210</guid>
		<description>An slight improvement :-) (i can&#039;t edit above...)


jQuery.SA = {
	resizeArea : function ( t ) {

		var lines = t.value.split(&#039;\n&#039;) &#124;&#124; [];
		var newRows = lines.length;
		var oldRows = t.rows;
		var len = 20;//minimum width of textarea
		for (var i = 0; i = t.cols) {
				newRows += Math.floor(line.length / t.cols);
			}
			len = Math.max(len, line.length);
		}
		if (len&gt;80) len = 80;//maximum width of textarea
		t.cols = len;
		if (newRows &gt; t.rows) t.rows = newRows;
		if (newRows &lt; t.rows) t.rows = Math.max(3, newRows);	
	}
}</description>
		<content:encoded><![CDATA[<p>An slight improvement <img src='http://www.ajaxbestiary.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  (i can&#8217;t edit above&#8230;)</p>
<p>jQuery.SA = {<br />
	resizeArea : function ( t ) {</p>
<p>		var lines = t.value.split(&#8216;\n&#8217;) || [];<br />
		var newRows = lines.length;<br />
		var oldRows = t.rows;<br />
		var len = 20;//minimum width of textarea<br />
		for (var i = 0; i = t.cols) {<br />
				newRows += Math.floor(line.length / t.cols);<br />
			}<br />
			len = Math.max(len, line.length);<br />
		}<br />
		if (len&gt;80) len = 80;//maximum width of textarea<br />
		t.cols = len;<br />
		if (newRows &gt; t.rows) t.rows = newRows;<br />
		if (newRows &lt; t.rows) t.rows = Math.max(3, newRows);<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Altaphista</title>
		<link>http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/comment-page-1/#comment-25208</link>
		<dc:creator>Altaphista</dc:creator>
		<pubDate>Fri, 17 Sep 2010 13:09:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/#comment-25208</guid>
		<description>Nice addition if you want the columns to adjust as well:

My own jQuery.SA with the adjustments.

jQuery.SA = {
	resizeArea : function ( t ) {

		var lines = t.value.split(&#039;\n&#039;) &#124;&#124; [];
		var newRows = lines.length;
		var oldRows = t.rows;
		
		for (var i = 0; i = t.cols) {
				newRows += Math.floor(line.length / t.cols);
			}
			if (line.length &gt;20) t.cols = Math.min(100, line.length);
		}
		if (newRows &gt; t.rows) t.rows = newRows;
		if (newRows &lt; t.rows) t.rows = Math.max(3, newRows);	
	}
}</description>
		<content:encoded><![CDATA[<p>Nice addition if you want the columns to adjust as well:</p>
<p>My own jQuery.SA with the adjustments.</p>
<p>jQuery.SA = {<br />
	resizeArea : function ( t ) {</p>
<p>		var lines = t.value.split(&#8216;\n&#8217;) || [];<br />
		var newRows = lines.length;<br />
		var oldRows = t.rows;</p>
<p>		for (var i = 0; i = t.cols) {<br />
				newRows += Math.floor(line.length / t.cols);<br />
			}<br />
			if (line.length &gt;20) t.cols = Math.min(100, line.length);<br />
		}<br />
		if (newRows &gt; t.rows) t.rows = newRows;<br />
		if (newRows &lt; t.rows) t.rows = Math.max(3, newRows);<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dalbrecht</title>
		<link>http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/comment-page-1/#comment-19984</link>
		<dc:creator>dalbrecht</dc:creator>
		<pubDate>Wed, 30 Jun 2010 08:31:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/#comment-19984</guid>
		<description>Great Catch, Thanks for adding this Josh.</description>
		<content:encoded><![CDATA[<p>Great Catch, Thanks for adding this Josh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/comment-page-1/#comment-19953</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Tue, 29 Jun 2010 17:15:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/#comment-19953</guid>
		<description>I was previously using the .autoResize() plugin, which is nice and even animates as the textareas resize, but unfortunately it cause other parts of my jquery form validation routine to not work ( see my question at http://stackoverflow.com/questions/3122008/jquery-autoresize-breaks-form-validation-for-textareas). Your smart area plugin totally fixed my problem! Thanks!

One note -- in FF (I didn&#039;t test this in other browsers before fixing it), scrollbars flicker on and off each time a new line is created. I added &#039;overflow: hidden&#039; to my textareas&#039; css to prevent this.</description>
		<content:encoded><![CDATA[<p>I was previously using the .autoResize() plugin, which is nice and even animates as the textareas resize, but unfortunately it cause other parts of my jquery form validation routine to not work ( see my question at <a href="http://stackoverflow.com/questions/3122008/jquery-autoresize-breaks-form-validation-for-textareas" rel="nofollow">http://stackoverflow.com/questions/3122008/jquery-autoresize-breaks-form-validation-for-textareas</a>). Your smart area plugin totally fixed my problem! Thanks!</p>
<p>One note &#8212; in FF (I didn&#8217;t test this in other browsers before fixing it), scrollbars flicker on and off each time a new line is created. I added &#8216;overflow: hidden&#8217; to my textareas&#8217; css to prevent this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PIBlog &#187; Blog Archive &#187; simple textarea auto-resizer</title>
		<link>http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/comment-page-1/#comment-6164</link>
		<dc:creator>PIBlog &#187; Blog Archive &#187; simple textarea auto-resizer</dc:creator>
		<pubDate>Fri, 24 Apr 2009 07:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/#comment-6164</guid>
		<description>[...] I was having issues with a textarea resizer (a hacked-up version of SmartArea) that I had been using for a while in a work project. It was working fine for textareas of a [...]</description>
		<content:encoded><![CDATA[<p>[...] I was having issues with a textarea resizer (a hacked-up version of SmartArea) that I had been using for a while in a work project. It was working fine for textareas of a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Bonser</title>
		<link>http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/comment-page-1/#comment-6149</link>
		<dc:creator>Paul Bonser</dc:creator>
		<pubDate>Thu, 23 Apr 2009 23:38:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/#comment-6149</guid>
		<description>A handy addition to this is to add

.scroll(function(){ jQuery.SA.resizeArea( this ); } )

right after the .keyup line, so it will handle resizing when someone right-clicks and selects &quot;paste&quot;, causing scroll bars to appear.</description>
		<content:encoded><![CDATA[<p>A handy addition to this is to add</p>
<p>.scroll(function(){ jQuery.SA.resizeArea( this ); } )</p>
<p>right after the .keyup line, so it will handle resizing when someone right-clicks and selects &#8220;paste&#8221;, causing scroll bars to appear.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jSurfer</title>
		<link>http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/comment-page-1/#comment-3095</link>
		<dc:creator>jSurfer</dc:creator>
		<pubDate>Thu, 30 Oct 2008 01:35:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/#comment-3095</guid>
		<description>Do you have a demo installed somewhere for viewing?</description>
		<content:encoded><![CDATA[<p>Do you have a demo installed somewhere for viewing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/comment-page-1/#comment-2443</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Mon, 08 Sep 2008 15:02:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/#comment-2443</guid>
		<description>thanks for the cool plugin!

mike, try something like this.
  $(&quot;textarea&quot;).smartArea();</description>
		<content:encoded><![CDATA[<p>thanks for the cool plugin!</p>
<p>mike, try something like this.<br />
  $(&#8220;textarea&#8221;).smartArea();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/comment-page-1/#comment-1687</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Mon, 28 Jul 2008 22:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxbestiary.com/2007/11/14/smart-area-a-lightweight-resizing-text-area-plugin-for-jquery/#comment-1687</guid>
		<description>How would I use this?
Not sure how to call the function</description>
		<content:encoded><![CDATA[<p>How would I use this?<br />
Not sure how to call the function</p>
]]></content:encoded>
	</item>
</channel>
</rss>

