AJAX textarea problem (javascript newbie, alas)

I have a form which contains the following:


<%= render(:partial=>‘recipients’) -%>

The recipients partial:

<%= @recipients.join("\r\n") -%>

And the submit button:

updtrecipients rebuilds the @recipients array.

This works fine as long as the textarea is in it’s pristine state,
i.e., nothing has been typed in it by the user. OTOH, if the
user has typed or deleted anything in the textarea, it does
not get updated when the button is clicked. Is there a better
approach for this? I would like the user to be able to
manually add or delete from the contents of the textarea
as well as programmatically insert textarea content.

Thanks much

Ken

I use the words you taught me. If they don’t mean anything any more,
teach me others. Or let me be silent.
Samuel Beckett (Clov, Endgame)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs