Validation with JS of the <form>

Discussion in 'Developers' Forum' started by xaver, Sep 17, 2011.

  1. xaver

    xaver New Member


    i tested something at home.
    -> it scroll back to first error or if you jump in and left it invalid
    -> really easy to integrate e.g. attribute requried="requried" or maxlength="20" or type="email"
    -> ajax validation like existing username is possible

    colours not my fav, but its the same used in validation right now.

    i used: 1.2.6. dev because for recheck if you disable fields with js has 1.2.5 an annoying bug.

    If you test it in borwser like ff 6 use in form novalidate="novalidate", because else Browser use his html5 validation check. This js plugin works with old crappy browsers too.

    Works with
    Firefox 2.0+
    Internet Explorer 6+
    Safari 3+
    Opera 9+
    Chrome 1+

    Translations/multilang are possible.

    What you think about JS validation in ISPConfig3


    Attached Files:

  2. falko

    falko Super Moderator ISPConfig Developer

    I like it! :)
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Looks nice. If we want to use that, we will have find a way that the js validation code is generated automatically based on the validators info from the tform files when the html code for the form is written. Otherwise we would have to keep tow different validation systems in sync manually.
  4. laptop_user

    laptop_user Member

    very nice.:)

    Would be very extra nice if you could add another Re-enter password field for password validation.

Share This Page