Re: [jQuery] Site

2010-02-13 Thread Atkinson, Sarah
Great just what we need Spammers. Humm I have been getting tired of eating 
nothing but chicken. Maybe Spam is just what I need

Sent from my iPhone

On Feb 13, 2010, at 10:49 AM, "sourabh sharma" 
mailto:sourabh47mca...@gmail.com>> wrote:

Hi Guys,

I have create a one website where user can purchase the world best products 
provide by Amazon.
Also I have create a account of twitter account for that. In the twitter 
account you  can easily follow the best deals of amazon as well  as avideogame.

Please follow us at

Site:  http://.avideogame.com
Twitter:  http://www.twitter.com/avideogame


Thanks
Sourabh Sharma


[jQuery] Current page

2009-12-11 Thread Atkinson, Sarah
How do I mark the current page in a list of links?


[jQuery] Looking for suggestions on drop down

2009-11-24 Thread Atkinson, Sarah
I have 3 dropdowns and depending and when the value of one changes the value of 
the others has to change.
What should be my best approach of attacking this problems?
I was thinking of righting a function for each different possibility and then 
jut removing and adding the possible values but this could be long and tedious. 
Is there a better way?


Re: [jQuery] What is the opposite of :checked?

2009-11-19 Thread Atkinson, Sarah
That worked



On 11/19/09 4:00 PM, "Charlie Griefer"  wrote:

http://docs.jquery.com/Selectors/not

On Thu, Nov 19, 2009 at 12:55 PM, Atkinson, Sarah 
 wrote:
What is the opposite of :checked?

Is it :unchecked? Or would you use the not (!)




[jQuery] What is the opposite of :checked?

2009-11-19 Thread Atkinson, Sarah
What is the opposite of :checked?

Is it :unchecked? Or would you use the not (!)


Re: [jQuery] Trouble with IE breaking script

2009-11-19 Thread Atkinson, Sarah
Yea I'm kinda figuring it out trying another approch that I found here
http://www.quirksmode.org/dom/w3c_css.html


On 11/19/09 3:12 PM, "Charlie Griefer"  wrote:

This may just be another example of IE sucking.  I get an error on IE 6, 
"unexpected call to method or property access".

Googling that error message (and adding 'style' to the search) suggests that 
manipulating the style attribute dynamically on IE is somewhat... problematic :\

On Thu, Nov 19, 2009 at 11:45 AM, Atkinson, Sarah 
 wrote:


Yes In the function that this bit of code resides


On 11/19/09 2:43 PM, "Charlie Griefer" http://charlie.grie...@gmail.com> > wrote:

leftOffset is a variable you're defining somewhere?

On Thu, Nov 19, 2009 at 11:39 AM, Atkinson, Sarah 
http://sarah.atkin...@cookmedical.com> > wrote:

IE 7 haven't tried any others. And it doesn't work it doesn't text and it cause 
another function that hides and shows a div to not work as well.  The only fire 
bug error I get is "Reload to activate window console" although IE has a 
message saying error on page


On 11/19/09 2:35 PM, "Charlie Griefer" http://charlie.grie...@gmail.com>  <http://charlie.grie...@gmail.com> > wrote:

What version of IE?
Define "break"?

On Thu, Nov 19, 2009 at 11:29 AM, Atkinson, Sarah 
http://sarah.atkin...@cookmedical.com>  
<http://sarah.atkin...@cookmedical.com> > wrote:
I'm having trouble with IE
This code seems to break in IE

