<?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: Textarea maxlength</title>
	<atom:link href="http://www.yelotofu.com/2009/12/jquery-textarea-max-length/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yelotofu.com/2009/12/jquery-textarea-max-length/</link>
	<description>&#34;In building standards compliant sites we are creating a better Web for the future.&#34;</description>
	<lastBuildDate>Thu, 02 Feb 2012 00:55:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Donyking</title>
		<link>http://www.yelotofu.com/2009/12/jquery-textarea-max-length/comment-page-1/#comment-12851</link>
		<dc:creator>Donyking</dc:creator>
		<pubDate>Wed, 11 Aug 2010 09:04:34 +0000</pubDate>
		<guid isPermaLink="false">http://yelotofu.com/?p=597#comment-12851</guid>
		<description>OK,Thanks all </description>
		<content:encoded><![CDATA[<p>OK,Thanks all</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: caphun</title>
		<link>http://www.yelotofu.com/2009/12/jquery-textarea-max-length/comment-page-1/#comment-12847</link>
		<dc:creator>caphun</dc:creator>
		<pubDate>Wed, 11 Aug 2010 00:05:56 +0000</pubDate>
		<guid isPermaLink="false">http://yelotofu.com/?p=597#comment-12847</guid>
		<description>@donyking: pasting seems to work? 
 
This simple demo doesn&#039;t cover cases such as those mentioned by Tom above. To handle more complex cases such as highlighting you need to look into text range and selections. </description>
		<content:encoded><![CDATA[<p>@donyking: pasting seems to work? </p>
<p>This simple demo doesn&#039;t cover cases such as those mentioned by Tom above. To handle more complex cases such as highlighting you need to look into text range and selections.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donyking</title>
		<link>http://www.yelotofu.com/2009/12/jquery-textarea-max-length/comment-page-1/#comment-12841</link>
		<dc:creator>Donyking</dc:creator>
		<pubDate>Tue, 10 Aug 2010 18:55:32 +0000</pubDate>
		<guid isPermaLink="false">http://yelotofu.com/?p=597#comment-12841</guid>
		<description>Thanks for your share 
but if i press Ctrl+v it will not work  
How to resolve this situation? </description>
		<content:encoded><![CDATA[<p>Thanks for your share</p>
<p>but if i press Ctrl+v it will not work </p>
<p>How to resolve this situation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.yelotofu.com/2009/12/jquery-textarea-max-length/comment-page-1/#comment-12513</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 23 Jun 2010 21:43:44 +0000</pubDate>
		<guid isPermaLink="false">http://yelotofu.com/?p=597#comment-12513</guid>
		<description>Thanks for creating this solution. But it doesn&#039;t allow the following scenario: 
 
- Fill the textarea until maxlength is reached. 
- Select some of the characters. 
- Type a letter to replace the selected part. 
 
The replacement will not occur. </description>
		<content:encoded><![CDATA[<p>Thanks for creating this solution. But it doesn&#039;t allow the following scenario:</p>
<p>- Fill the textarea until maxlength is reached.</p>
<p>- Select some of the characters.</p>
<p>- Type a letter to replace the selected part.</p>
<p>The replacement will not occur.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cloudgen</title>
		<link>http://www.yelotofu.com/2009/12/jquery-textarea-max-length/comment-page-1/#comment-12252</link>
		<dc:creator>Cloudgen</dc:creator>
		<pubDate>Mon, 10 May 2010 09:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://yelotofu.com/?p=597#comment-12252</guid>
		<description>Thanks for sharing Caphun. By the way, I&#039;ve tried your code in jsbin :P  &lt;a href=&quot;http://jsbin.com/ebime4/edit&quot; rel=&quot;nofollow&quot;&gt;http://jsbin.com/ebime4/edit&lt;/a&gt; </description>
		<content:encoded><![CDATA[<p>Thanks for sharing Caphun. By the way, I&#039;ve tried your code in jsbin <img src='http://www.yelotofu.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
  <a href="http://jsbin.com/ebime4/edit" rel="nofollow">http://jsbin.com/ebime4/edit</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roren</title>
		<link>http://www.yelotofu.com/2009/12/jquery-textarea-max-length/comment-page-1/#comment-10493</link>
		<dc:creator>roren</dc:creator>
		<pubDate>Tue, 12 Jan 2010 12:23:42 +0000</pubDate>
		<guid isPermaLink="false">http://yelotofu.com/?p=597#comment-10493</guid>
		<description>Great post. Really helped me a lot. Thank you very much. </description>
		<content:encoded><![CDATA[<p>Great post. Really helped me a lot. Thank you very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: caphun</title>
		<link>http://www.yelotofu.com/2009/12/jquery-textarea-max-length/comment-page-1/#comment-10310</link>
		<dc:creator>caphun</dc:creator>
		<pubDate>Sun, 03 Jan 2010 12:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://yelotofu.com/?p=597#comment-10310</guid>
		<description>@Tontyna: thanks for the input. I have updated this post to add 46 to the ignore list. To fix the keyCode issue I&#039;m using $.data to store the keyCode value from keydown, then use that rather than the one from keypress which seemed to be the problem in the previous version. Also the code now uses live binding. 
 
I actually think keypress is the best place to stop user input since it also stops repeat keystrokes if the user keeps a key pressed down. </description>
		<content:encoded><![CDATA[<p>@Tontyna: thanks for the input. I have updated this post to add 46 to the ignore list. To fix the keyCode issue I&#039;m using $.data to store the keyCode value from keydown, then use that rather than the one from keypress which seemed to be the problem in the previous version. Also the code now uses live binding.</p>
<p>I actually think keypress is the best place to stop user input since it also stops repeat keystrokes if the user keeps a key pressed down.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tontyna</title>
		<link>http://www.yelotofu.com/2009/12/jquery-textarea-max-length/comment-page-1/#comment-10255</link>
		<dc:creator>Tontyna</dc:creator>
		<pubDate>Thu, 31 Dec 2009 08:20:22 +0000</pubDate>
		<guid isPermaLink="false">http://yelotofu.com/?p=597#comment-10255</guid>
		<description>Thanks for the example, but using keypress instead of keydown is not a good solution - this will ignore the characters with ASCII code 33 to 40 (&#039;!&#039;, &#039;&quot;&#039; .. &#039;(&#039;) - i.e.: you can enter them after maxlength is reached.  
Seems to be a decision between Opera and &#039;not-so-frequently-used&#039; letters. 
 
46 = delete should also be included in the ignore array. </description>
		<content:encoded><![CDATA[<p>Thanks for the example, but using keypress instead of keydown is not a good solution &#8211; this will ignore the characters with ASCII code 33 to 40 (&#039;!&#039;, &#039;&quot;&#039; .. &#039;(&#039;) &#8211; i.e.: you can enter them after maxlength is reached. </p>
<p>Seems to be a decision between Opera and &#039;not-so-frequently-used&#039; letters.</p>
<p>46 = delete should also be included in the ignore array.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
