<?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>Комментарии к записи: Растягивающаяся textarea</title>
	<atom:link href="http://markup-javascript.com/2009/07/05/rastyagivayushhayasya-textarea/feed/" rel="self" type="application/rss+xml" />
	<link>http://markup-javascript.com/2009/07/05/rastyagivayushhayasya-textarea/</link>
	<description>Блог web-технолога</description>
	<lastBuildDate>Tue, 31 Aug 2010 10:20:49 +0300</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Автор: D</title>
		<link>http://markup-javascript.com/2009/07/05/rastyagivayushhayasya-textarea/comment-page-1/#comment-701</link>
		<dc:creator>D</dc:creator>
		<pubDate>Thu, 19 Aug 2010 16:27:54 +0000</pubDate>
		<guid isPermaLink="false">http://markup-javascript.com/?p=507#comment-701</guid>
		<description>В IE не пашет</description>
		<content:encoded><![CDATA[<p>В IE не пашет</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: Arcod</title>
		<link>http://markup-javascript.com/2009/07/05/rastyagivayushhayasya-textarea/comment-page-1/#comment-677</link>
		<dc:creator>Arcod</dc:creator>
		<pubDate>Sat, 26 Jun 2010 13:33:20 +0000</pubDate>
		<guid isPermaLink="false">http://markup-javascript.com/?p=507#comment-677</guid>
		<description>textarea id=&quot;textarea&quot; style=&quot;overflow:hidden&quot; rows=&quot;3&quot; onkeyup=&quot;setRows()&quot;

text...

textarea</description>
		<content:encoded><![CDATA[<p>textarea id=&#8221;textarea&#8221; style=&#8221;overflow:hidden&#8221; rows=&#8221;3&#8243; onkeyup=&#8221;setRows()&#8221;</p>
<p>text&#8230;</p>
<p>textarea</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: Arcod</title>
		<link>http://markup-javascript.com/2009/07/05/rastyagivayushhayasya-textarea/comment-page-1/#comment-676</link>
		<dc:creator>Arcod</dc:creator>
		<pubDate>Sat, 26 Jun 2010 13:31:56 +0000</pubDate>
		<guid isPermaLink="false">http://markup-javascript.com/?p=507#comment-676</guid>
		<description>можно упростить:

&lt;code lang=&quot;javascript&quot;&gt;

function setRows()
{
	txt = document.getElementById(&#039;textarea&#039;);
	txt.rows = 3;

	while (txt.clientHeight &lt; txt.scrollHeight) { txt.rows += 1; } 		
}

&lt;/code&gt;
</description>
		<content:encoded><![CDATA[<p>можно упростить:</p>
<div class="codecolorer-container javascript twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">function</span> setRows<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; txt <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'textarea'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; txt.<span style="color: #660066;">rows</span> <span style="color: #339933;">=</span> <span style="color: #CC0000;">3</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span>txt.<span style="color: #660066;">clientHeight</span> <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> txt.<span style="color: #660066;">scrollHeight</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> txt.<span style="color: #660066;">rows</span> <span style="color: #339933;">+=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> &nbsp; &nbsp; &nbsp; <br />
<span style="color: #009900;">&#125;</span></div></div>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: Kama</title>
		<link>http://markup-javascript.com/2009/07/05/rastyagivayushhayasya-textarea/comment-page-1/#comment-643</link>
		<dc:creator>Kama</dc:creator>
		<pubDate>Thu, 27 May 2010 09:23:27 +0000</pubDate>
		<guid isPermaLink="false">http://markup-javascript.com/?p=507#comment-643</guid>
		<description>Спасибо тебе чувак! За проделанную работу. Лиса 3,6, хром и опера все норм понимают, а мне больше и не надо.</description>
		<content:encoded><![CDATA[<p>Спасибо тебе чувак! За проделанную работу. Лиса 3,6, хром и опера все норм понимают, а мне больше и не надо.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: Алексей</title>
		<link>http://markup-javascript.com/2009/07/05/rastyagivayushhayasya-textarea/comment-page-1/#comment-472</link>
		<dc:creator>Алексей</dc:creator>
		<pubDate>Mon, 09 Nov 2009 14:46:48 +0000</pubDate>
		<guid isPermaLink="false">http://markup-javascript.com/?p=507#comment-472</guid>
		<description>Да в скрипте есть пару багов, скоро руки дойдут до апдейта следующей версии.</description>
		<content:encoded><![CDATA[<p>Да в скрипте есть пару багов, скоро руки дойдут до апдейта следующей версии.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: Baltazawr</title>
		<link>http://markup-javascript.com/2009/07/05/rastyagivayushhayasya-textarea/comment-page-1/#comment-471</link>
		<dc:creator>Baltazawr</dc:creator>
		<pubDate>Fri, 06 Nov 2009 06:59:53 +0000</pubDate>
		<guid isPermaLink="false">http://markup-javascript.com/?p=507#comment-471</guid>
		<description>А ты попробуй под мозилой. у меня 3.0.10 и некорректно работает</description>
		<content:encoded><![CDATA[<p>А ты попробуй под мозилой. у меня 3.0.10 и некорректно работает</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: vflash</title>
		<link>http://markup-javascript.com/2009/07/05/rastyagivayushhayasya-textarea/comment-page-1/#comment-242</link>
		<dc:creator>vflash</dc:creator>
		<pubDate>Fri, 14 Aug 2009 23:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://markup-javascript.com/?p=507#comment-242</guid>
		<description>не во всех браузерах отработает как надо. некоторые не уменьшают scrollHeight при уменьшении контента. в некоторых это вообше не работает. а в каком то вроде и вовсе только при помощи первого варианта (вроде опера какая-та). уже не помню как делал но одним методом точно не обойтись.</description>
		<content:encoded><![CDATA[<p>не во всех браузерах отработает как надо. некоторые не уменьшают scrollHeight при уменьшении контента. в некоторых это вообше не работает. а в каком то вроде и вовсе только при помощи первого варианта (вроде опера какая-та). уже не помню как делал но одним методом точно не обойтись.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
