Displaying 3 results from an estimated 3 matches for "_entry_form".
Did you mean:
entry_form
2006 Apr 07
3
RJS removing content of div, but not div itself
...amount for each ingredient</p>
<div class = "Entryline">
<%= render(:partial => ''entry_form'') %>
</div>
<div id=''my_list''>
</div>
</body>
</html>
------------------ _entry_form.rhtml -------------------
<%= form_remote_tag(:update => ''my_list'',
:url => {:action => :add_item},
:position => ''bottom'') %>
Name:
<%= text_field_tag :name %>
Amount:
<%= text_field_tag :qty %>...
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
...er can add as many lines as they want. I want to clear the fields each time they click the button. What''s happening instead is that the entry <div> and everything above it on the page is getting wiped out. The code is below. 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 %>...