Category Archives: Code

Flow 1.1

And just like that, a new update. Several small fixes worthy of a point upgrade:

Switched QuerySelector engine to Sizzle 1.0
querySelector/querySelectorAll can now be run on any element (via Selectors API)
IE 8 does not like setAttribute on type elements. Reverting to DOM 1 method.
Fixed minor assertion bug in Require.js

Flow 1.0.8

A tiny update that fixes IE 8 browser identification. It previously incorrectly identified IE 8 as IE 5.

Fixed positioning in Mobile Safari

11/16/2010: It’s been a long time since my fixed positioning script was released. I’m very pleased that it was the precursor for much more robust solutions to this problem. Please continue on if you’d like to read through the history of this hack. If you’re looking for a real-world solution please take a look at [...]

Breaking out of a forEach loop

An email going around the client-side mailing list at Schematic casually mentioned forEach loops. The sender liked them, but tended to avoid them because there was no way to break out of one.
Naturally, this sent me on the hunt to see if it was at all possible. A furious Google search led me to a [...]

Flow 1.0.2

I just pushed release 1.0.2 out the door.
Bug fix:
Flow will no longer choke with SWFObject.
Early this morning I received a report about Flow not playing nicely with SWFObject. After debugging, it turned out it was a case of doing too much.
SWFObject correctly cleans up after itself in IE by removing its generated code on unload. [...]

Introducing Flow

This is a post I’ve been wanting to write for months now. For the past several months I’ve been spending my free time toiling over a personal project of mine.
It started with Dean Edwards and his release of the Base2 library. It scratched an itch that I’ve had for years: I wanted the ability to [...]

Remote 1.1

I’ve just updated my Remote script to version 1.1
New in this version:

Faster, safer implementation of callback functions
Now supports uploading files via Ajax(ish)

Check out the sample code for more.

Remote: A cross-browser XHR/JSON function.

I grew tired of re-scripting my remote calls, so I’ve built a global function that can handle whatever I throw at it.
Remote is a global, lightweight XHR/JSON function, designed to handle cross-browser remote scripting.