var cssString= "label.error{left:"+leftOffset+"px;}";$('head 
style').text(cssString);








Re: [jQuery] Trouble with IE breaking script

2009-11-19 Thread Atkinson, Sarah


Yes In the function that this bit of code resides

On 11/19/09 2:43 PM, "Charlie Griefer"  wrote:

leftOffset is a variable you're defining somewhere?

On Thu, Nov 19, 2009 at 11:39 AM, Atkinson, Sarah 
 wrote:

IE 7 haven't tried any others. And it doesn't work it doesn't text and it cause 
another function that hides and shows a div to not work as well.  The only fire 
bug error I get is "Reload to activate window console" although IE has a 
message saying error on page


On 11/19/09 2:35 PM, "Charlie Griefer" http://charlie.grie...@gmail.com> > wrote:

What version of IE?
Define "break"?

On Thu, Nov 19, 2009 at 11:29 AM, Atkinson, Sarah 
http://sarah.atkin...@cookmedical.com> > wrote:
I'm having trouble with IE
This code seems to break in IE

var cssString= "label.error{left:"+leftOffset+"px;}";$('head 
style').text(cssString);






Re: [jQuery] Trouble with IE breaking script

2009-11-19 Thread Atkinson, Sarah

IE 7 haven't tried any others. And it doesn't work it doesn't text and it cause 
another function that hides and shows a div to not work as well.  The only fire 
bug error I get is "Reload to activate window console" although IE has a 
message saying error on page

On 11/19/09 2:35 PM, "Charlie Griefer"  wrote:

What version of IE?
Define "break"?

On Thu, Nov 19, 2009 at 11:29 AM, Atkinson, Sarah 
 wrote:
I'm having trouble with IE
This code seems to break in IE

var cssString= "label.error{left:"+leftOffset+"px;}";$('head 
style').text(cssString);




[jQuery] Trouble with IE breaking script

2009-11-19 Thread Atkinson, Sarah
I'm having trouble with IE
This code seems to break in IE

var cssString= "label.error{left:"+leftOffset+"px;}";$('head 
style').text(cssString);


Re: [jQuery] Re: Modifying a CSS class's properties SOLVED

2009-11-19 Thread Atkinson, Sarah

It is possible I used this:
$('style').text('label.error{left:' + leftOffset +'px;}');
On 11/19/09 1:33 PM, "discern"  wrote:

I don't know if that is possible (although almost anything, it seems,
is possible with jQuery), but what if you had a secondary class in
your CSS and used addClass('secondary') to the element. It would
inherit styles from the original and apply the secondary styles.



Re: [jQuery] Re: Modifying a CSS class's properties

2009-11-19 Thread Atkinson, Sarah
The problem is is that I need to calculate the styles when the page loads.  And 
the calculation results in a couple of hundred different numbers.


On 11/19/09 1:33 PM, "discern"  wrote:

I don't know if that is possible (although almost anything, it seems,
is possible with jQuery), but what if you had a secondary class in
your CSS and used addClass('secondary') to the element. It would
inherit styles from the original and apply the secondary styles.



[jQuery] Modifying a CSS class's properties

2009-11-19 Thread Atkinson, Sarah
Can I modify a CSS Class's properties not on an element but on the css class 
it's self so that and element that is given that class in the future will still 
have those changes?  Perhaps modify a class that is actually in the header?


[jQuery] InvalidHandler problem for validation

2009-11-19 Thread Atkinson, Sarah
My problem is simple it seems that the invalidHandler function runs first. I 
need it to either run last or I need to be able to add extra class features to 
the errors.

Or is it possible to alter a style sheet's class on document load?


Re: [jQuery] Re: validation: how do I call a function to perform after a validation is done?

2009-11-19 Thread Atkinson, Sarah
Ok I'm using this
  invalidHandler: function(form, validator)  {
PossitionStuff.possitionErrors();  },
And it works but it doesn't fire till the second validation I need it to fire 
on the first go around too


On 11/18/09 4:06 PM, "StephenJacob"  wrote:

Hmm, i'm not really sure how to pull that off.  I would look into the
showErrors option or possibly the Valid function.

http://docs.jquery.com/Plugins/Validation/validate

http://docs.jquery.com/Plugins/Validation/valid

Good luck and let us know how things turn out for ya!


On Nov 18, 3:47 pm, "Atkinson, Sarah" 
wrote:
> I want the function to trigger when there are errors  it's to alter the 
> position of both the errors and other elements on the page.
>
> So I got the function to fire but I can't seem to changes the css on the 
> error boxes.
> $('label .error').css({'left' : basePossitionOffset.left});
> Does not work.
>
> I should be able to alter the error messages just like anyother element in 
> the DOM right?
>
> On 11/18/09 3:34 PM, "StephenJacob"  wrote:
>
> It depends on your method of validation. Here is the form/validation
> system I use for my contact form. Hope this helps!
>
> 
> 
> 
> 
>
> $(document).ready(function() {
>
> $("#contactForm").validate({
> rules: {
> fullname: {
> required: true,
> minlength: 2
> },
> email: {
> required: true,
> email: true
> },
> company: {
> required: true,
> minlength: 2
> },
> phone: {
> required: true,
> minlength: 2
> },
> },
> messages: {
> fullname: '<span class="error">Please enter your 
> <b>full name</b>.</
> span>',
> email: '<span class="error">Please enter a valid 
> <b>email address</
> b>.</span>',
> company: '<span class="error">Please enter your 
> <b>company</b>.</
> span>',
> phone: '<span class="error">Please enter your 
> <b>phone number</b>.</
> span>'
> },
> submitHandler: function(form) {
>
> $('#contactForm').ajaxSubmit({
> resetForm: true,
> target: '#success',
> success: function() {
> 
> $("#success").fadeIn('slow').fadeTo(5000, 1).fadeOut('slow');
> }
> });
> }
> });
>
> });
>
> 
>
> 
>
> //FORM GOES HERE
>
> 
>
> On Nov 18, 3:08 pm, "Atkinson, Sarah" 
> wrote:
>
> > Do I have to create a custom method and stick a function in there?



Re: [jQuery] Re: validation: how do I call a function to perform after a validation is done?

2009-11-18 Thread Atkinson, Sarah
I want the function to trigger when there are errors  it's to alter the 
position of both the errors and other elements on the page.

So I got the function to fire but I can't seem to changes the css on the error 
boxes.
$('label .error').css({'left' : basePossitionOffset.left});
Does not work.

I should be able to alter the error messages just like anyother element in the 
DOM right?


On 11/18/09 3:34 PM, "StephenJacob"  wrote:

It depends on your method of validation. Here is the form/validation
system I use for my contact form. Hope this helps!






$(document).ready(function() {

$("#contactForm").validate({
rules: {
fullname: {
required: true,
minlength: 2
},
email: {
required: true,
email: true
},
company: {
required: true,
minlength: 2
},
phone: {
required: true,
minlength: 2
},
},
messages: {
fullname: '<span class="error">Please enter your 
<b>full name</b>.</
span>',
email: '<span class="error">Please enter a valid 
<b>email address</
b>.</span>',
company: '<span class="error">Please enter your 
<b>company</b>.</
span>',
phone: '<span class="error">Please enter your <b>phone 
number</b>.</
span>'
},
submitHandler: function(form) {

$('#contactForm').ajaxSubmit({
resetForm: true,
target: '#success',
success: function() {
    
$("#success").fadeIn('slow').fadeTo(5000, 1).fadeOut('slow');
}
});
}
});

});





//FORM GOES HERE



On Nov 18, 3:08 pm, "Atkinson, Sarah" 
wrote:
> Do I have to create a custom method and stick a function in there?



[jQuery] validation: how do I call a function to perform after a validation is done?

2009-11-18 Thread Atkinson, Sarah
Do I have to create a custom method and stick a function in there?


Re: [jQuery] Validation error placement

2009-11-18 Thread Atkinson, Sarah

Ok so I switched to
 errorLabelContainer: ".insidePage_error",
But that div still isn't getting any errors into it.

On 11/18/09 1:55 PM, "Jörn Zaefferer"  wrote:

Do you have only a single element? Then use the errorLabelContainer option. Or 
one for each input? Then you need to make that selector relative to the current 
input; currently you select the same div for each input.

Jörn

On Wed, Nov 18, 2009 at 7:29 PM, Atkinson, Sarah 
 wrote:
That's actualy what I was looking at... But I'm not using a table layout. So 
instead I want them to go into a special error div with class "insidePage_error"
And so I got these 2 lines

  errordiv=$('.insidePage_error div');  error.appendTo(errordiv);


I also tried
Errordiv.appendChild(error);
 but that didn't work either

On 11/18/09 12:00 PM, "Jörn Zaefferer" http://joern.zaeffe...@googlemail.com> > wrote:

Take a look at the milk-demo here: 
http://jquery.bassistance.de/validate/demo/milk
The messages are placed in the column next to the input element, that should be 
close to what you are looking for.

Jörn

2009/11/18 Atkinson, Sarah http://sarah.atkin...@cookmedical.com> >
I am trying to put all my errors in a  that is the 3rd column. I then want 
to set there position so it is level with the element.
But when I run it I get no error messages

Here is my code:
  errorPlacement: function(error, element)   {
errordiv=$('.insidePage_error div');  error.appendTo(errordiv); 
//var offset = $(element).offset();//error.css({'top' : offset.top, 
'position' : 'absolute' });   },






