[ale] JavaScript question

Geoffrey Myers lists at serioustechnology.com
Fri Apr 26 09:59:14 EDT 2013


On Apr 26, 2013, at 9:51 AM, James Sumners <james.sumners at gmail.com> wrote:

> A lot of information that would help us help you....
> 
> Are the cookies well formed? Are you sure none of them are terminating
> the cookie parser early (i.e. have a colon in the value when they
> shouldn't)?

I'm literally displaying what is being compared before the comparison, so I would expect that I would see an extraneous colon. Also, by the time I get to the for loops, I've stuck the cookies in an array as well, so I'm comparing arrays. 
> 
> You might try my cookie object and see if it works for you --
> http://jrfom.com/2010/12/10/javascript-cookie-manager-object/

Thanks, I'll take a look at it. 

> 
> On Fri, Apr 26, 2013 at 9:31 AM, Geoffrey Myers
> <lists at serioustechnology.com> wrote:
>> I have a script that is reading cookie names and attempting to locate them in an array. First I tried indexOf() and it finds one, but none of the others. So I tried two for loops, one for the cookies and the other for the array. Again finds one. I even set it up to display the two values via alert() before the comparison test. I see this: 'comparing <linksFTP> to <linksFTP>'
>> 
>> Clearly the same but the test fails. Anyone?  This is driving me nuts. I'm using the == operator, not the === operator. What am missing?
>> 
>> --
>> From my iPhone
>> Geoffrey Myers
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
> 
> 
> 
> -- 
> James Sumners
> http://james.roomfullofmirrors.com/
> 
> "All governments suffer a recurring problem: Power attracts
> pathological personalities. It is not that power corrupts but that it
> is magnetic to the corruptible. Such people have a tendency to become
> drunk on violence, a condition to which they are quickly addicted."
> 
> Missionaria Protectiva, Text QIV (decto)
> CH:D 59
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo



More information about the Ale mailing list