[ale] JavaScript question

Pete Hardie pete.hardie at gmail.com
Fri Apr 26 09:54:05 EDT 2013


Not up on my JS, but are you using an equality vs identity comparison?
same text but different pointer sort of thing?

Pete Hardie
--------
Better Living Through Bitmaps


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20130426/35b197f5/attachment.html>


More information about the Ale mailing list