Displaying 1 result from an estimated 1 matches for "reszip".
Did you mean:
reship
2006 Jan 18
5
NOOB Ajax question: handling form input
...ld in the _form.rhtml file:
<%= text_field ''wh_config'', ''zip'' %></p>
<%= observe_field(:wh_config_zip,
:frequency => 0.5,
:update => :wh_config_zip,
:url => {:action => :reszip}) %>
In the controller, I put the following method in a public section,
def reszip
@fixed_zip = request.raw_post[0..4]
render(:layout => false)
end
An then I created an rhtml file in the view section for the controller
called reszip.html which contained...