Pages about JavaScript – page 2 of 2

JavaScript Csv file generator, part 2 of 3

Here I implement the basics of a simple CSV file generation framework in JavaScript.

JavaScript Csv file generator, part 1 of 3

To implement a CSV file generation framework in JavaScript, I start with imagining how I would like to use the framework. From there, I create unit tests to get me started.

JavaScript unit test framework, part 4 of 4

In the last part of this series, I add a pluggable output system to my JavaScript unit test framework, so that test results can be displayed nicely, or sent to a server for logging.

JavaScript unit test framework, part 3 of 4

Any mature unit test framework contains helper methods for validating or asserting requirements. In this part, I start adding some object-oriented test functions.

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().