Lee Smith wrote:
> They could have also hit the 'enter' key multiple times too, not
> clicking anything.
> 
> But in either case, a small amount of javascript will prevent this.

To prevent the submit button being pressed many times I am using
<%= submit_tag "Submit", :onclick => "this.disabled = true" %>
as kindly suggested by  Aldric.

How would I stop users pressing enter multiple times with java script.
JS is really not my forte so i would be grateful for any advice
-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to