So far, the most popular posts I’ve written (if you discount the rant about syncing my mobile phone on Windows) are the two about getting dynamically loaded JavaScript code to execute in the global context.
Category Archives: Javascript
Unit Testing with JavaScript and TextMate
If you write lots of JavaScript — and boy, do I write a bit of JavaScript — you might be interested in a nice little unit testing library I’ve put together. There are several other JavaScript unit testing libraries out there, but they all assume you want to execute your scripts in a browser. For [...]
Building Mozilla SpiderMonkey for Mac OS X
As part of my development of a JavaScript implementation of Apple’s Cocoa Bindings technology, I’ve been keen to implement a unit testing framework. There are several JavaScript unit testing libraries that run in the browser, but I’m most interested in something that runs from the command line. That way it can be part of [...]
Microsoft Still Doesn’t Get Standards
As part of my job I use the Microsoft JavaScript language reference all day long (the product I work on embeds the Microsoft Script engine). Up until today, I’ve been able to access this site via FireFox, and although it didn’t work as good as the MSIE version, it worked OK.
Today, when I went to [...]
Element By Path
For a project I’m working on for my employer, I need to be able to back-track my way up the DOM and store a path to a particular element. Because the resulting path will be used in either JavaScript or VBScript (a really terrible language), I can’t really rely on just building a sequence of [...]