Pages about JavaScript – page 2 of 2

JavaScript unit test framework, part 2 of 4

My unit test framework in JavaScript is starting to shape up when I add support for asynchronous code, like timers, event handlers and CSS transitions.

JavaScript unit test framework, part 1 of 4

For test-driven development (TDD), having a working unit test framework is very useful. Here I start working on my own framework in JavaScript.

How to load jQuery programatically

Loading JavaScript dynamically, and knowing then the script is done loading, can be difficult. There are working solutions available, but it is also possible to write some code to solve the problem.

IMG problems in Firefox

There is a security setting in Firefox that can prevent a web page from dynamically setting the SRC attribute of an IMG element. Falling back to using the innerHTML property does work, but it feels a lot like using eval().