<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>News</title>
    <link>http://echarp.org/news/index.rss</link>
    <description>News</description>
    <item>
      <title>Updated javascript</title>
      <pubDate>2008-10-04 17:54:01+0200</pubDate>
      <link>http://echarp.org/Updated_javascript/index.rss</link>
      <comments>http://echarp.org/Updated_javascript/index.rss</comments>
      <description>&lt;p&gt;&lt;p&gt;Now, some of the most common libraries are being handled by google.&lt;/p&gt;
&lt;p&gt;Mostly prototypes and scriptaculous, for the time being. Maybe later some others.&lt;/p&gt;
&lt;p&gt;Very nice of them, plus a good opportunity to clean up some dependencies.&lt;/p&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Re: Expanding textarea</title>
      <pubDate>2008-09-27 05:28:39+0200</pubDate>
      <link>http://echarp.org/Re_Expanding_textarea_5/index.rss</link>
      <comments>http://echarp.org/Re_Expanding_textarea_5/index.rss</comments>
      <description>&lt;p&gt;&lt;span&gt; &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Re: Expanding textarea</title>
      <pubDate>2008-08-22 23:30:30+0200</pubDate>
      <link>http://echarp.org/Re_Expanding_textarea_4/index.rss</link>
      <comments>http://echarp.org/Re_Expanding_textarea_4/index.rss</comments>
      <dc:creator>echarp</dc:creator>
      <description>&lt;p&gt;&lt;span&gt;+1 &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Re: Expanding textarea</title>
      <pubDate>2008-08-22 23:30:00+0200</pubDate>
      <link>http://echarp.org/Re_Expanding_textarea_3/index.rss</link>
      <comments>http://echarp.org/Re_Expanding_textarea_3/index.rss</comments>
      <dc:creator>echarp</dc:creator>
      <description>&lt;p&gt;&lt;span&gt;0 &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Re: Expanding textarea</title>
      <pubDate>2008-07-30 21:43:16+0200</pubDate>
      <link>http://echarp.org/Re_Expanding_textarea_2/index.rss</link>
      <comments>http://echarp.org/Re_Expanding_textarea_2/index.rss</comments>
      <description>&lt;p&gt;&lt;span&gt;qweqwe &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Re: News</title>
      <pubDate>2008-07-08 17:28:31+0200</pubDate>
      <link>http://echarp.org/Re_News/index.rss</link>
      <comments>http://echarp.org/Re_News/index.rss</comments>
      <dc:creator>123</dc:creator>
      <description>&lt;p&gt;&lt;span&gt;+1 &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Version 0.16</title>
      <pubDate>2008-05-12 23:29:58+0200</pubDate>
      <link>http://echarp.org/Version_016/index.rss</link>
      <comments>http://echarp.org/Version_016/index.rss</comments>
      <dc:creator>echarp</dc:creator>
      <description>&lt;p&gt;&lt;p&gt;Sub domains to directly access elements&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;upgraded ie7 javascript hack&lt;/li&gt;
	&lt;li&gt;updraded ruzze border script&lt;/li&gt;
	&lt;li&gt;passage to full utf8&lt;/li&gt;
	&lt;li&gt;default element is the oldest one&lt;/li&gt;
	&lt;li&gt;subdomains redirect to the relevant element&lt;/li&gt;
	&lt;li&gt;antispam: only authenticated users can vote&lt;/li&gt;
	&lt;li&gt;better google sitesearch integration&lt;/li&gt;
	&lt;li&gt;links now partly work with subdomain&lt;/li&gt;
