[jQuery] Re: Newbie validator question/problem

2009-11-17 Thread sprach
Jules, I was thinking that writing a rule would solve the problem but wasn't sure how to do it. Thanks for detailing it out. -ben On Nov 16, 5:02 pm, Jules wrote: > Can't you use remote validation?  This code should work. > >             $("#password").rules("add", { >                 messages:

Re: [jQuery] Re: Newbie validator question/problem

2009-11-16 Thread Atkinson, Sarah
submitHandler: function(form) { var pwd = $('#password').val(); // md5 encode the password md5pwd = hex_md5(pwd); function submitform(){form.submit(); } //$('#password').val(pwd); $.get('../UVServer/login.php',{email:"$('#email').val()", password: md5pwd}, function(resp) { if

[jQuery] Re: Newbie validator question/problem

2009-11-16 Thread Jules
Can't you use remote validation? This code should work. $("#password").rules("add", { messages: { remote: "Invalid password." }, required: true, remote: { url: ".../UVServer/login.php", type: "get"

[jQuery] Re: Newbie validator question/problem

2009-11-16 Thread Henry
On Nov 15, 2:45 am, sprach wrote: > ... . In the code > above, firebug claims that form.submit() is not a function. The DOM allows named form controls to be accessed as named properties of the FORM element object. However, the FORM elements have a set of properties/methods of their own, includin

[jQuery] Re: Newbie validator question/problem

2009-11-16 Thread sprach
I found the information on closures. It is really mind numbing for me to try and figure out all of the complexities of the nested functions and redirections. I need to take some time and study the documentation. On Nov 15, 8:10 am, "Atkinson, Sarah" wrote: > Look up clousers (sp?) they are used f

Re: [jQuery] Re: Newbie validator question/problem

2009-11-15 Thread Atkinson, Sarah
Look up clousers (sp?) they are used for varriables usualy with the time function. All I have this weekend is my phone so I'm just trying to pull stuff off the top of my head. Sent from my iPhone On Nov 15, 2009, at 7:52 AM, "sprach" wrote: > Sarah, > > Thanks for trying to help. The probl

[jQuery] Re: Newbie validator question/problem

2009-11-15 Thread sprach
Sarah, Thanks for trying to help. The problem is definetly a scope problem. I just don't know how to pass the .. (form.submit) into the callback function that $.get() creates. I have tried to create a "global" var to assing the form object to, but that doesn't work either. I don't really unders

Re: [jQuery] Re: Newbie validator question/problem

2009-11-15 Thread Atkinson, Sarah
I've never used the get() I wonder If you have a scope problem. You might try a closer. Also if your calling a method you need to reference the object that the method is part of. I haven't yet gotten to the submit part--hopeing to study more validator stuff tonight. But form.submit() is say

[jQuery] Re: Newbie validator question/problem

2009-11-15 Thread sprach
$('form').submit() causes the jquery submit to be fired which is then interecepted again by validator which causes the infinite recursion problem. I need to use validator's form.submit() method. I just can't get to it from the callback used by $.get(). -ben On Nov 15, 4:28 am, "Atkinson, Sarah"