What is URL Routing? URL Routing means that you when click on a link, instead of being routed to another page, you stay on the same page and the content changes. When this happens, usually a “hash” will be appended to your current URL so that the user can go directly to the content they… Read more »

When first learning knockout, it took me a little while to figure out how to get data from the server and do it in a clean way. After experimenting with a few different ways of doing it, and watching Rob Conery’s excellent screencast on tekpub, I thought I would share the way I like the… Read more »

I recently had a project that made me temporarily shift from my more native c#/asp.net environment and use php on the backend instead. As by more and more asp.net developers these days I have become accustomed to doing just about everything in the front end with the JavaScript library Knockout. Of course knockout.js is completely… Read more »

The knockout Mapping Plugin is a great way to save time, and write less code when creating view models in knockout. When I first started using knockout I was hesitant to use the mapping plugin because I was afraid that I would lose some control over the customization of my view model. But after staring… Read more »

Knockout.js released by Steve Sanderson in summer of 2010. Although Steve works for Microsoft the decision to release knockout.js as an open source project was right. It is a standalone javascript library relying on MVVM and Observable patterns. The key principles of knockout.js are: * a clear separation between domain data, view components and data… Read more »

The following shows how to use the knockout options binding when loading the option values from the server with AJAX. In the following HTML the select box requires 4 bindings. The options binding specifies which variable in the Knockout ViewModel is used to generate the options. The optionsText specifies the name of element in the… Read more »