<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-29280895.post7819493210099362516..comments</id><updated>2009-10-16T07:47:54.147-07:00</updated><title type='text'>Comments on One way: Character count a textarea in Ruby on Rails</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.swards.net/feeds/7819493210099362516/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29280895/7819493210099362516/comments/default'/><link rel='alternate' type='text/html' href='http://www.swards.net/2009/05/character-count-textarea-in-ruby-on.html'/><author><name>Mark Swardstrom</name><uri>http://www.blogger.com/profile/13422017508414965589</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-29280895.post-3692811731728968118</id><published>2009-10-16T07:47:54.147-07:00</published><updated>2009-10-16T07:47:54.147-07:00</updated><title type='text'>Thanks!
I spent some time getting it to work, beca...</title><summary type='text'>Thanks!&lt;br /&gt;I spent some time getting it to work, because of missing frequency. I would propose something like this into application_helper.rb:&lt;br /&gt;&lt;br /&gt;def character_count(field_id, update_id, options = {})&lt;br /&gt;  function = &amp;quot;$(&amp;#39;#{update_id}&amp;#39;).innerHTML = $F(&amp;#39;#{field_id}&amp;#39;).length;&amp;quot;&lt;br /&gt;  out = javascript_tag(function) # set current length&lt;br /&gt;  options = {:</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29280895/7819493210099362516/comments/default/3692811731728968118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29280895/7819493210099362516/comments/default/3692811731728968118'/><link rel='alternate' type='text/html' href='http://www.swards.net/2009/05/character-count-textarea-in-ruby-on.html?showComment=1255704474147#c3692811731728968118' title=''/><author><name>Veljo</name><uri>http://mobi.ee</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.swards.net/2009/05/character-count-textarea-in-ruby-on.html' ref='tag:blogger.com,1999:blog-29280895.post-7819493210099362516' source='http://www.blogger.com/feeds/29280895/posts/default/7819493210099362516' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-29280895.post-4039820579183588938</id><published>2009-09-17T09:07:04.966-07:00</published><updated>2009-09-17T09:07:04.966-07:00</updated><title type='text'>Thanks, Mark! I modified this a little and came up...</title><summary type='text'>Thanks, Mark! I modified this a little and came up with a word count using your code as a starting point. Works great! Thanks, again!&lt;br /&gt;&lt;br /&gt;Here is the modified version that supports word count and both client and server-side validation:&lt;br /&gt;&lt;a href="http://stufftohelpyouout.blogspot.com/2009/09/rubyrails-and-javascript-word-count.html" rel="nofollow"&gt;http://stufftohelpyouout.blogspot.com/</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29280895/7819493210099362516/comments/default/4039820579183588938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29280895/7819493210099362516/comments/default/4039820579183588938'/><link rel='alternate' type='text/html' href='http://www.swards.net/2009/05/character-count-textarea-in-ruby-on.html?showComment=1253203624966#c4039820579183588938' title=''/><author><name>Gary S. Weaver</name><uri>http://www.blogger.com/profile/15436920146188735313</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.swards.net/2009/05/character-count-textarea-in-ruby-on.html' ref='tag:blogger.com,1999:blog-29280895.post-7819493210099362516' source='http://www.blogger.com/feeds/29280895/posts/default/7819493210099362516' type='text/html'/></entry></feed>