Re: [jQuery] Validation error placement

2009-11-18 Thread Atkinson, Sarah

Yes I have only one container
Ok so I will use the errorLabelContainer

Now after I do that can I use the offset to alter the css on each of the error 
labels to be equal to the offset of the offending element?
Or should a create custom method that runs after validation runs repositions 
everything?

On 11/18/09 1:55 PM, "Jörn Zaefferer"  wrote:

Do you have only a single element? Then use the errorLabelContainer option. Or 
one for each input? Then you need to make that selector relative to the current 
input; currently you select the same div for each input.

Jörn

On Wed, Nov 18, 2009 at 7:29 PM, Atkinson, Sarah 
 wrote:
That's actualy what I was looking at... But I'm not using a table layout. So 
instead I want them to go into a special error div with class "insidePage_error"
And so I got these 2 lines

  errordiv=$('.insidePage_error div');  error.appendTo(errordiv);


I also tried
Errordiv.appendChild(error);
 but that didn't work either

On 11/18/09 12:00 PM, "Jörn Zaefferer" http://joern.zaeffe...@googlemail.com> > wrote:

Take a look at the milk-demo here: 
http://jquery.bassistance.de/validate/demo/milk
The messages are placed in the column next to the input element, that should be 
close to what you are looking for.

Jörn

