Knockout + JavaScript + Validation useful custom bindings and functions

Hi,

Just to post some helpful bindings and JavaScript functions that I used multiple times throughout my projects. I have been using this in creating forms using jQuery and Knockout with Ajax web services.

DatePicker

Update: be careful if you need to deal with different timezone as client timezone and server timezone might not be the same. To avoid this issue altogether you can use knockout-jqueryui extension so that the value is written as string. This way we only need to deal with server timezone.


Radio Yes/No buttons


Synchronous ajax call (normally used to populate dropdown values)


Get QueryString



IE9 Filter problem


That's all for now. Hope this helps.

Andreas