Re: Easy JavaScript question

2009-04-28 Thread Michael Grant
You're very welcome. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-

Re: Easy JavaScript question

2009-04-28 Thread CFTodd
If the user is typing something other than what is expected to be found in the array then they are being naughty to begin with. Thanks for the new comparison code. That does the trick. Michael Grant wrote: > Best I can tell from a quick glance is that you are comparing the wrong > things. I th

Re: Easy JavaScript question

2009-04-28 Thread Michael Grant
Best I can tell from a quick glance is that you are comparing the wrong things. I think what you want to do is this: konami.indexOf( kkeys.toString() ) However the logic looks off to me. You just keep adding to the array without ever clearing it, so the array is going to get massive if the user

Easy JavaScript question

2009-04-28 Thread CFTodd
My javascript is WAY rusty. Coudl someone take a quick look at this and tell me what bonehead thing I am doing wrong? This works in FF, but not IE. if(window.addEventListener) { alert("ff detected"); var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65"; window.addEventL