[jQuery] Re: (validation) removal of error message problem

2009-09-23 Thread chief7

Cleaned up the test page:

http://pastie.org/627561

On Sep 23, 10:35 am, chief7  wrote:
> I created a test page -http://pastie.org/627543
>
> steps to reproduce:
>
> -open the page in a browser
> -add a letter to one of the amount inputs
> -click on another input
> -the validation should show
> -go back to the same input and remove the letter you added
> -the error should be hidden but its not
>
> On Sep 23, 8:29 am, chief7  wrote:
>
>
>
> > Still 0.
>
> > On Sep 23, 8:20 am, Jörn Zaefferer 
> > wrote:
>
> > > Try this:
>
> > > $("label[for='orders[4].elements[2].Value']").length
>
> > > On Wed, Sep 23, 2009 at 3:17 PM, chief7  wrote:
>
> > > > i can't reproduce on a test page.  I updated to 1.5.5, but no change.
>
> > > > the page in question is dynamically generated using AJAX data calls.
>
> > > > i can see the error label in the js console:
>
> > > >>>$("label.error").length
> > > > 1
> > > >>>$("label.error").toHtml()
> > > > " > > > generated="true">Only numeric values are permitted."
>
> > > > but the 'for' attribute selector in the errorsFor method doesn't
> > > > work.  it doesn't work from the console either:
>
> > > >>>$("label([for='orders[4].elements[2].Value'])").length
> > > > 0
>
> > > > On Sep 22, 4:48 pm, Jörn Zaefferer 
> > > > wrote:
> > > >> Please update to 1.5.5 - also, please provide a testpage, otherwise I
> > > >> can't help.
>
> > > >> Jörn
>
> > > >> On Tue, Sep 22, 2009 at 11:08 PM, chief7  wrote:
>
> > > >> > fyi - using jquery.validate.js version 1.5.2
>
> > > >> > On Sep 22, 3:39 pm, chief7  wrote:
> > > >> >> looks like this issue is caused by the name of the input.  the name 
> > > >> >> is
> > > >> >> "orders[5].elements[2].Value" which an attribute selector won't find
> > > >> >> (ie. $("input[for=orders[5].elements[2].Value]")), but if the name 
> > > >> >> is
> > > >> >> "elements[2].Value" it works fine.
>
> > > >> >> the 'for' attribute selector is used on line 630 of 
> > > >> >> jquery.validate.js
>
> > > >> >> On Sep 22, 7:32 am, chief7  wrote:
>
> > > >> >> > the validation error message isn't removed/hidden after i fix an
> > > >> >> > invalid input.  If I make the input invalid again another error
> > > >> >> > message is appended below the first error message.
>
> > > >> >> > error messages are added/removed appropriately on all other pages.
> > > >> >> > this problem is only occurring on one page.- Hide quoted text -
>
> > > >> >> - Show quoted text -- Hide quoted text -
>
> > > >> - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: (validation) removal of error message problem

2009-09-23 Thread chief7

I created a test page - http://pastie.org/627543

steps to reproduce:

-open the page in a browser
-add a letter to one of the amount inputs
-click on another input
-the validation should show
-go back to the same input and remove the letter you added
-the error should be hidden but its not


