-
HTML5 Demo: Tracking Video Progress With Google Analytics
There’s a back story to this one. I once failed to get video progress tracking working with a Flash video player and Big Expensive Analytics Company™ code. It was a real pain in the ass. We missed the deadline, wasted about 8 hours and eventually just dropped the feature. A frustrating experience for all involved.…
-
HTML5 Notes: My First Time Using the Canvas Element
Quick verdict? It’s fun. The long verdict (albeit one not base on the work I did here?) The accessibility concerns are valid and will need to be addressed before we end up with a replay of Flash circa 2000. And no one wants that. Anyway, the example I did do for the demo is actually…
-
As If URL Shorteners Alone Weren’t Bad Enough, Now They’ve Mated With URL Hijacking Frames
The Digg Bar is the most obvious (and noxious) example, but the new trend of URL shorteners coupled with a URL hijacking frame is spreading alarmingly. More and more I’m seeing this odious technique. These things break bookmarks, wreck navigation cues from the URL and are generally sleazy and rude. And there’s how to beat…
-
JavaScript Perfromance Tip- Don’t Test Against obj.length. Test Against a Local Variable.
I saw it yesterday in some code I was debugging and I realized I’ve become hyper sensitive to this common pattern: var anchors = document.getElementsByTagName(‘a’); if (anchors.length > 0){ for (var i=0; i < anchors.length; i++) { addEvent( anchors[i], 'click', trackLinks ); }; }; Why am I sensitive to it? Well, what are some of…
-
JavaScript Library Showdown. Video of my CDIA Presentation is Live. Check It Out!
Thanks to Jason Duclos, my presentation from a couple of weeks ago is live. In it I compare standard JavaScript DOM methods to YUI, jQuery, Dojo and Prototype/Scriptaculous. JavaScript Library Showdown from rob larsen on Vimeo. Here’s the deck. Jason is the man for putting this together, by the way.