Displaying 1 result from an estimated 1 matches for "num_tels".
Did you mean:
num_recs
2006 Feb 02
4
ajax insertion into a form
...9;},
:update =>''telephone'', :position=> :after)
%>
<br/>
<%= text_field_tag ''telephone'' %></p>
<%= submit_tag "Create" %>
<%= end_form_tag %>
The controller :
def new
session[:num_tels]=0
end
def new_tel
@tel_num=session[:num_tels]
@tel_num=@tel_num.succ
session[:num_tels]=@tel_num
render (:text=>"<br/>"+@tel_num.to_s+''<input
id="telephone"''+@tel_num.to_s+'' name="telephone"+@tel_num.to_s...