On Sep 23, 8:29 am, chief7  wrote:
> Still 0.
>
> On Sep 23, 8:20 am, Jörn Zaefferer 
> wrote:
>
>
>
> > Try this:
>
> > $("label[for='orders[4].elements[2].Value']").length
>
> > On Wed, Sep 23, 2009 at 3:17 PM, chief7  wrote:
>
> > > i can't reproduce on a test page.  I updated to 1.5.5, but no change.
>
> > > the page in question is dynamically generated using AJAX data calls.
>
> > > i can see the error label in the js console:
>
> > >>>$("label.error").length
> > > 1
> > >>>$("label.error").toHtml()
> > > " > > generated="true">Only numeric values are permitted."
>
> > > but the 'for' attribute selector in the errorsFor method doesn't
> > > work.  it doesn't work from the console either:
>
> > >>>$("label([for='orders[4].elements[2].Value'])").length
> > > 0
>
> > > On Sep 22, 4:48 pm, Jörn Zaefferer 
> > > wrote:
> > >> Please update to 1.5.5 - also, please provide a testpage, otherwise I
> > >> can't help.
>
> > >> Jörn
>
> > >> On Tue, Sep 22, 2009 at 11:08 PM, chief7  wrote:
>
> > >> > fyi - using jquery.validate.js version 1.5.2
>
> > >> > On Sep 22, 3:39 pm, chief7  wrote:
> > >> >> looks like this issue is caused by the name of the input.  the name is
> > >> >> "orders[5].elements[2].Value" which an attribute selector won't find
> > >> >> (ie. $("input[for=orders[5].elements[2].Value]")), but if the name is
> > >> >> "elements[2].Value" it works fine.
>
> > >> >> the 'for' attribute selector is used on line 630 of jquery.validate.js
>
> > >> >> On Sep 22, 7:32 am, chief7  wrote:
>
> > >> >> > the validation error message isn't removed/hidden after i fix an
> > >> >> > invalid input.  If I make the input invalid again another error
> > >> >> > message is appended below the first error message.
>
> > >> >> > error messages are added/removed appropriately on all other pages.
> > >> >> > this problem is only occurring on one page.- Hide quoted text -
>
> > >> >> - Show quoted text -- Hide quoted text -
>
> > >> - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: (validation) removal of error message problem

2009-09-23 Thread chief7

Still 0.

On Sep 23, 8:20 am, Jörn Zaefferer 
wrote:
> Try this:
>
> $("label[for='orders[4].elements[2].Value']").length
>
>
>
> On Wed, Sep 23, 2009 at 3:17 PM, chief7  wrote:
>
> > i can't reproduce on a test page.  I updated to 1.5.5, but no change.
>
> > the page in question is dynamically generated using AJAX data calls.
>
> > i can see the error label in the js console:
>
> >>>$("label.error").length
> > 1
> >>>$("label.error").toHtml()
> > " > generated="true">Only numeric values are permitted."
>
> > but the 'for' attribute selector in the errorsFor method doesn't
> > work.  it doesn't work from the console either:
>
> >>>$("label([for='orders[4].elements[2].Value'])").length
> > 0
>
> > On Sep 22, 4:48 pm, Jörn Zaefferer 
> > wrote:
> >> Please update to 1.5.5 - also, please provide a testpage, otherwise I
> >> can't help.
>
> >> Jörn
>
> >> On Tue, Sep 22, 2009 at 11:08 PM, chief7  wrote:
>
> >> > fyi - using jquery.validate.js version 1.5.2
>
> >> > On Sep 22, 3:39 pm, chief7  wrote:
> >> >> looks like this issue is caused by the name of the input.  the name is
> >> >> "orders[5].elements[2].Value" which an attribute selector won't find
> >> >> (ie. $("input[for=orders[5].elements[2].Value]")), but if the name is
> >> >> "elements[2].Value" it works fine.
>
> >> >> the 'for' attribute selector is used on line 630 of jquery.validate.js
>
> >> >> On Sep 22, 7:32 am, chief7  wrote:
>
> >> >> > the validation error message isn't removed/hidden after i fix an
> >> >> > invalid input.  If I make the input invalid again another error
> >> >> > message is appended below the first error message.
>
> >> >> > error messages are added/removed appropriately on all other pages.
> >> >> > this problem is only occurring on one page.- Hide quoted text -
>
> >> >> - Show quoted text -- Hide quoted text -
>
> >> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: (validation) removal of error message problem

2009-09-23 Thread chief7

This is an issue in IE7, IE8, FF3 and Chrome 3.

