Javascript

Knockout

Command Pattern with jQuery.Deferred & Knockout

Working in WPF using the MVVM pattern it is almost impossible to get away from commands and the ICommand interface, so when I started writing view models in knockout that had to perform actions I started to miss the commands quite quickly

Read More
Knockout

Placeholders using Knockout JS

Whenever you have an asynchronous call to the server from a web page it is good practice to have some form of loading indicator to let the user know that something is happening in the background

Read More
Knockout

Binding to invalid property names with $data in KnockoutJS

A quick tip when working with KnockoutJS: if you are binding a value to a property with a valid name then it is very simple to get at the value in your HTML...

Read More
Unit Testing

My (first attempt) JavaScript Mocking Framework

I've been getting much more involved in JavaScript development over the last few months and I have been playing around with QUnit as a unit testing framework....

Read More