<?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://yelotofu.com/2009/12/jquery-textarea-max-length/feed/" rel="self" type="application/rss+xml" />
	<link>http://yelotofu.com/2009/12/jquery-textarea-max-length/</link>
	<description>"In building standards compliant sites we are creating a better Web for the future."</description>
	<lastBuildDate>Thu, 29 Jul 2010 11:04:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Tom</title>
		<link>http://yelotofu.com/2009/12/jquery-textarea-max-length/comment-page-1/#comment-12513</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 23 Jun 2010 13: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&#8217;t allow the following scenario:</p>
<p>- Fill the textarea until maxlength is reached.<br />
- Select some of the characters.<br />
- 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://yelotofu.com/2009/12/jquery-textarea-max-length/comment-page-1/#comment-12252</link>
		<dc:creator>Cloudgen</dc:creator>
		<pubDate>Mon, 10 May 2010 01: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
http://jsbin.com/ebime4/edit</description>
		<content:encoded><![CDATA[<p>Thanks for sharing Caphun. By the way, I&#8217;ve tried your code in jsbin <img src='http://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://yelotofu.com/2009/12/jquery-textarea-max-length/comment-page-1/#comment-10493</link>
		<dc:creator>roren</dc:creator>
		<pubDate>Tue, 12 Jan 2010 04: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://yelotofu.com/2009/12/jquery-textarea-max-length/comment-page-1/#comment-10310</link>
		<dc:creator>caphun</dc:creator>
		<pubDate>Sun, 03 Jan 2010 04: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&#8217;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://yelotofu.com/2009/12/jquery-textarea-max-length/comment-page-1/#comment-10255</link>
		<dc:creator>Tontyna</dc:creator>
		<pubDate>Thu, 31 Dec 2009 00: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 (&#8216;!&#8217;, &#8216;&#8221;&#8216; .. &#8216;(&#8216;) &#8211; i.e.: you can enter them after maxlength is reached.<br />
Seems to be a decision between Opera and &#8216;not-so-frequently-used&#8217; letters.</p>
<p>46 = delete should also be included in the ignore array.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
