Hi Group,
I have a registration.html.erb page with the following JavaScript at
the top which I use to validate form fields:
further down the page I have the form:
<% form_tag({:action => ‘sendregistration’}, {:name =>
“myForm”, :onSubmit => “return validate()”}) do -%>
etc.
<%= submit_tag “Send”, :class => “submit”, :id =>
“mysubmit”, :disable_with => “Please wait…” %>
<% end -%>
When I click ‘Send’ without the required fields the ‘Send’ button is
disabled and the text is replaced with ‘Please wait…’ which is as I
expected. It also performs the ‘validate’ JavaScript function and
discovers that the required fields are not provided and displays a
popup window with the text ‘You must fill in all of the required
fields!’
When I click ‘Send’ with the required fields the ‘Send’ button is
disabled and the text is replaced with ‘Please wait…’ which again is
as I expected. However, the form does not Submit / Post, it just
hangs.
What am I doing wrong? Would someone please help.
Thanks.
Regards
Walter