Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th September 2011, 17:46
xaver xaver is offline
Member
 
Join Date: May 2009
Posts: 77
Thanks: 10
Thanked 25 Times in 14 Posts
Default Validation with JS of the <form>

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
Attached Images
 
Reply With Quote
The Following 3 Users Say Thank You to xaver For This Useful Post:
falko (18th September 2011), laptop_user (26th September 2011), vogelor (20th September 2011)
Sponsored Links
  #2  
Old 18th September 2011, 10:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I like it!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 19th September 2011, 12:59
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,006
Thanks: 826
Thanked 5,377 Times in 4,224 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 26th September 2011, 06:36
laptop_user laptop_user is online now
Member
 
Join Date: Aug 2011
Posts: 89
Thanks: 39
Thanked 8 Times in 8 Posts
Default

very nice.

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

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
can't get the Talking SOAP With Exchange to work eescudier HOWTO-Related Questions 29 16th July 2013 19:43
Postfix user/password validation counterpoint HOWTO-Related Questions 3 3rd August 2011 15:11
Failed validation of a PTR record kokez Developers' Forum 6 25th August 2010 23:19
E-mail validation problem rputnins Installation/Configuration 1 2nd September 2009 09:50
ISPconfig3, email validation issue Justin Albstmeijer Installation/Configuration 2 5th July 2008 00:26


All times are GMT +2. The time now is 02:07.


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