This project is archived and is in readonly mode.

#198 ✓wontfix
chemix

Form.Validator - Properties parser

Reported by chemix | November 30th, 2009 @ 08:24 PM | in 1.2.4.3

Form.Validator - Element.Properties.validatorProps

Hi,
is it possible update this code ? :


... } else {

{mkd-extraction-35405e479d86f2eea0a05761cffcc3b5}

...

"split(' ')" is problem, because if i have .."validate-match matchName:'New Password' matchInput:'reg_password'" then split(' ') destroy matchName value

maybe helps some regex for replace space between ' ' to  

Comments and changes to this ticket

  • chemix

    chemix November 30th, 2009 @ 08:38 PM

    the problem code

    ...
    var vals = this.get('class').split(' ').filter(function(cls){
        return cls.test(':');
    });
    ...
    
  • Aaron Newton

    Aaron Newton January 14th, 2010 @ 06:41 PM

    • Milestone set to 1.2.4.3
    • State changed from “new” to “open”
    • Assigned user set to “Aaron Newton”
  • Aaron Newton

    Aaron Newton January 28th, 2010 @ 07:44 AM

    • State changed from “open” to “wontfix”

    So yeah, there's no way to do this in the form validator class itself. Instead, you should url encode your values:

       "validate-match matchName:'New%20Password' matchInput:'reg_password'"
    

    and then in your validator, do:

       ...
       var matchName = decodeURI(validatorProps.matchName)
       ...
    

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The MooTools Extensions

People watching this ticket

Pages