On Sep 23, 8:17 am, chief7  wrote:
> i can't reproduce on a test page.  I updated to 1.5.5, but no change.
>
> the page in question is dynamically generated using AJAX data calls.
>
> i can see the error label in the js console:
>
> >>$("label.error").length
> 1
> >>$("label.error").toHtml()
>
> " generated="true">Only numeric values are permitted."
>
> but the 'for' attribute selector in the errorsFor method doesn't
> work.  it doesn't work from the console either:
>
> >>$("label([for='orders[4].elements[2].Value'])").length
>
> 0
>
> On Sep 22, 4:48 pm, Jörn Zaefferer 
> wrote:
>
>
>
> > Please update to 1.5.5 - also, please provide a testpage, otherwise I
> > can't help.
>
> > Jörn
>
> > On Tue, Sep 22, 2009 at 11:08 PM, chief7  wrote:
>
> > > fyi - using jquery.validate.js version 1.5.2
>
> > > On Sep 22, 3:39 pm, chief7  wrote:
> > >> looks like this issue is caused by the name of the input.  the name is
> > >> "orders[5].elements[2].Value" which an attribute selector won't find
> > >> (ie. $("input[for=orders[5].elements[2].Value]")), but if the name is
> > >> "elements[2].Value" it works fine.
>
> > >> the 'for' attribute selector is used on line 630 of jquery.validate.js
>
> > >> On Sep 22, 7:32 am, chief7  wrote:
>
> > >> > the validation error message isn't removed/hidden after i fix an
> > >> > invalid input.  If I make the input invalid again another error
> > >> > message is appended below the first error message.
>
> > >> > error messages are added/removed appropriately on all other pages.
> > >> > this problem is only occurring on one page.- Hide quoted text -
>
> > >> - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: (validation) removal of error message problem

2009-09-23 Thread Jörn Zaefferer

Try this:

$("label[for='orders[4].elements[2].Value']").length

On Wed, Sep 23, 2009 at 3:17 PM, chief7  wrote:
>
> i can't reproduce on a test page.  I updated to 1.5.5, but no change.
>
> the page in question is dynamically generated using AJAX data calls.
>
> i can see the error label in the js console:
>
>>>$("label.error").length
> 1
>>>$("label.error").toHtml()
> " generated="true">Only numeric values are permitted."
>
> but the 'for' attribute selector in the errorsFor method doesn't
> work.  it doesn't work from the console either:
>
>>>$("label([for='orders[4].elements[2].Value'])").length
> 0
>
>
>
> On Sep 22, 4:48 pm, Jörn Zaefferer 
> wrote:
>> Please update to 1.5.5 - also, please provide a testpage, otherwise I
>> can't help.
>>
>> Jörn
>>
>>
>>
>> On Tue, Sep 22, 2009 at 11:08 PM, chief7  wrote:
>>
>> > fyi - using jquery.validate.js version 1.5.2
>>
>> > On Sep 22, 3:39 pm, chief7  wrote:
>> >> looks like this issue is caused by the name of the input.  the name is
>> >> "orders[5].elements[2].Value" which an attribute selector won't find
>> >> (ie. $("input[for=orders[5].elements[2].Value]")), but if the name is
>> >> "elements[2].Value" it works fine.
>>
>> >> the 'for' attribute selector is used on line 630 of jquery.validate.js
>>
>> >> On Sep 22, 7:32 am, chief7  wrote:
>>
>> >> > the validation error message isn't removed/hidden after i fix an
>> >> > invalid input.  If I make the input invalid again another error
>> >> > message is appended below the first error message.
>>
>> >> > error messages are added/removed appropriately on all other pages.
>> >> > this problem is only occurring on one page.- Hide quoted text -
>>
>> >> - Show quoted text -- Hide quoted text -
>>
>> - Show quoted text -


[jQuery] Re: (validation) removal of error message problem

2009-09-23 Thread chief7

i can't reproduce on a test page.  I updated to 1.5.5, but no change.

the page in question is dynamically generated using AJAX data calls.

i can see the error label in the js console:

>>$("label.error").length
1
>>$("label.error").toHtml()
"Only numeric values are permitted."

