‘Loading’ Placeholders using Knockout JS
Update: this feature is now available as part of the ko.plus library available on GitHub and NuGet! Whenever you have an asynchronous call to the server from a web page it is good practice to have some...
View ArticleCommand Pattern with jQuery.Deferred & Knockout
Update: this feature is now available as part of the ko.plus library available on GitHub and NuGet! The command pattern is a design pattern that encapsulates all the information required to perform an...
View ArticlePublish & Subscribe Distributed Events in JavaScript
Having recently spent some time working in WPF withthe fantastic Composite Application Block (or Prism), I thought I would try bringing one of the more useful features over to JavaScript. Distributed...
View ArticleProxyApi: Automatic JavaScript Proxies for WebAPI and MVC
Taking Inspiration from SignalR One of my favourite features of SignalR is the the automatic generation of JavaScript proxies for hub methods. By adding a hub class in C#… //server public class...
View ArticleProxyApi: Now With Intellisense!
After announcing ProxyApi in my last post I had a few people suggest that it would be more useful if it included some kind of intellisense. So…now it does! Install the new ProxyApi.Intellisense NuGet...
View ArticleSingle Page Applications using Node & Knockout
This post is going to be a short walkthrough on how to use Node and KnockoutJS to create a simple single page application. What is a Single Page Application? …a web application or web site that fits on...
View ArticleFallback Images with Knockout
After a busy few weeks at work I’ve finally managed to spend some time on knockout development again, and today I found a nice solution to a problem with data-bound images. In my example I had a list...
View ArticleProxyApi & Anti-Forgery Tokens
Anti-Forgery Tokens? Good question. Anti-forgery tokens are a recommended way of preventing one of the OWASP Top Ten security vulnerabilities: Cross Site Request Forgery, or CSRF. CSRF works on the...
View Article