Blog


JavaScript in Internet Explorer 8

Our day has finally come. CSS coders got some love with Internet Explorer 7 - us JavaScript folk got absolutely nothing. In fact, at last count, all we got were a couple new bugs to deal with (file:// requests not working via XMLHttpRequest and <object>.getElementsByTagName("*") always returning no elements).

Internet Explorer 8 is our release.

The first [...]

56 Comments · Posted: March 6th, 2008 · Tags: ie, browsers, html5, dom, javascript


Unbreaking the Web

I'm really excited about Microsoft's switch today to make standards mode rendering the default rendering style, going forward - even at the cost of "breaking the web." I think this is going to have serious positive ramifications for the whole web ecosystem, which is just fantastic. I can't imagine this decision coming lightly and I [...]

19 Comments · Posted: March 4th, 2008 · Tags: ie, microsoft, browsers


Bad Object Detection

A common technique for writing cross-browser JavaScript code is to detect the features that you wish to use before you actually use them. Good object detection is done on a case-by-case basis, analyzing each feature as it's encountered.

Some common examples of object detection:
[js]// Is XPath querying available?
if ( document.evaluate ) {}
// Does the element have [...]

21 Comments · Posted: February 29th, 2008 · Tags: javascript, programming, browsers


JavaScript Performance Stack

Something that's frequently befuddled is the differentiation between where JavaScript is executing and where performance hits are taking place. The difficulty is related to the fact that many aspects of a browser engine are reliant upon many others causing their performance issues to be constantly intertwined. To attempt to explain this particular inter-relationship I've created [...]

10 Comments · Posted: February 28th, 2008 · Tags: javascript, browsers, performance


ES4 Implementation Update

The development of ECMAScript 4 is moving into an important phase: the implementors are making good on their word and are starting to implement the ECMAScript 4 proposals. Many of the features have been well thought out by this point and the implementors are working hard to integrate the necessary changes into their engines.

A couple [...]

13 Comments · Posted: February 27th, 2008 · Tags: javascript, ecmascript


Feb. Boston JavaScript Recap

Tonight was the second meetup of the Boston JavaScript group and it was a huge success. 18 people attended, in all, and there was a lot of discussion about all forms of JavaScript.

There were, at least, 3 people who actively use JavaScript on the server-side including Jason Wadsworth the creator of Crosscheck. We got to [...]

3 Comments · Posted: February 26th, 2008 · Tags: ecmscript, boston, javascript, meetup


State of the Secrets

I've alluded to it a couple times now but it's probably important to state it definitively: I'm writing a new JavaScript book, to be published by Manning Publishing, called Secrets of the JavaScript Ninja. I published the rough Table of Contents previously and the contents of the book will be staying virtually the same (with [...]

19 Comments · Posted: February 25th, 2008 · Tags: javascript, book, secrets


How JavaScript Timers Work

At a fundamental level it's important to understand how JavaScript timers work. Often times they behave unintuitively because of the single thread which they are in. Let's start by examining the three functions to which we have access that can construct and manipulate timers.

var id = setTimeout(fn, delay); - Initiates a single timer which will [...]

23 Comments · Posted: February 24th, 2008 · Tags: book, javascript, secrets


Next entries » · « Previous entries

Current Projects

jQuery JavaScript Library

jQuery

Comprehensive DOM, Event, Animation, and Ajax JavaScript Library.

Recent Projects

Pro JavaScript Techniques

JavaScript Book

The best techniques for professional JavaScript. Published by Apress.


Hosting provided by the cool dudes at Engine Yard.