Changeset 4438
- Timestamp:
- 01/14/08 16:37:20 (8 months ago)
- Location:
- trunk/plugins/validate
- Files:
-
- 7 modified
-
demo/captcha/captcha.js (modified) (1 diff)
-
demo/captcha/images/image.php (modified) (1 diff)
-
demo/captcha/process.php (modified) (1 diff)
-
demo/captcha/style.css (modified) (1 diff)
-
demo/index.html (modified) (1 diff)
-
jquery.validate.js (modified) (1 diff)
-
todo (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/validate/demo/captcha/captcha.js
r3607 r4438 19 19 alert("Correct captcha!"); 20 20 }, 21 success: function(label) { 22 label.addClass("valid").text("Valid captcha!") 23 }, 21 24 onkeyup: false 22 25 }); -
trunk/plugins/validate/demo/captcha/images/image.php
r4422 r4438 12 12 13 13 // Set the content type 14 header('Content-type: image/png');14 //header('Content-type: image/png'); 15 15 header('Cache-control: no-cache'); 16 16 -
trunk/plugins/validate/demo/captcha/process.php
r3607 r4438 6 6 // To avoid case conflicts, make the input uppercase and check against the session value 7 7 // If it's correct, echo '1' as a string 8 if(strtoupper($_GET[' value']) == $_SESSION['captcha_id'])8 if(strtoupper($_GET['captcha']) == $_SESSION['captcha_id']) 9 9 echo 'true'; 10 10 // Else echo '0' as a string -
trunk/plugins/validate/demo/captcha/style.css
r3169 r4438 116 116 } 117 117 118 fieldset label.error { 119 color: red; 120 } 121 122 fieldset label.valid { 123 color: green; 124 } 125 118 126 fieldset div#captchaimage { 119 127 float: left; -
trunk/plugins/validate/demo/index.html
r4375 r4438 212 212 <li><a href="marketo/">Marketo signup form</a></li> 213 213 <li><a href="multipart/">Buy and Sell a House multipart form</a></li> 214 <li><a href="captcha/">Remote captcha validation</a></li> 214 215 </ul> 215 216 -
trunk/plugins/validate/jquery.validate.js
r4430 r4438 291 291 return []; 292 292 var rules = []; 293 data = jQuery.validator.normalize Rules(data);293 data = jQuery.validator.normalizeFlatRule(data); 294 294 if (data.min && data.max) { 295 295 data.range = [data.min, data.max]; -
trunk/plugins/validate/todo
r4417 r4438 37 37 - validate zip code in comparison to address, if match and state is missing, fill out state 38 38 - strong password check/integration: http://phiras.wordpress.com/2007/04/08/password-strength-meter-a-jquery-plugin/ 39 - add/modify onkeyup option: true - immediate, false - none, default - filtered40 39 41 40 - custom-methods-demo.html enable summary container, currently broken, is updated too often … … 44 43 Examples: 45 44 - wordpress comment form, make it a drop-in method 46 - ajax: captcha validation ( http://psyrens.com/captcha/ )47 45 - ajaxForm() integration 48 46 - ajaxSubmit with rules-option, more/less options to ajaxSubmit
