On Mar 17, 4:17 pm, Salil Gaikwad <[email protected]>
wrote:
> > No, remote_form_for will use the onsubmit event to make the actual
> > AJAX request. So I don't think overriding the onsubmit attribute would
> > be a good idea... :)
>
> thanx @David.
> Do you know what should do in that case to put javascript form
> validations?
The ajax helpers can take a :conditions parameter which is a fragment
of javascript to run to check whether the request should go ahead
(it's described in the docs for link_to_remote)
Fred
>
> Thanx & Regards
> Salil
>
> --
> Posted viahttp://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
-~----------~----~----~----~------~----~------~--~---