[Rails] Re: How can I prevent ENTER from submitting form?
I don't know my english but my javascript is very newbie, too much
newbie
¿ Is not this, the same or similar, that disable the sumbmit button at
the begining of onchange event and activate it at the end?...something
like:
<%= f.text_field :amount, onchange=>"disable_submit();" +
remote_function(...my caculations) +"enable_submit();" ) %></p>
where enable_submit() and disbale_submit() just does what says, activate
and deactivate the submit button
isn't it?
Thanks,
Albert
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home