Trailing commas and unfeasibly high line numbers July 8th, 2008

Bursting IE’s Javascript parser, or: generating bizarre error messages through subprocess apoptosis

Compiling languages down to Javascript May 12th, 2008

A hundred years from now, all code will look both similar and different.

Emacs as an anagram of “ECMA-S” May 11th, 2008

Your editor will become your browser will become your IDE. The process has already begun. Please wait.

How to see Last.fm from the other side of the room with LastJS March 2nd, 2008

Proof of concept, more than anything else: how to hook up to a recalcitrant Flash-based interface.

Pretending that Javascript is XSL, part 3: hCard to vCard December 20th, 2007

In previous posts (part 1, part 2) I established the possibility that there were advantages to making Javascript more functional, to bring it in line with CSS and XSL. I didn’t say what these were, particularly, but I then provided a few bits and pieces on top of jQuery to make Javascript just that: functional [...]

Pretending that Javascript is XSL, part 2: jQuery++ December 19th, 2007

If you’re here, then you probably came from here, and you want to make Javascript more functional. If you didn’t come from there—and this is getting a bit like a Choose-Your-Own-Adventure book, isn’t it?—then you might want to go there first, to see if you want to be here.
So: functional Javascript. Not just functional, but [...]

Pretending that Javascript is XSL, part 1: XSL, CSS and JS side by side December 18th, 2007

There are three main technologies that your browser employs to present HTML for you: XSL, CSS and Javascript. The first two of these are functional: that is, they turn your incoming (X)HTML documents into a set of functions, or behaviours if you like. Because CSS isn’t generally considered a language, let alone a functional one, [...]

Insert any Javascript bookmarklet December 10th, 2007

As the natural extension of Gareth Rushgrove’s bookmarklets for inserting the Dojo or YUI Javascript toolkits mentioned by Simon, here’s a tidying-up of a bookmarklet I’ve been using to bring in any Javascript using user input via a popup prompt:
Insert-JS bookmarklet

javascript:void(function(){
  var%20s=document.createElement("script");
  s.src=prompt("Full%20URL:");
  document.getElementsByTagName("head")[0].appendChild(s);
}())

I was originally appending it to the body as an invisible div, making use of [...]

Programming shouldn’t be degrading September 19th, 2007

Steve compares “graceful degradation” with “progressive enhancement.” Mostly he takes issue (rightly) with the rhetorical spin that the former applies to the idea of building a website. But I think you can compare them with each other as if they were two different types of crowbar instead: two ways of prising open the task in [...]

Image manipulation in the browser June 6th, 2007

While Picnik gradually converts the functionality of desktop image processing software into online tools (in the hope, presumably, of being bought up by one of the big players), Flash has found other, more piecemeal uses in augmenting the image and font functionality of your average browser. Hot on the heels of sIFR, which replaces text [...]