<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>On Apr 26, 2013, at 12:11 PM, John Temple <<a href="mailto:cjtemple@gmail.com">cjtemple@gmail.com</a>> wrote:</div><div><br></div><blockquote type="cite"><div><div dir="ltr">indexOf returns only the first occurrence so you would need to iterate through the entire array and save the found keys</div></div></blockquote><div><br></div>I am doing just that. <br><blockquote type="cite"><div><div dir="ltr"><div><br></div><div style=""><div>var values = Array("a","b","c","a","d","e","b","a","f");</div>
<div>var foundKeys = [];</div><div><br></div><div>for (i = 0; i< values.length; i++) {</div><div> if(values[i]=="a") {</div><div> foundKeys.push(i);</div><div> }</div><div>}</div><div>alert("Found Keys: "+foundKeys.toString());</div>
<div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 26, 2013 at 11:11 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"><div class="im">On Apr 26, 2013, at 10:16 AM, James Sumners <<a href="mailto:james.sumners@gmail.com">james.sumners@gmail.com</a>> wrote:<br>
<br>
> On Fri, Apr 26, 2013 at 9:59 AM, Geoffrey Myers<br>
> <<a href="mailto:lists@serioustechnology.com">lists@serioustechnology.com</a>> wrote:<br>
>> On Apr 26, 2013, at 9:51 AM, James Sumners <<a href="mailto:james.sumners@gmail.com">james.sumners@gmail.com</a>> wrote:<br>
>><br>
>>> A lot of information that would help us help you....<br>
>>><br>
>>> Are the cookies well formed? Are you sure none of them are terminating<br>
>>> the cookie parser early (i.e. have a colon in the value when they<br>
>>> shouldn't)?<br>
>><br>
>> 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.<br>
><br>
> That's my bad. I was thinking about reading cookies from the header --<br>
> <a href="http://stackoverflow.com/questions/2740746/read-an-invalid-cookie-with-java-jsp" target="_blank">http://stackoverflow.com/questions/2740746/read-an-invalid-cookie-with-java-jsp</a><br>
><br>
> A little bit of code showing how you are getting the respective values<br>
> to compare would be helpful.<br>
<br>
</div>Yeah, sending from my phone and can't post from work, so I can't do so. I'll see if I can later this evening.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
>>><br>
>>> You might try my cookie object and see if it works for you --<br>
>>> <a href="http://jrfom.com/2010/12/10/javascript-cookie-manager-object/" target="_blank">http://jrfom.com/2010/12/10/javascript-cookie-manager-object/</a><br>
>><br>
>> Thanks, I'll take a look at it.<br>
><br>
><br>
> --<br>
> James Sumners<br>
> <a href="http://james.roomfullofmirrors.com/" target="_blank">http://james.roomfullofmirrors.com/</a><br>
><br>
> "All governments suffer a recurring problem: Power attracts<br>
> pathological personalities. It is not that power corrupts but that it<br>
> is magnetic to the corruptible. Such people have a tendency to become<br>
> drunk on violence, a condition to which they are quickly addicted."<br>
><br>
> Missionaria Protectiva, Text QIV (decto)<br>
> CH:D 59<br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>John Temple<br><a href="mailto:cjtemple@gmail.com">cjtemple@gmail.com</a>
</div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Ale mailing list</span><br><span><a href="mailto:Ale@ale.org">Ale@ale.org</a></span><br><span><a href="http://mail.ale.org/mailman/listinfo/ale">http://mail.ale.org/mailman/listinfo/ale</a></span><br><span>See JOBS, ANNOUNCE and SCHOOLS lists at</span><br><span><a href="http://mail.ale.org/mailman/listinfo">http://mail.ale.org/mailman/listinfo</a></span><br></div></blockquote></body></html>