but the 'for' attribute selector in the errorsFor method doesn't
work.  it doesn't work from the console either:

>>$("label([for='orders[4].elements[2].Value'])").length
0



On Sep 22, 4:48 pm, Jörn Zaefferer 
wrote:
> Please update to 1.5.5 - also, please provide a testpage, otherwise I
> can't help.
>
> Jörn
>
>
>
> On Tue, Sep 22, 2009 at 11:08 PM, chief7  wrote:
>
> > fyi - using jquery.validate.js version 1.5.2
>
> > On Sep 22, 3:39 pm, chief7  wrote:
> >> looks like this issue is caused by the name of the input.  the name is
> >> "orders[5].elements[2].Value" which an attribute selector won't find
> >> (ie. $("input[for=orders[5].elements[2].Value]")), but if the name is
> >> "elements[2].Value" it works fine.
>
> >> the 'for' attribute selector is used on line 630 of jquery.validate.js
>
> >> On Sep 22, 7:32 am, chief7  wrote:
>
> >> > the validation error message isn't removed/hidden after i fix an
> >> > invalid input.  If I make the input invalid again another error
> >> > message is appended below the first error message.
>
> >> > error messages are added/removed appropriately on all other pages.
> >> > this problem is only occurring on one page.- Hide quoted text -
>
> >> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: (validation) removal of error message problem

2009-09-22 Thread Jörn Zaefferer

Please update to 1.5.5 - also, please provide a testpage, otherwise I
can't help.

Jörn

On Tue, Sep 22, 2009 at 11:08 PM, chief7  wrote:
>
> fyi - using jquery.validate.js version 1.5.2
>
> On Sep 22, 3:39 pm, chief7  wrote:
>> looks like this issue is caused by the name of the input.  the name is
>> "orders[5].elements[2].Value" which an attribute selector won't find
>> (ie. $("input[for=orders[5].elements[2].Value]")), but if the name is
>> "elements[2].Value" it works fine.
>>
>> the 'for' attribute selector is used on line 630 of jquery.validate.js
>>
>> On Sep 22, 7:32 am, chief7  wrote:
>>
>>
>>
>> > the validation error message isn't removed/hidden after i fix an
>> > invalid input.  If I make the input invalid again another error
>> > message is appended below the first error message.
>>
>> > error messages are added/removed appropriately on all other pages.
>> > this problem is only occurring on one page.- Hide quoted text -
>>
>> - Show quoted text -


[jQuery] Re: (validation) removal of error message problem

2009-09-22 Thread chief7

fyi - using jquery.validate.js version 1.5.2

On Sep 22, 3:39 pm, chief7  wrote:
> looks like this issue is caused by the name of the input.  the name is
> "orders[5].elements[2].Value" which an attribute selector won't find
> (ie. $("input[for=orders[5].elements[2].Value]")), but if the name is
> "elements[2].Value" it works fine.
>
> the 'for' attribute selector is used on line 630 of jquery.validate.js
>
> On Sep 22, 7:32 am, chief7  wrote:
>
>
>
> > the validation error message isn't removed/hidden after i fix an
> > invalid input.  If I make the input invalid again another error
> > message is appended below the first error message.
>
> > error messages are added/removed appropriately on all other pages.
> > this problem is only occurring on one page.- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: (validation) removal of error message problem

2009-09-22 Thread chief7

looks like this issue is caused by the name of the input.  the name is
"orders[5].elements[2].Value" which an attribute selector won't find
(ie. $("input[for=orders[5].elements[2].Value]")), but if the name is
"elements[2].Value" it works fine.

the 'for' attribute selector is used on line 630 of jquery.validate.js



On Sep 22, 7:32 am, chief7  wrote:
> the validation error message isn't removed/hidden after i fix an
> invalid input.  If I make the input invalid again another error
> message is appended below the first error message.
>
> error messages are added/removed appropriately on all other pages.
> this problem is only occurring on one page.