Displaying 2 results from an estimated 2 matches for "clear_entry".
2006 Apr 14
11
Whats the best Ajax way to update a textarea''s text?
I am looking for a way to update the text-value within a textarea from
an Ajax render call inside of a controller. Is there a way to do this
without rendering an the partial containing the textarea?
Thanks,
Andy
--
Posted via http://www.ruby-forum.com/.
2006 Apr 20
0
Clearing text_field_tag -- Help PLEASE
...Any ideas?
Thanks in advance,
Bill
--- Here''s _entry_form.rhtml ---
<%= form_remote_tag(:update => ''ingredient_list'',
:url => {:action => :add_ingredient},
:position => ''bottom'',
:after => {:action => :clear_entry}) %>
Name:
<%= text_field_tag :name %>
Amount:
<%= text_field_tag :qty %>
<%= submit_tag ''Add Ingredient'' %>
<%= end_form_tag %>
--- and here''s the clear_entry action in the controller ----
def clear_entry
render :update do |p...