Thank you Dan. Using your example my form displays very nice error message!
After insert several alert() in jquery.validate.js I found what's happened:
a function for date validation...

Form fixed...

Thanks



2007/3/28, Dan G. Switzer, II <[EMAIL PROTECTED]>:

What's the new code you implemented look like? Where did you get my
example
code? What's the URL of the form so we can take a look at the problem.

-Dan


>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
>Behalf Of Web Specialist
>Sent: Tuesday, March 27, 2007 9:48 PM
>To: jQuery Discussion.
>Subject: [jQuery] Error in Jorn Form Validation Plugin
>
>Until yesterday my form with Jorn Form Validation Plugin worked fine only
>submitting after all required fields filled. Today I insert Dan G Switzer
>example to display error message in red colour. And my form dies! ;-)
>
>After click in submit button appear an error in this part of
>jquery.validate.js( v1.0 beta 2):
>
>check: function( element ) {
>            element = this.clean( element );
>            jQuery( element ).removeClass( this.settings.errorClass );
>            var rules = this.rules( element );
>            for( var i = 0, rule; rule = rules[i++]; ) {
>                try {
>                    var result = jQuery.validator.methods [rule.method](
>jQuery.trim(element.value), element, rule.parameters );
>                    if( result === -1 )
>                        break;
>                    if( !result ) {
>                        jQuery(element).addClass(
this.settings.errorClass
>);
>                        this.formatAndAdd( rule, element);
>                        break;
>                    }
>                } catch(e) { // *****************************************
>DEBUGGER STOPS HERE
>                    this.settings.debug && window.console &&
>console.error("exception occured when checking element " + element.id
>                         + ", check the '" + rule.method + "' method");
>                    throw e;
>                }
>            }
>        },
>
>
>What do you suggest to fix this error?
>
>Cheers



_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to