Category Archives: jQuery

Reducing map: jQuery vs jQuery vs JavaScript

The map/reduce (and their friends filter, each, flatten etc) paradigm provides a general way to manipulate lists and streams. This is particularly well suited to web work – where we spend most of our days playing with lists of DOM elements. Recent versions of JavaScript give us the tools to do this work natively but […]

Long jQuery fades eats CPU

While doing a little refreshing around these parts I noticed that the “fading bubbles” that I have were chewing up a ridiculous amount of CPU when the page loaded. I had 15 or so bubbles rigged to fade in verrrrrry slowly – over 20 seconds – after window.onload fired. I thought I must have had […]

Two teams, one cup

It’s been a grueling battle, but unsurprisingly jQuery Novice to Ninja has made the World Cup Final. Tonight’s game is not going to be easy – up against the formidable Kevin Yank/Cameron Adams combination who, as always, are in excellent form.

Book review: “jQuery: Novice to Ninja”

I just finished reading “jQuery: Novice to Ninja” by Earle Castledine & Craig Sharkie, and I have to say – it was as delightful as it was disturbing: without a doubt it is this year’s must-read sleeper hit. The authors excel in propelling the reader on an epic personal journey that immerses them in the […]

DIY Old-school racing game: Part 1

Remember Pole Position? Outrun? PowerDrift? Lotus Esprit Turbo Challenge? Yeah you do! Remember jQuery 1.4? Most likely! Let’s combine those two memories into one DIY project and make our very own old-school racing game with jQuery 1.4, shall we? To prove it could work, here’s an early proof-of-concept to hopefully pique your interest. It’ll take […]

.index() becomes cool in jQuery 1.4

With jQuery 1.4 just around the corner, it’s time to start looking at what’s new. One nice change is the updated functionality of the index method. Previously, well, it was a pain in the bum to get the index of an element in a selection – and required a pretty convoluted syntax. Now it’s super […]

The road to jQuery 1.4: at a glance

Ok, here’s something you’ll want to refer to daily… the current status of the jQuery 1.4 “TODO list”, or as I like to call it, “Report 37”. Usually when people on the jQuery dev lists ask “When will jQuery 1.4 be ready?” they are met with a resigned (resigned not resiged) answer: “When it’s ready”. […]

Adding “1UP notification” with jQuery

Now, as many of you know, I’m a big fan of taking interactions from retro gaming and attempting to squish them onto the page as standard UI elements. If I had my way, all sites would look like BMX Simulator from the C64. With that in mind… today something great happened. A win for old-school-gaming-as-ui-elements […]

Critical jQuery Info: How to pronounce “live”

After weeks of debate an answer has emerged. Live rhymes with “jive”? Or live rhymes with “give”?… that was the discussion point that was starting to turn ugly… In the live/jive corner: the “live” event is always on – like a live broadcast. In the live/give corner: the corresponding remove event is called “die”, so […]