From ba16c53a40c8177fde0cab41c2b607f97639131e Mon Sep 17 00:00:00 2001 From: Shankar Thiyagaraajan Date: Wed, 2 Aug 2017 19:14:58 +0530 Subject: [PATCH 1/9] Update README.md --- README.md | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d4e5421..bd36751 100644 --- a/README.md +++ b/README.md @@ -23,27 +23,20 @@ **Steps to Integrate to Form :** ```html - + or - + ``` Then Integrate your form with Validator. ```javascript - // Core - var myform = jsValidator.init({ - form: 'form2submit', // #id - }); - - // ES6 var myform = new jsValidator().init({ form: 'form2submit', // #id }); - + ``` - ## Options From 3bf0ad3c39ca6c4b54c151ef7e4f5e10e538ca52 Mon Sep 17 00:00:00 2001 From: Shankar Thiyagaraajan Date: Wed, 2 Aug 2017 19:17:32 +0530 Subject: [PATCH 2/9] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bd36751..c922d92 100644 --- a/README.md +++ b/README.md @@ -69,8 +69,10 @@ Then Integrate your form with Validator. | Name | Values | Descriptions | | ----------------- | --------------- | ---------------------------------------------------------------------------- | | required | True, False | Set the fields is required to submit the Form. | -| type="min" | Integer | To set the Minimun length of characters to proceed. | -| type="max" | Integer | To set the Maximum length of characters to proceed. | +| min | Integer | To set the Minimun value to proceed. | +| max | Integer | To set the Maximum value to proceed. | +| data-maxlength="10" | Integer | To set the Maximum length of characters to proceed. | +| maxLength="10" | Integer | To set the Maximum length of characters to proceed. | | type="password" | AlphaNumeric | To set and compare password. | | type="email" | AlphaNumeric | To check the email is valid or not. | | data-message="Error Message"| String | User defined, element based direct error message to handle. | From 372b86b631bf057d28307ef0235f736ea35c38bc Mon Sep 17 00:00:00 2001 From: Shankar Thiyagaraajan Date: Wed, 2 Aug 2017 19:36:55 +0530 Subject: [PATCH 3/9] Update README.md --- README.md | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index c922d92..409a405 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ Then Integrate your form with Validator. | maxLength="10" | Integer | To set the Maximum length of characters to proceed. | | type="password" | AlphaNumeric | To set and compare password. | | type="email" | AlphaNumeric | To check the email is valid or not. | +| type="file" | string ['png,jpeg..'] | To check the file format is allowed or not. | | data-message="Error Message"| String | User defined, element based direct error message to handle. | | data-allow="onlyAlpha"| a-zA-Z Only | Allow only string, no digits and no special characters. | | data-allow="string"| a-zA-Z0-9 Only | Allow only string and digits, no special characters. | @@ -129,6 +130,10 @@ It has automated listener to monitor every changes on form. +
+ + +
@@ -175,29 +180,17 @@ It has automated listener to monitor every changes on form. ```javascript - // For Native-Javascript - var myform = jsValidator.init({ - form: 'form2submit', // #id - forceFilter: true, - message: { - required: 'This field is required !', - min: '
This field is less then the limit [INDEX]', - max: 'This field is exceeds the limit of [INDEX]', - password: 'Password doesn\'t match !', - email: 'Invalid Email found !' - } - }); - - // For ES6 + // For Native-Javascript & ES6 var myform = new jsValidator().init({ form: 'form2submit', // #id forceFilter: true, message: { required: 'This field is required !', - min: '
This field is less then the limit [INDEX]', - max: 'This field is exceeds the limit of [INDEX]', + min: '
This field is less then the limit', + max: 'This field is exceeds the limit', password: 'Password doesn\'t match !', - email: 'Invalid Email found !' + email: 'Invalid Email found !', + file: 'Invalid File format given' } }); From 1a04902797fd18f5046b3511e651db530c90fcbf Mon Sep 17 00:00:00 2001 From: Shankar Thiyagaraajan Date: Wed, 2 Aug 2017 19:38:04 +0530 Subject: [PATCH 4/9] Update README.md --- README.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/README.md b/README.md index 409a405..81f21d8 100644 --- a/README.md +++ b/README.md @@ -159,15 +159,8 @@ It has automated listener to monitor every changes on form.
``` - -3. Every Input Fields should have a Label with **`FOR`** attributes. - ```html - - - ``` - -4. In form use **`novalidate`** to avoid browser interuptions. +3. In form use **`novalidate`** to avoid browser interuptions. ```html
From 277dfe889996d9979badbae957121667d4d773c2 Mon Sep 17 00:00:00 2001 From: Shankar Thiyagaraajan Date: Wed, 2 Aug 2017 19:38:46 +0530 Subject: [PATCH 5/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 81f21d8..3cbb862 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,7 @@ It has automated listener to monitor every changes on form. ```javascript - // For Native-Javascript & ES6 + // For Native & ES6 Javascript. var myform = new jsValidator().init({ form: 'form2submit', // #id forceFilter: true, From 1c507730d02091bf5efd6140f3440794dcaa9c2c Mon Sep 17 00:00:00 2001 From: Shankar Thiyagaraajan Date: Thu, 3 Aug 2017 10:20:46 +0530 Subject: [PATCH 6/9] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3cbb862..4700253 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,10 @@ git clone https://github.com/global-source/javascript_form_validator.git - git checkout master - + --or-- + + composer require global-source/javascript-form-validator + ## Why this ? * Support **Native** and **ES6** Javascript, From ded8fd45782633b656bc703856fba78c66af7dee Mon Sep 17 00:00:00 2001 From: Shankar Thiyagaraajan Date: Thu, 3 Aug 2017 10:24:23 +0530 Subject: [PATCH 7/9] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4700253..da56a78 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,10 @@ git clone https://github.com/global-source/javascript_form_validator.git - --or-- +--or-- composer require global-source/javascript-form-validator + ## Why this ? From ffb6bf5407ebcf592e5653bb8ee34236ba4e165c Mon Sep 17 00:00:00 2001 From: Shankar Thiyagaraajan Date: Thu, 3 Aug 2017 10:49:52 +0530 Subject: [PATCH 8/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index da56a78..c376b20 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ## Global Source - JavaScript Form Validator [Ready to Use] -[![Packagist](https://img.shields.io/badge/JavaScript-Core-blue.svg)](https://github.com/global-source/javascript_form_validator) [![Packagist](https://img.shields.io/badge/JavaScript-ES6-green.svg)](https://github.com/global-source/javascript_form_validator) [![Packagist](https://img.shields.io/badge/Build-Alpha-lightgrey.svg)](https://github.com/global-source/javascript_form_validator) [![License](https://img.shields.io/badge/Version-v.0.9-blue.svg)](https://github.com/shankarThiyagaraajan/PHP_Migration/blob/master/LICENSE) +[![Packagist](https://img.shields.io/badge/JavaScript-Core-blue.svg)](https://github.com/global-source/javascript_form_validator) [![Packagist](https://img.shields.io/badge/JavaScript-ES6-green.svg)](https://github.com/global-source/javascript_form_validator) [![License](https://img.shields.io/badge/Build-V.2.0-blue.svg)](https://github.com/shankarThiyagaraajan/PHP_Migration/blob/master/LICENSE) ### Installation From 2c58d289d4704bf3c9beacf83fbe65fae1be121a Mon Sep 17 00:00:00 2001 From: Shankar Thiyagaraajan Date: Thu, 3 Aug 2017 10:51:38 +0530 Subject: [PATCH 9/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c376b20..9ea30e0 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ## Global Source - JavaScript Form Validator [Ready to Use] -[![Packagist](https://img.shields.io/badge/JavaScript-Core-blue.svg)](https://github.com/global-source/javascript_form_validator) [![Packagist](https://img.shields.io/badge/JavaScript-ES6-green.svg)](https://github.com/global-source/javascript_form_validator) [![License](https://img.shields.io/badge/Build-V.2.0-blue.svg)](https://github.com/shankarThiyagaraajan/PHP_Migration/blob/master/LICENSE) +[![Packagist](https://img.shields.io/badge/JavaScript-Core-brightgreen.svg)](https://github.com/global-source/javascript_form_validator) [![Packagist](https://img.shields.io/badge/JavaScript-ES6-green.svg)](https://github.com/global-source/javascript_form_validator) [![License](https://img.shields.io/badge/Build-V.2.0-blue.svg)](https://github.com/shankarThiyagaraajan/PHP_Migration/blob/master/LICENSE) ### Installation