How to add js event in text_area

Hi

I am trying to make text_area compiled to



Some text

but I am not sure how the syntax should be.

THX

On 2/12/07, Bontina C. [email protected] wrote:

but I am not sure how the syntax should be.

Have you seen the observe_field helper in Rails? Look it up. You can
give it a field id and a function, and it will bind them together to
watch for input. You can also make it polling-based and give it a
frequency option in seconds.

There is a sister helper called observe_form.

Chad

Chad F. wrote:

Have you seen the observe_field helper in Rails? Look it up. You can
give it a field id and a function, and it will bind them together to
watch for input. You can also make it polling-based and give it a
frequency option in seconds.

How would it trigger on, say, the key?


Phlip
http://c2.com/cgi/wiki?ZeekLand ← NOT a blog!!