i have a question on onblur submit, which would submit a form if a user
leaves a textfield. how can this be done with ajax/remote funcions?
this would not work, since it uses POST to submit the form. is there a
way to do this ajax-style?
:onblur => ‘this.form.submit()’
full code:
<%= form_remote_tag( :url => { :controller => “emailaddress”, :action =>
“update”, :id => update.id}, :html =>{ }) %>
<%= text_field “emailaddress”, “mailto”, “size” => 30, :value=>
update.mailto, :class => ‘input_text_short’, :onblur =>
‘this.form.submit()’ %>
<%= end_form_tag %>
thanks,
zecko