-
Earlier this week I had a piece of JavaScript that I wanted to like this: var index = someArray.indexOf(someObject); The problem there is that the indexOf method of the Array object was introduced in JavaScript 1.6, which isn't implemented in all browsers (actually, IE seems to be the real problem...
-
This post is part of a series called JavaScript Demystified . Answer quick. Do you know what date is being created here? var year = '2009', month = '09', day = '01'; var date = new Date( parseInt(year), parseInt(month), parseInt(day) ); At first glance, it wouldn't surprising...
-
As a brief inspection of your RSS reader will quickly tell you, it's Code Camp season. Not to be left out of this party, the developers in the Chicago and Milwaukee areas have a great option this year. The Chicago Code Camp , which happens on May 30th, is strategically located right between these...
-
This is a tip for those working with JavaScript (and possibly other types of files) that is freely available for download. For the n th time in the last few months I spent an unnecessary amount of time trying to find a problem in my code that wasn't really there. Windows keeps track of the files...
-
For a few weeks now, every time I try to logoff from my home banking website something bad happens. See screenshot below. (screenshot eaten by backup failure.) Firebug opens unexpectedly There's a frigging debugger; statement in the live production site The logoff process hangs until I press F8 in...
-
Let me be the first one to admit taking way too much time to give in and embrace JavaScript. This language is arguably one of the most widely deployed and most misunderstood at the same time. There must be an award somewhere for this amazing feat. I don't know what causes developers to avoid JavaScript...