[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] JavaScript question
- Subject: [ale] JavaScript question
- From: pete.hardie at gmail.com (Pete Hardie)
- Date: Fri, 26 Apr 2013 09:54:05 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
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>