Multiple ViewModel with Knockout.js
Great article in having multiple views within one page http://blog.yojimbocorp.com/2012/02/14/multiple-view-models-with-knockout/
Javascript code
Great article in having multiple views within one page http://blog.yojimbocorp.com/2012/02/14/multiple-view-models-with-knockout/
To me jQuery is javascript library that helps the developer in interacting with HTML element/DOM but what library that can be used to help in manipulating the Javascript object?I found “Underscore.js” which can be found in…
It’s pretty clean to set, bind and use enum in your javascript //Enum declaration var AvailableActions = { “Action”: 1, “Priority”: 2, “Status”: 3 }; //Bind function Load() { for (var action in AvailableActions) { jQuery(“#MandatoryActionList”).append(“<option…
This is the javascript coding standard that my colleague found on Github, but seriously this is a good standard and I recommend it to any developer https://github.com/rwldrn/idiomatic.js/
By using this library, it allows you to do the paging through the HTML DOM from the client side (Note: this is not about the ideal way or not the ideal way, I know the ideal…
Knockout allows you to bind the HTML to your javascript object. It simplifies DOM manipulation and allow the portability of the javascript object and action. It is pretty much the same concept as MVVM in silverlight.…
Initially, I always pass individual object properties through JSON and form the model in the controller as I wasn’t sure how to pass/form a model from Javascript to controller Controller Code Snippet [AllowAnonymous] public ActionResult JsonRegister(string…
I’ve been learning Knockout recently and I found that sometimes it is hard to find out how your View Model is being formed especially when you create the view from Model in MVC To inspect your…