Changeset 4455
- Timestamp:
- 01/15/08 19:26:18 (1 year ago)
- Location:
- trunk/plugins/validate
- Files:
-
- 3 modified
-
jquery.validate.js (modified) (1 diff)
-
test/methods.js (modified) (1 diff)
-
todo (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/validate/jquery.validate.js
r4438 r4455 979 979 return this.getLength(value, element) > 0; 980 980 default: 981 return value.length > 0// && value != element.defaultValue; 982 } 983 }, 984 985 /* 986 required_nodefault: function(value, element) { 987 return value.length > 0 && value != element.defaultValue; 988 }, 989 */ 981 return value.length > 0; 982 } 983 }, 990 984 991 985 remote: function(value, element, param) { -
trunk/plugins/validate/test/methods.js
r4430 r4455 190 190 }); 191 191 192 /*193 test("required_nodefault", function() {194 var v = jQuery("#form").validate();195 var method = $.validator.methods.required_nodefault;196 e = $('#text1')[0];197 ok(!method.call( v, e.value, e), "Required, default not acceptable" );198 e.value = "abc"199 ok( method.call( v, e.value, e), "Required, other then default" );200 });201 */202 203 192 test("minLength", function() { 204 193 var v = jQuery("#form").validate(); -
trunk/plugins/validate/todo
r4438 r4455 1 css references 2 -------------- 3 - http://test5.caribmedia.com/CSS/Secrets/members/michiel/floating-forms.html 4 - http://paularmstrongdesigns.com/projects/awesomeform/ 5 - http://dnevnikeklektika.com/uni-form/ 1 1.2 2 --- 6 3 7 other stuff 8 ----------- 4 - integrate, test and document Scott's rules modules 5 - add test for subformRequired 6 - document invalidHandler 7 - oninvalid/invalidSubmitHandler: called after a form is validated on submit and its invalid 8 - document all those event options 9 - is that element == lastElement check in the onblur handler really useful? 10 - custom-methods-demo.html enable summary container, currently broken, is updated too often 11 12 scheduled 13 --------- 14 15 - css references 16 - http://test5.caribmedia.com/CSS/Secrets/members/michiel/floating-forms.html 17 - http://paularmstrongdesigns.com/projects/awesomeform/ 18 - http://dnevnikeklektika.com/uni-form/ 9 19 10 20 - consider validation on page load, disabling required-checks 11 - check value != defaultValue in required, making defaultValue invalid12 - test and document Scott's rules modules13 21 - completely rework showErrors: manually settings errors is currently extremely flawed and utterly useless, eg. errors disappear if some other validation is triggered 14 22 - add custom event to remote validation for adding more parameters 15 - add custom events for form and elements instead of more callbacks16 23 17 24 - document focusInvalid() … … 21 28 - AND depedency: specify multiple expressions as an array 22 29 23 additional options/callbacks: 24 - onsubmit: Boolean, default true - validate on form submit (similar to onkeyup/onblur)25 - beforeValidation: Callback, called before doing any validation26 - beforeSubmit: Callback, called before submitting the form (default submit or calling submitHandler, if specified)30 - add custom events for form and elements instead of more callbacks (additional options/callbacks) 31 - onsubmit: Boolean, default true - validate on form submit (similar to onkeyup/onblur) 32 - beforeValidation: Callback, called before doing any validation 33 - beforeSubmit: Callback, called before submitting the form (default submit or calling submitHandler, if specified) 27 34 28 - add test for subformRequired29 - document invalidHandler30 - document all those event options31 - is that element == lastElement check in the onblur handler really useful?32 33 - oninvalid/invalidSubmitHandler: called after a form is validated on submit and its invalid34 35 - animations!! 35 36 - ajax validation: … … 38 39 - strong password check/integration: http://phiras.wordpress.com/2007/04/08/password-strength-meter-a-jquery-plugin/ 39 40 40 - custom-methods-demo.html enable summary container, currently broken, is updated too often41 41 - stop firefox password manager to popup before validation - check mozilla bug tracker? 42 42 … … 46 46 - ajaxSubmit with rules-option, more/less options to ajaxSubmit 47 47 - watermark integration http://digitalbush.com/projects/watermark-input-plugin 48 - datepicker integration (see dobis)48 - datepicker integration 49 49 - timepicker integration ( http://labs.perifer.se/timedatepicker/ ) 50 50 - integration with CakePHP ( https://trac.cakephp.org/ticket/2359 )
