HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   Validation with JS of the <form> (http://www.howtoforge.com/forums/showthread.php?t=54169)

xaver 17th September 2011 17:46

Validation with JS of the <form>
 
1 Attachment(s)
Hi,

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: http://flowplayer.org/tools/demos/validator/index.html 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

regards
xaver

falko 18th September 2011 10:36

I like it! :)

till 19th September 2011 12:59

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.

laptop_user 26th September 2011 06:36

very nice.:)

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


All times are GMT +2. The time now is 10:40.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.