Yeah, I tried that. No luck there either (the former was for adding
functionality that needed to occur after validation, but prior to
submission). It's really odd, as there are no errors thrown, and it works
like a champ in FF. The code in the html is so ridiculously simple as well,
and appears to be well formed. I'm stumped.

On Thu, Sep 11, 2008 at 1:42 PM, Jörn Zaefferer <
[EMAIL PROTECTED]> wrote:

> validate() adds a submit handler. Adding that to the form inside your
> own submit handler results in undefined behaviour. Please take a look
> at the basic documentation on how to properly use the validate method:
> http://docs.jquery.com/Plugins/Validation#Example
>
> In your case something like this:
>
> var errContainer = $('#msgContainer');
> $('#loginForm').validate({
>                 errorContainer: errContainer,
>                errorLabelContainer: $("ul",errContainer),
>                rules: {
>                    username: "required",
>                    password: "required"
>                },
>                messages: {
>                    username: 'You must enter a Username',
>                    password: 'You must enter a Password'
>                },
>                wrapper: 'li'
>            });
>
> Thats all.
>
> Jörn
>
> On Thu, Sep 11, 2008 at 6:54 PM, Steve Blades <[EMAIL PROTECTED]> wrote:
> > Wondering if someone can help track an issue. I'm using validate 1.1 with
> > JQuery 1.2.3 (can't upgrade at this time). I have a simple login form,
> and
> > trying to validate that the fields aren't empty prior to submit. Working
> > great in Firefox, but IE doing nothing, and not throwing an error:
> >
> > $('#loginForm').submit(function(){
> >             var errContainer = $('#msgContainer');
> >             var v = $(this).validate({
> >                 errorContainer: errContainer,
> >                 errorLabelContainer: $("ul",errContainer),
> >                 rules: {
> >                     username: "required",
> >                     password: "required"
> >                 },
> >                 messages: {
> >                     username: 'You must enter a Username',
> >                     password: 'You must enter a Password'
> >                 },
> >                 wrapper: 'li'
> >             });
> >
> >             if(v.form()){
> >                 return true;
> >             }
> >             else{
> >                 return false;
> >             }
> >         });
> >
> > Anyone have any ideas?
> >
> > --
> > Steve "Cutter" Blades
> > Adobe Certified Professional
> > Advanced Macromedia ColdFusion MX 7 Developer
> > _____________________________
> > http://blog.cutterscrossing.com
> > ---------------
> > The Past is a Memory
> > The Future a Dream
> > But Today is a Gift
> > That's why they call it
> > The Present
> >
>



-- 
Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_____________________________
http://blog.cutterscrossing.com
---------------
The Past is a Memory
The Future a Dream
But Today is a Gift
That's why they call it
The Present

Reply via email to