Blog


State of ECMAScript 4 (Dec ’07)

I’ve just completed my first survey of the current ECMAScript 4 implementations. I went through and attempted to compile as many bugs and features as possible, as stated by the ECMAScript 4 specification and double-check them against all the actively-maintained implementations. You can view a nice overview below. I think it’s fascinating to note that […]

Comment · Posted: December 17th, 2007


Instant JavaScript Apps

This past summer I swung by Y Combinator a couple times to scope out the new startups. (Fun fact! I was in Y Combinator during the Summer of 2006.) Out of all the startups there one really caught my eye: AppJet. They were setting out to build a quick-and-easy way to construct web applications using, […]

Comment · Posted: December 13th, 2007


I Learned Some Things About jQuery Today

Update: Olmo and I have been in contact recently, off public-facing sites, but here’s a public response that he made, and here’s a private one that I gave to him: Thank you for doing this. I want to, personally, apologize for everything that I did during the past couple days. It was out of line […]

Comment · Posted: December 12th, 2007


Bad Background Browser

The other day I caught this humorous image posted to Reddit, showing a Firefox update dialog popping up over a weather satellite image, live on TV: I was amused, so I posted it to one of Mozilla’s internal mailing lists – which started a renewed flurry of discussion surrounding the update manager. To start with, […]

Comment · Posted: December 11th, 2007


Re-Securing JSON

Back in March/April of this year there was a lot of hub-bub concerning the discovery of a JSON data leak, or sorts. What it boils down to is “JavaScript is incredibly flexible, even to the degree of letting you redefine basic objects, like Array or Object itself.” For example, here’s an exploit that works in […]

Comment · Posted: December 10th, 2007


Simple “Class” Instantiation

This is another trick that I’ve been using for a while to simplify Class-style instantiation of a function in JavaScript. Take a look at the following code, for example: Pretty straight-forward. Now let’s look at a couple quirks of Class-style instantiation that can cause issues, but can be easily remedied. First is an issue that […]

Comment · Posted: December 6th, 2007


JavaScript Array Remove

I have another handy method, that I recently developed, that allows you to simply remove an item – or a group of items – from an array. Like with my implementation of JavaScript Method Overloading I wanted something that was concise, elegant, speedy, and highly effective. So here’s the method that I came up with: […]

Comment · Posted: December 3rd, 2007


Why Firefox 2.0.0.11 Happened So Fast

Prologue: drawImage with broken PNG draws random memory Prior to the release of Firefox 2.0.0.10 a minor security issue was discovered in the drawImage method in the Canvas API. This particular method takes an image (in the form of an IMG DOM Element), extracts the image data, and puts it into the Canvas at the […]

Comment · Posted: December 1st, 2007


Next entries » · « Previous entries

Secrets of the JavaScript Ninja

Secrets of the JS Ninja

Secret techniques of top JavaScript programmers. Published by Manning.

John Resig Twitter Updates

@jeresig / Mastodon

Infrequent, short, updates and links.