Rick, it looks ok but I have not used the validation plugin, so I have no 
idea what is the correct usage.

I *very strongly suggest* getting Firebug for Firefox.  You will save hours 
of pulling out your hair, such as you are right now!

It's a simple extension for Firefox that debugs your javascript as you are 
testing it in the browser.  It appears as sort of a frame window beneath 
your current browser window.  If there are any JS errors, it shows a red 
"x" - you click it and it pops open the Firebug debugging window, which 
shows any JS errors with the corresponding line numbers.  It also shows AJAX 
responses which can be helpful.  I can't imagine working without it at this 
point.

-- Josh

----- Original Message ----- 
From: "Rick Faircloth" <[EMAIL PROTECTED]>
To: "'jQuery Discussion.'" <discuss@jquery.com>
Sent: Tuesday, March 06, 2007 2:11 PM
Subject: Re: [jQuery] Need help implementing validation...


> Thanks for responding, Josh.
>
> I know it's a lot of code, but I figured the problem might
> be related to the other code.
>
> How about this part, does it look correct?
> I haven't been using Firebug, but I'll check into it, too.
>
> Rick
>
> <script type="text/javascript">
> $.validator.defaults.debug = true;
> $().ready(function() {
> // validate Mortgage_Calculation_Form on keyup and submit
> $("#Mortgage_Calculation_Form").validate({
> event: "keyup",
>
> rules: {
> Principal: { required: true },
> Interest: { required: true },
> Years: { required: true },
> },
> messages: {
> Principal: "Please enter the Principal.",
> Interest: "Please enter the Interest Rate.",
> Years: "Please enter the Years.",
> }
> });
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Josh Nathanson
> Sent: Tuesday, March 06, 2007 2:15 PM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Need help implementing validation...
>
> Rick,
>
> That's a lot of code for folks to look at.  Are you using Firebug for
> Firefox?  That is very helpful in diagnosing these types of problems.
>
> -- Josh
>
>
>
>
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/ 


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

Reply via email to