Re: Call Javascript

Phlip
Mon, 06 Apr 2009 18:46:12 -0000

>     <%= f.text_area :content,
{onkeyup="strcount(1);chngcnt(1);"
> onkeydown="chngcnt(1);" onblur="chngcnt(1);"
onfocus="chngcnt(1);} %>

The errors come from Ruby - inside the <%%> tag - not from Javascript.

Google for [ruby option hash], and compare it to what you wrote. You need more
symbols and arrows in there...