2009/11/18 Atkinson, Sarah http://sarah.atkin...@cookmedical.com> >
I am trying to put all my errors in a  that is the 3rd column. I then want 
to set there position so it is level with the element.
But when I run it I get no error messages

Here is my code:
  errorPlacement: function(error, element)   {
errordiv=$('.insidePage_error div');  error.appendTo(errordiv); 
//var offset = $(element).offset();//error.css({'top' : offset.top, 
'position' : 'absolute' });   },






Re: [jQuery] Validation error placement

2009-11-18 Thread Atkinson, Sarah
That's actualy what I was looking at... But I'm not using a table layout. So 
instead I want them to go into a special error div with class "insidePage_error"
And so I got these 2 lines
  errordiv=$('.insidePage_error div');  error.appendTo(errordiv);


I also tried
Errordiv.appendChild(error);
 but that didn't work either
On 11/18/09 12:00 PM, "Jörn Zaefferer"  wrote:

Take a look at the milk-demo here: 
http://jquery.bassistance.de/validate/demo/milk
The messages are placed in the column next to the input element, that should be 
close to what you are looking for.

Jörn

2009/11/18 Atkinson, Sarah 
I am trying to put all my errors in a  that is the 3rd column. I then want 
to set there position so it is level with the element.
But when I run it I get no error messages

Here is my code:
  errorPlacement: function(error, element)   {
errordiv=$('.insidePage_error div');  error.appendTo(errordiv); 
//var offset = $(element).offset();//error.css({'top' : offset.top, 
'position' : 'absolute' });   },




[jQuery] Validation error placement

2009-11-18 Thread Atkinson, Sarah
I am trying to put all my errors in a  that is the 3rd column. I then want 
to set there position so it is level with the element.
But when I run it I get no error messages

Here is my code:
  errorPlacement: function(error, element)  {
errordiv=$('.insidePage_error div');  error.appendTo(errordiv);
//var offset = $(element).offset();//error.css({'top' : offset.top, 
'position' : 'absolute' });   },


[jQuery] Validation and dropdowns

2009-11-17 Thread Atkinson, Sarah
I have several dropdowns in my form. They start on a "please select one" state. 
How do I make it so that if one of these is selected then it does not trigger 
validation but kicks back an error?
Sarah


