Follow me on twitter Follow the position absolute RSS feed
4
February

Form Validation Engine 1.6.3 is live

This update take full advantage of jQuery 1.4. You can now validate using the live event (off by default), this really boost the loading speed of the engine.

  1.  $("#formID").validationEngine({liveEvent:true})

You can now specify if you want to scroll the page to the first error.

  1.  $("#formID").validationEngine({scroll:false})

There is one new rule, exemptString, this allow you to specify a string that will not be validated (I will add an example today in the demo).

  1. <input class="validate[required,exemptString[Add your first name]]" name="firstname" type="text" />

Sorry for the lack of updates!


33 Comments on this article

  1. Michael Pehl says:

    Very cool. Need to “reimplement” it now :D

    Check out here: http://blog.computer-service-mallorca.com/2010/02/03/jquery-form-wizard-with-inline-validation/

    Cheers :)

  2. Samet ARAS says:

    Hello,

    I have a problem with Form Validation Engine. How to submit files with AjaxSubmit upload ? (e.g. PNG or JPG)

    Sincerely,
    Samet ARAS.

  3. Cedric Dugas says:

    There is no option to upload file with this script sorry

  4. Samet ARAS says:

    Hello,

    AJAXsubmit using Can I upload files with PHP ?

    Sincerely,
    Samet ARAS.

  5. Cedric Dugas says:

    I suggest you use uploadify on the success function (no need of the ajaxsubmit method)

  6. Samet ARAS says:

    Oh Oh :) very thanks.

  7. Guillermo says:

    Hello guys, this is a great plugin! Could you help me to add a different RegExp? I tried to implement a specific RegExp to the Validator but I don’t know where to put it. Is there an example? Thank you very much!

  8. Guillermo says:

    It’s me again. I’m testing my form on Google Chrome and the validation is not “activated”. On IE is working fine.. but on Chrome it doesn’t work. I tested the example form and it works well. I double checked everything on my form and it’s seems to be fine. Do you know guys what I should do? Thanks.

  9. Adam says:

    I’ve impleneted the updated version but doing a capthca check using a call to a file no longer works.

  10. Adam says:

    It’s sending the validateError as var name and then “underfined” – captchacheckundefined

  11. Cedric Dugas says:

    the 1.6.2 is still available on the page, I will look into it

  12. Shankar says:

    Hi Everybody ,

    There is similar one like here
    http://mootools.floor.ch/en/labs/formcheck/forum-registration/index.htm

    TELL ME HOW TO VALIDATE FIELDS ONE AFTER ONE ON SUBMIT LIKE THE ABOVE LINK.

    Thanks,
    Shankar

  13. admin says:

    IT IS NOT POSSIBLE, THE SCRIPT IS NOT WRITTEN THAT WAY

  14. Shankar says:

    OK.

    If I got Ten fields in my form and when i left empty the ERROR on EACH fields overlap each other.

    I used the Position Setting for “Validation Engine” so that it will be better if i validate fields on submit one by one.

    Can you tell me something like the same validation which is here.

  15. Cedric Dugas says:

    There is no way to validate one by one on submit currently, personnaly I just design my form so that my balidation will not overlap

  16. Shankar says:

    Thanks Cedric Dugas

  17. Daniel says:

    I’m having a really hard time trying to check username availability against my mySQL database. I even created a “karnius” user in my database and used the validateUser.php file provided in your download, but it still wouldn’t work. Should it have? Basically I’m in way over my head here, and if you could provide any further instructions beyond what is already in your tutorial, I would really, really appreciate it.

  18. Cedric Dugas says:

    What happen? it stop at loading, or always show that it has no user or always say it have?

  19. Samet ARAS says:

    Hello,

    I have a problem with Form Validation Engine.I can send more than one form. How can I solve this ?

    Sincerely;
    Samet ARAS.

  20. Samet ARAS says:

    Hello,

    I solved the problem. Example;

    success : function() { callSuccessFunction() },

    Function:

    function callSuccessFunction(){
    $(‘input[type=submit]‘).attr(‘disabled’, true);
    }

    Sincerely;
    Samet ARAS.

  21. Daniel says:

    Yes, it stops at “*Loading, please wait.”

  22. admin says:

    This is because you need to be on a server or use xampp, it load a php script

  23. admin says:

    Juste remove the validate user rule

  24. Daniel says:

    I am using a server which runs PHP though. I am able to post all of the registration information to my database, but the same username can be used more than once.

  25. Cedric Dugas says:

    Daniel

    please send me your email, you must compare with mysql if the username is taken and return a error message in this form:

    {“jsonValidateReturn”:["user","ajaxUser","false"]}

  26. Hoang Nguyen says:

    How can I pass the OnlyLetters check with a name for example “Nguyễn Hoàng”? I need a RegEx that support Unicode, please help, I’m not good at RegEx

  27. Samet ARAS says:

    Hello,

    I report a bug. if the submit button is clicked several times, the form sends the informations also several times. how I can prevent this ?

    Sincerely,
    Samet ARAS.

  28. Tom says:

    Remove the exclamation mark on line 240 to get rid of the hanging ajax calls!

  29. susiebeth88 says:

    Great validation tool! I do have one question. Is there a way to reposition the error messages for the check boxes and radio buttons. I am using top-positioned labels and they are being covered by the error messages. Thanks in advance!

  30. calverstine says:

    validation needs some correction, not sure if I am correct, but upon return, the true (boolean) and “true” (string) are 2 different things, any user might fall into this trap.. hope you guys be k-ful on the ajax response.

    fyi, I am using 1.6.2, I not sure if 1.6.3 addresses the issue.

  31. calverstine says:

    I mean the ajax validation on above comment..

  32. keanowushu says:

    Hi,

    first of all, thanks for this great plugin !!

    I’ve got a problem, I want to have choice to use validationEngine or not. I mean I’d like to unbind this plugin from my form at a certain moment. Is it possible ?

  33. keanowushu says:

    I finally found a way, after 6 hours of hard work, the anwser is really simple. I just replaced all my inputs className attribute from “validate…” to “dontvalide…” and it seems to work. Here is my function :
    function setValidationForm(value) {
    var needle;
    var replacement;
    if (value) {
    needle = ‘dontvalide’;
    replacement = ‘validate’;
    } else {
    needle = ‘validate’;
    replacement = ‘dontvalide’;
    }

    $(‘[class*=' + needle + ']‘).each(function(){
    var newClassName = $(this).attr(‘className’).replace(needle, replacement);
    $(this).attr(‘className’, newClassName);
    });
    }

    And now if you want to use the validationEngine, call the function like this “setValidationForm(true)”, and if you don’t want to use it, just call “setValidationForm(false)”. That was simple !!

Leave a Reply