Bug Tracker

Changeset 4438

Show
Ignore:
Timestamp:
01/14/08 16:37:20 (8 months ago)
Author:
joern.zaefferer
Message:

fixed captcha demo

Location:
trunk/plugins/validate
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/validate/demo/captcha/captcha.js

    r3607 r4438  
    1919            alert("Correct captcha!"); 
    2020        }, 
     21        success: function(label) { 
     22            label.addClass("valid").text("Valid captcha!") 
     23        }, 
    2124        onkeyup: false 
    2225    }); 
  • trunk/plugins/validate/demo/captcha/images/image.php

    r4422 r4438  
    1212 
    1313// Set the content type 
    14 header('Content-type: image/png'); 
     14//header('Content-type: image/png'); 
    1515header('Cache-control: no-cache'); 
    1616 
  • trunk/plugins/validate/demo/captcha/process.php

    r3607 r4438  
    66// To avoid case conflicts, make the input uppercase and check against the session value 
    77// If it's correct, echo '1' as a string 
    8 if(strtoupper($_GET['value']) == $_SESSION['captcha_id']) 
     8if(strtoupper($_GET['captcha']) == $_SESSION['captcha_id']) 
    99    echo 'true'; 
    1010// Else echo '0' as a string 
  • trunk/plugins/validate/demo/captcha/style.css

    r3169 r4438  
    116116} 
    117117 
     118fieldset label.error { 
     119    color: red;  
     120} 
     121 
     122fieldset label.valid { 
     123    color: green; 
     124} 
     125 
    118126fieldset div#captchaimage { 
    119127    float: left; 
  • trunk/plugins/validate/demo/index.html

    r4375 r4438  
    212212    <li><a href="marketo/">Marketo signup form</a></li> 
    213213    <li><a href="multipart/">Buy and Sell a House multipart form</a></li> 
     214    <li><a href="captcha/">Remote captcha validation</a></li> 
    214215</ul> 
    215216 
  • trunk/plugins/validate/jquery.validate.js

    r4430 r4438  
    291291            return []; 
    292292        var rules = []; 
    293         data = jQuery.validator.normalizeRules(data); 
     293        data = jQuery.validator.normalizeFlatRule(data); 
    294294        if (data.min && data.max) { 
    295295            data.range = [data.min, data.max]; 
  • trunk/plugins/validate/todo

    r4417 r4438  
    3737    - validate zip code in comparison to address, if match and state is missing, fill out state 
    3838- 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 - filtered 
    4039 
    4140- custom-methods-demo.html enable summary container, currently broken, is updated too often 
     
    4443 Examples: 
    4544 - wordpress comment form, make it a drop-in method 
    46  - ajax: captcha validation ( http://psyrens.com/captcha/ ) 
    4745 - ajaxForm() integration 
    4846 - ajaxSubmit with rules-option, more/less options to ajaxSubmit