Re: [jQuery] Validation (groups, rules and messages)

2009-11-17 Thread Atkinson, Sarah

So what exactly does the group option do?


On 11/17/09 10:30 AM, "Jörn Zaefferer"  wrote:

You need to specify the rules for each individual field, here firstname and 
lastName. The group name doesn't have any meaning outside the groups-option 
itself.

Jörn

On Tue, Nov 17, 2009 at 4:23 PM, Atkinson, Sarah 
 wrote:
I'm working with the validation plugin
I have a first name and last name field and I want to have these grouped 
together with one message. This is what I have:
But the message still isn't showing.
  groups: {fullName: 
"firstname lastName",  },rules:{fullName: "required", },
messages:{fullName: "Both first and last name are required",




[jQuery] Validation (groups, rules and messages)

2009-11-17 Thread Atkinson, Sarah
I'm working with the validation plugin
I have a first name and last name field and I want to have these grouped 
together with one message. This is what I have:
But the message still isn't showing.
  groups: {fullName: 
"firstname lastName",  },rules:{fullName: "required",},
messages:{fullName: "Both first and last name are required",


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 (resp == 'false') { // password didn't match 
validator.showErrors({"password":"Incorrect Password or Email Address!"}); 
return false; }  // Password matched, submit the form submitform(); }) }

On 11/16/09 5:02 PM, "Jules"  wrote:

> submitHandler: function(form) {
>
> var pwd = $('#password').val();  // md5 encode
> the password
> md5pwd = hex_md5(pwd);
> //$('#password').val(pwd);
>
> $.get('../UVServer/login.php','email='+$
> ('#email').val()+ '&password='+ md5pwd,
> function(resp) {
> if (resp == 'false')
> {
> // password didn't match
> validator.showErrors({"password":
> "Incorrect Password or Email Address!"});
>
> return false;
> }
>form.submit();  // Password matched, submit
> the form
>
> })
>
> },


[jQuery] Validation plugin rules() ???

2009-11-16 Thread Atkinson, Sarah
Is there a list somewhere of what the options are for the rules (required, 
email)
I can't seem to find more info on this in the jquery site.


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 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
> understand the scope that the call back function is in, and the
> validator's
> form object.
>
> I need to include  the form.submit() call  in the $.get's callback
> function
> because of the asynchronous nature of
> AJAX.  The $.get()'s callback is not called until the response comes
> back from the server. If I call the form.submit() funcition before the
> response
> comes back, I will either not know whether the server was able to
> validate
> the credentials.
>
> -ben
> On Nov 15, 4:59 am, "Atkinson, Sarah" 
> wrote:
>> 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 saying u have an object valuable called form and it
>> has a method of submit()
>>
>> Sent from my iPhone
>>
>> On Nov 15, 2009, at 4:44 AM, "sprach"  wrote:
>>
>>
>>
>>> $('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"  
>>> 
>>> wrote:
>>>> Try $('form').submit()
>>
>>>> Sent from my iPhone
>>
>>>> On Nov 14, 2009, at 10:44 PM, "sprach" 
>>>> wrote:
>>
>>>>> I am new to javascript, jquery and validator, but really see the
>>>>> potential and am trying to use in a new application.  I am  
>>>>> having a
>>>>> little trouble wrapping my head around the layers of callbacks.
>>
>>>>> I have a simple login form that I want to validate, but want to  
>>>>> send
>>>>> an md5 encrypted password to the server.  All of my validation  
>>>>> works
>>>>> until I try and submit the form.   Here is the code snippet of the
>>>>> validator submit handler:
>>
>>>>> 
>>>>> submitHandler: function(form) {
>>
>>>>>var pwd = $('#password').val();  // md5
>>>>> encode
>>>>> the password
>>>>>md5pwd = hex_md5(pwd);
>>>>>//$('#password').val(pwd);
>>
>>>>>$.get('../UVServer/login.php','email='+$
>>>>> ('#email').val()+ '&password='+ md5pwd,
>>>>>function(resp) {
>>>>>if (resp == 'false')
>>>>>{
>>>>>// password didn't match
>>>>>validator.showErrors({"password":
>>>>> "Incorrect Password or Email Address!"});
>>
>>>>>return false;
>>>>>}
>>>>>   form.submit();  // Password matched,
>>>>> submit
>>>>> the form
>>
>>>>>})
>>
>>>>>},
>>>>> ...
>>
>>>>> The problem that I run into is that I cannot call form.submit() in
>>>>> the
>>>>> anonymous call back that I use for the jquery $.get call.  In the
>>>>> code
>>>>> above, firebug claims that form.submit() is not a function.
>>
>>>>> I have tried many work arounds but nothing seems to work.  I don't
>>>>> want to use the "remote" rule, because I don't want to pass the
>>>>> unencrypted password to the server.
>>
>>>>> Help greatly appreciated.- Hide quoted text -
>>
>>>> - Show quoted text -- Hide quoted text -
>>
>> - Show quoted text -


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 saying u have an object valuable called form and it  
has a method of submit()

Sent from my iPhone

On Nov 15, 2009, at 4:44 AM, "sprach"  wrote:

> $('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" 
> wrote:
>> Try $('form').submit()
>>
>> Sent from my iPhone
>>
>> On Nov 14, 2009, at 10:44 PM, "sprach"   
>> wrote:
>>
>>
>>
>>> I am new to javascript, jquery and validator, but really see the
>>> potential and am trying to use in a new application.  I am having a
>>> little trouble wrapping my head around the layers of callbacks.
>>
>>> I have a simple login form that I want to validate, but want to send
>>> an md5 encrypted password to the server.  All of my validation works
>>> until I try and submit the form.   Here is the code snippet of the
>>> validator submit handler:
>>
>>> 
>>> submitHandler: function(form) {
>>
>>>var pwd = $('#password').val();  // md5  
>>> encode
>>> the password
>>>md5pwd = hex_md5(pwd);
>>>//$('#password').val(pwd);
>>
>>>$.get('../UVServer/login.php','email='+$
>>> ('#email').val()+ '&password='+ md5pwd,
>>>function(resp) {
>>>if (resp == 'false')
>>>{
>>>// password didn't match
>>>validator.showErrors({"password":
>>> "Incorrect Password or Email Address!"});
>>
>>>return false;
>>>}
>>>   form.submit();  // Password matched,  
>>> submit
>>> the form
>>
>>>})
>>
>>>},
>>> ...
>>
>>> The problem that I run into is that I cannot call form.submit() in  
>>> the
>>> anonymous call back that I use for the jquery $.get call.  In the  
>>> code
>>> above, firebug claims that form.submit() is not a function.
>>
>>> I have tried many work arounds but nothing seems to work.  I don't
>>> want to use the "remote" rule, because I don't want to pass the
>>> unencrypted password to the server.
>>
>>> Help greatly appreciated.- Hide quoted text -
>>
>> - Show quoted text -


Re: [jQuery] Newbie validator question/problem

2009-11-15 Thread Atkinson, Sarah
Try $('form').submit()

Sent from my iPhone

On Nov 14, 2009, at 10:44 PM, "sprach"  wrote:

> I am new to javascript, jquery and validator, but really see the
> potential and am trying to use in a new application.  I am having a
> little trouble wrapping my head around the layers of callbacks.
>
> I have a simple login form that I want to validate, but want to send
> an md5 encrypted password to the server.  All of my validation works
> until I try and submit the form.   Here is the code snippet of the
> validator submit handler:
>
> 
> submitHandler: function(form) {
>
>var pwd = $('#password').val();  // md5 encode
> the password
>md5pwd = hex_md5(pwd);
>//$('#password').val(pwd);
>
>$.get('../UVServer/login.php','email='+$
> ('#email').val()+ '&password='+ md5pwd,
>function(resp) {
>if (resp == 'false')
>{
>// password didn't match
>validator.showErrors({"password":
> "Incorrect Password or Email Address!"});
>
>return false;
>}
>   form.submit();  // Password matched, submit
> the form
>
>})
>
>},
> ...
>
> The problem that I run into is that I cannot call form.submit() in the
> anonymous call back that I use for the jquery $.get call.  In the code
> above, firebug claims that form.submit() is not a function.
>
> I have tried many work arounds but nothing seems to work.  I don't
> want to use the "remote" rule, because I don't want to pass the
> unencrypted password to the server.
>
> Help greatly appreciated.


Re: [jQuery] Having problems getting Validation plugin to report only 1 error

2009-11-14 Thread Atkinson, Sarah
Would this be a group: thing?

Sent from my iPhone

On Nov 13, 2009, at 7:31 PM, "marty"   
wrote:

> I'm having a problem using the Validation plugin.
>
> The user must make a selection from any one of several dropdown menus.
>
> I want there to be only validation warning, but I'm getting a warning
> for each dropdown.
>
> I have prepared a test on my website: 
> http://www.martinschechtman.com/validateTest.html 
> .
>
> Any help getting this to work properly would be greatly appreciated!
>
> Thanks,
> Marty


[jQuery] Changing the check/uncheck of a check box

2009-11-13 Thread Atkinson, Sarah
How can I change the value of the check/uncheck status of a checkbox?

I want to be able to focus on some and if that item is focused then a checkbox 
becomes unchecked
("#customerNumber").focus($("#newCustomer").checked="unchecked");


Re: [jQuery] Re: Form validator add on

2009-11-13 Thread Atkinson, Sarah

I saw that, and I am looking at it but I'm using a field. Not a check box;
But I am trying to wade though and figure it out.

On 11/13/09 4:59 PM, "serhat"  wrote:

you can use checkboxes or radio buttons for each two field areas and
validate only id the radio or checkbox is on.

for further info check demo pages on jquery validation documentation
zip file. There is an example what I suggest to you.

Whis this helps.

On 13 Kasim, 22:22, "Atkinson, Sarah" 
wrote:
> I'm using the form validator add on. I have 1 field and a group of 6 fields 
> the user can either enter something in the one field or fill out all 6 of 
> those in the group. How do I do the either/or code for this?



[jQuery] Form validator plugin

2009-11-13 Thread Atkinson, Sarah
I'm using the form validator plug in and I want to give each of the error 
labels an id that is based on the input labels id. For instance I want if the 
input id is "email" I want the errors id to be "email_err"


[jQuery] Form validator add on

2009-11-13 Thread Atkinson, Sarah
I'm using the form validator add on. I have 1 field and a group of 6 fields the 
user can either enter something in the one field or fill out all 6 of those in 
the group. How do I do the either/or code for this?


[jQuery] Javascript Array question

2009-11-13 Thread Atkinson, Sarah
I want to create an 2D array that would basically contain a variable amount of 
3 entry arrays. Is there a short way of doing this? Like
var myArray= new Array( ,3);


[jQuery] Getting a position and setting a absolute position relatively

2009-11-12 Thread Atkinson, Sarah
I want to find the x,y position of an element on the page and then set the xy 
position of another element relative to the first one. How do I do this?


[jQuery] Problem with drop down menu

2009-11-10 Thread Atkinson, Sarah
I'm just picking up javascript and Jquery. I'm trying to do a drop down menu. 
I've downloaded several and tried to use their code but they all seem to  have 
issues with my menu. What is going on? My current problem is that when a person 
rollsover just the li that it then opens all of the dropdowns causing the user 
to have to enter and leave each of the parent . But if I hide them all 
before doing the slidedown then I get a realy bad flicker problem.

I have spent 2 solid days on this and it should be simple. What do I do?


Code:
// JavaScript Document $(document).ready(function () {   $('.mainnav 
li').mouseenter(Menu.show);  $('.mainnav li ul').mouseleave(Menu.hide); 
}); var Menu = {  show: function(event) {  var menuLi= 
$(this).children(); $(menuLi).slideDown('slow'); },  hide: function(event) 
{ $(this).hide(); } }

html:
  About the 
DiseasePrevent the Preventable
VTE and Pulmonary Embolism 
   When Vena Cava Filters can 
help  Procedure  
Sizing the 
Cava  Choosing a 
Filter  Deployment   
   Product Suite  
  Case Studies  
Case 1  Case 2  Case 3