And please post the form_for code.

Thank you.

On Wed, Aug 5, 2009 at 3:33 AM, Conrad Taylor<[email protected]> wrote:
> On Tue, Aug 4, 2009 at 9:34 PM, Md Fisa <[email protected]>
> wrote:
>>
>> Nicholas Henry wrote:
>> > You need to move the :onclick => "ValidateForm()" to :onsubmit =>
>> > "ValidateForm()" in the form_for line. Then when the ValidateForm
>> > returns false it will halt submission of the form.
>> >
>> > You might want to consider using something like this:
>> > http://www.livevalidation.com/
>> >
>> > There's a Rails plugin as well:
>> > http://github.com/porras/livevalidation/tree/master
>> >
>> > Cheers,
>> > Nicholas
>>
>> Thanks for yor reply ....
>> I applied what you said.But its not getting.When i am giving :onsubmit
>> it doesn't check for validation.It directly go to the action without
>> doing any validation.When validation return false it shouldn't execute
>> the action.Your reply appreciated...Thanks verymuch
>
> Hi, please post the Javascript that's performing the validation?
> -Conrad
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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