jpillora / verifyjs

Verify.js - A powerful, customizable asynchronous validation library
http://verifyjs.jpillora.com/
161 stars 61 forks source link

"Object doesn't support this property or method" when using $.verify.updateRules #3

Open pkpouille opened 11 years ago

pkpouille commented 11 years ago

Hello,

I'm having an issue when trying to change the message of a default validation rule ("number"). My browser (IE8) is throwing me a "Object doesn't support this property or method" JS error.


    $.verify({errorClass: "error-form"});

    $.verify.updateRules({
        number: {
            message: "Hello world"
          }
        });

I'm using version Verify.js - v0.0.1 - 2013/06/12

ghost commented 10 years ago

I'm having the same issue. Were you able to solve this? Have a nice day Chris

sobiyang commented 9 years ago

Because it's not included in the ruleManager.

Add this line

updateRules: updateRules,

into this block

ruleManager = {
    addFieldRules: addFieldRules,
    addGroupRules: addGroupRules,
    getRule: getRule,
    getRawRule: getRawRule,
    parseString: parseString,
    parseAttribute: parseAttribute,
    parseElement: parseElement
 };
hostelix commented 9 years ago

Help me! it does not work.. as I can fix?