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:
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
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"
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
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
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
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
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
$('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"
9 matches
Mail list logo