idle hamster
Optimizing Iterating through an Array
25th September 2005 | 2 Comments
I love using arrays, they're just so handy. I recently ran into the problem of finding out if a value already existed in an array. I thought this would be a great time to compare the speed of different loops. I decided to test a For Loop, a While Loop and a different than usual While Loop, where I increment the array’s position in the loop’s condition statement.
Stop Event Bubbling on an Inline Function
2nd September 2005 | 0 Comments
Event bubbling is often overlooked and misunderstood. Sometimes you don't want your event to bubble. Luckly there are methods for disabling it, but just like everything cool online IE handles things differently than other browsers. It gets tricker when you use inline event functions.