Displaying 1 result from an estimated 1 matches for "evaluate_secondhand_flat".
2006 Oct 28
2
onchange="document.forms[0].submit()" - how to CANCEL
...d onchange="document.forms[0].submit();" to every field
Problem: Can not cancel form submission. Browser redirects to "results"
page, which is of course JavaScript meant to dynamically update the
page.
RHTML snippet:
<%
remote_form_for :estate, :url => { :action => :evaluate_secondhand_flat
} do |form|
%>
<%=
form.select :province, Constants.provinces_constant, options = {},
:onchange => "javascript: document.forms[0].submit(); /*RETURN FALSE
DOES NOT WORK HERE*/"
%>
HTML snippet:
<form action="/wycena/evaluate_secondhand_flat" method="post...