Displaying 1 result from an estimated 1 matches for "new_prob".
Did you mean:
new_prog
2006 Jun 14
3
problem trying to update multiple <DIV> elements with AJAX
...ets are as follows:
Calling view:
<%= form_remote_tag(:url => {:action => ''create_problem''},
:complete=>evaluate_remote_response) %>
Controller action:
@choices = get_prob_list_choices
render(:layout=>false)
Returning view:
<% update_element_function("new_prob", :binding=>binding) do %>
<%=render(:partial=>"new_prob")%>
<%end%>
<% update_element_function("prob_list", :binding=>binding) do %>
<%=render(:partial=>"prob_list", :locals=>{:choices=>@choices})%>
<%end%&g...