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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---