&lt;/ul&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Re: Expanding textarea</title>
      <pubDate>2008-01-22 22:23:11+0100</pubDate>
      <link>http://echarp.org/Re_Expanding_textarea_1/index.rss</link>
      <comments>http://echarp.org/Re_Expanding_textarea_1/index.rss</comments>
      <dc:creator>echarp</dc:creator>
      <description>&lt;p&gt;&lt;span&gt;-1 &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Version 0.15</title>
      <pubDate>2008-01-22 22:21:18+0100</pubDate>
      <link>http://echarp.org/Version_015/index.rss</link>
      <comments>http://echarp.org/Version_015/index.rss</comments>
      <dc:creator>echarp</dc:creator>
      <description>&lt;p&gt;&lt;p&gt;Automatic widening text area. Rails 2&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;sidebar updates now defined as an environment constant&lt;/li&gt;
	&lt;li&gt;edition text area is widened, its height now follows its content&lt;/li&gt;
	&lt;li&gt;passage to rails 2.0.2&lt;/li&gt;
	&lt;li&gt;easier db installation&lt;/li&gt;
&lt;/ul&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Re: Expanding textarea</title>
      <pubDate>2008-01-18 09:03:40+0100</pubDate>
      <link>http://echarp.org/Re_Expanding_textarea/index.rss</link>
      <comments>http://echarp.org/Re_Expanding_textarea/index.rss</comments>
      <description>&lt;p&gt;&lt;p&gt;To simplify usage, I&#8217;ve added a small feature: the text area used to write now automatically expands with its content.&lt;/p&gt;
&lt;p&gt;That is you can write write write, scroll bars shouldn&#8217;t appear. Instead the textarea and surrounding page should vertically increase in size.&lt;/p&gt;
&lt;p&gt;Technically it&#8217;s simple, and it works in firefox and IE. If any one happens to test it in other browsers, please, drop a comment!&lt;/p&gt;
&lt;p&gt;For info, here is the javascript code (a lot originally comes from ajaxian):&lt;/p&gt;
&lt;p&gt;&lt;a class="readMore" href="#" onclick="Element.hide(this); Element.removeClassName(this.parentNode.nextSibling, 'tooLarge'); return false;"&gt;Read more&amp;#8230; / Lire plus&amp;#8230;&lt;/a&gt;
&lt;div class="tooLarge"&gt;&lt;/p&gt;
&lt;p&gt;Read more&#8230; / Lire plus&#8230;&lt;/p&gt;
&lt;p&gt;__ Get vertical position&lt;br/&gt;
function findPosY(obj) {
  if (!obj) return 0;
  var curtop = 0;
  if (obj.offsetParent)
    while (1) {
      curtop += obj.offsetTop;
      if (!obj.offsetParent)
        break;
      obj = obj.offsetParent;
    }
  else if (obj.y)
    curtop += obj.y;
  return curtop;
}&lt;/p&gt;
&lt;p&gt;&lt;em&gt;_ Widen the elt until it is moved below or it is wider than its parent elt
_&lt;/em&gt; Used in an &amp;#8220;onfocus&amp;#8221; event&lt;br/&gt;
function widen(elt) {
  if (elt.widened) return;
  elt.widened = true;
}&lt;/p&gt;
&lt;p&gt;var initialPosition = findPosY(elt);&lt;br/&gt;
var initialParentWidth = elt.parentNode.offsetWidth;
while (initialPosition == findPosY(elt) &amp;amp;&amp;amp; elt.offsetWidth &amp;lt; initialParentWidth) {
  elt.cols = elt.cols + 1;
}
elt.cols = elt.cols &amp;#8211; 1;&lt;/p&gt;
&lt;p&gt;__ Resize text area accordingly to its content&lt;br/&gt;
function resize(elt) {
  widen(elt);
  var lines = elt.value.split(&amp;#8216;\n&amp;#8217;);
  var newRows = lines.length + 1;
  var oldRows = elt.rows;
}&lt;/p&gt;
&lt;p&gt;for (var i = 0; i &amp;lt; lines.length; i++) {
  var line = lines[i];
  if (line.length &amp;gt;= elt.cols) newRows += Math.floor(line.length / elt.cols);
}&lt;/p&gt;
&lt;p&gt;if (newRows &amp;gt; elt.rows) elt.rows = newRows;&lt;br/&gt;
if (newRows &amp;lt; elt.rows) elt.rows = Math.max(5, newRows);&lt;/p&gt;
&lt;/div&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
