<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Not up on my JS, but are you using an equality vs identity comparison? same text but different pointer sort of thing?<br>
</div></div><div class="gmail_extra"><br clear="all"><div>Pete Hardie<br>--------<br>Better Living Through Bitmaps</div>
<br><br><div class="gmail_quote">On Fri, Apr 26, 2013 at 9:31 AM, Geoffrey Myers <span dir="ltr"><<a href="mailto:lists@serioustechnology.com" target="_blank">lists@serioustechnology.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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>'<br>
<br>
Clearly the same but the test fails. Anyone? This is driving me nuts. I'm using the == operator, not the === operator. What am missing?<br>
<br>
--<br>