Not signed in (Sign In)

Powered by Vanilla 1.1.8.

Welcome Guest!
Want to take part in these discussions? If you have an account, please sign in. If you don't have an account, register now.
    • CommentAuthorsaravana
    • CommentTimeJun 1st 2009 edited
     #1

    I have a tab based application. I need to call validation while click on the tab links.
    I need to call the validation while click on a link?

    In validate mod plugin it is like $("#formId").validate().form()
    like uniform.validate_form(form, true). I know validate_form is a private method.
    What is the syntax for uniform?

    • CommentAuthorsaravana
    • CommentTimeJun 1st 2009
     #2

    I made a hack to finish my task. Now it is working fine for me.
    May be it is not best way to do.

    I added 2 lines in init function in
    if(settings.validate == 'true')
    return validate_form(form, true);

    While on click of a link, I am using below code
    settings = {
    validate : 'true',
    valid_class : 'valid',
    invalid_class : 'invalid',
    focused_class : 'focused',
    holder_class : 'ctrlHolder',
    field_selector : 'input, select, textarea'
    };

    if(UniForm.init($('.uniForm'), settings))
    alert('Form is validated');
    else
    alert('Form has some errors');