Understanding Custom Binding Custom bindings in Knockout JS are one of those essential concepts you need to understand if you want to go beyond the limits of what Knockout provides out of the box. I’ve used them in projects to implement animated transitions or integrate third party plugins. At the end of this post you will find a few demos and examples of how I’ve used bindings... …
Problem When I was recently trying to deserialize some json to a type that contained an interface, I encountered this error: Could not create an instance of type Foo. Type is an interface or abstract class and cannot be instantiated. Path ‘Bar’ I sat there for a few seconds scratching my head, when it dawned on me that of course it could not deserialize... …
Usually when you build an eCommerce site or a site with a members area you need to set up some secure pages. This means you need to handle the switching between secure and non secure pages. Here is a quick and easy way of doing this. First thing we need to do is setup some App Settings to our Config file. The two settings we will be adding are: SSL.Enabled... …
I work on a lot of websites that are heavily designed, this means there are a lot of images, CSS and Javscript files. Once you start including all the Javascript plugins with their associated CSS files the page can have over 10 or 15 http requests and that does not include any of the other assets... …
Tabs are a great way of displaying content when you have limited space on the screen to play with. I built a little jQuery tab plugin a while ago and it has come in handy a few times. View: Demo Source Code: jquery.bxTabs... …
Paging is one of those things we take for granted. We see it everywhere, at the bottom of our google results, forum pages and even on my blog. Personally I’m not satisfied with having a list of 101 page numbers at the bottom of my page. It’s not what we expect from a site these days and it’s simply ugly... …