I am using Knockout.js as a MVVM library to bind my data to some pages. I'm currently building a library to make REST calls to a web service. My RESTful web service returns a simple structure:  {     id : 1,     details: {         name: "John...
I really like how Eric Barnard's knockout validation lib integrates with observables, allows grouping, & offers custom validator pluggability (including on-the-fly validators). There are a couple of places where it could be more UX flexible/f...
I need to clear the selection from a <select> element. I've already read such posts as Knockoutjs clear selected value in combobox and have tried the accepted answers, but those solutions don't seem to be working (don't know if some...
I try to use with knockout 2.2 custom binding new jquery 1.9 and jquery ui 1.9.2.  Code is from here: integrating jquery ui dialog with knockoutjs With updated libraries: http://jsfiddle.net/SnPdE/323/  ko.bindingHandlers.dialog = {         init: fun...
Does anyone have idea, if it's possible to detect whenever a change occur inside observableArray while using ko mapping, this mean without having to create the model by hand?  self.items = ko.observableArray([]) var data = ko.mapping.fromJS(resul...
I have this script that returns a list of all users. I would like to have:   set the viewModel's totalUsers and page properties based on data returned. Iterate through the list of users and push the last user object into the observableArry push()...
I'm new to Knockout and I'm building an app that's effectively a large-scale calculator. So far I have two instances of knockout running on one page. One instance is working perfectly fine, however the other one is entirely broken and jus...
I'm building a very number-heavy app in KnockoutJS and I want to have the ability to format large numbers so that they're comma-seperated and nice on the eye (xxx,xxx).  As you'll see from the fiddle below, I do have this working by wrapp...
This seems to be a common approach to sanitizing/validating/formatting data with knockout when binding to an input field, it creates a reusable custom binding that uses a computed observable. It basically extends the default value binding to include...
This code displays the non-breaking space escape sequence instead of the actual spaces:  <html>   <head>     <script src="../js/jquery.min.js"></script>     <script src="../js/knockout-2.2.1.js"></scri...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.