Hi,

I need to validate textbox when blur event fires..using ajax function...
I am unable to submit the form when blur event fires but when i click submit button it is submitting form and validating textbox but page refreshing.

I used ajax form module in my site its working fine without page refresh but when i click submit button only.how to get same functionality when i
fire blur,onfocus....etc events..

Please help me.

Comments

marcvangend’s picture

Here is a tutorial for jQuery ajax form validation on blur: http://jqueryfordesigners.com/using-ajax-to-validate-forms/
Is that not what you're looking for, or didn't you search google yet?

test_drupal-1’s picture

Thanks...for reply but i need to implement yahoo registration form functionality...

plz help me..

marcvangend’s picture

You provide almost no information and then you say 'plz help me'. That's not going to work. Stop begging, start communicating. Please have a look at http://drupal.org/forum-posting and try again.

test_drupal-1’s picture

Hi,

I am glad to see your reply..
I am working on submitting form using #ahah event in form controls so that page wil not refresh for validating form..
but i am unable to submit form using #ahah event attribute..how can i solve it.
Thanks for your suggestion for forum posting..

marcvangend’s picture

I have no experience with the #ahah event property, so I cannot really tell you what's wrong.
I assume you have read the api documentation about #ahah? See http://api.drupal.org/api/file/developer/topics/forms_api_reference.html....
And maybe this module can make things easier for you: http://drupal.org/project/ahah_helper.

Andrey Zakharov’s picture

AHAH_helper skips validation.
Things comes more complex if you just form_alter with CCK fields with custom validation code.