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...
Original Question  Does any one have or know of a binding for knockout that would allow behavior similar to a for loop? I can make a foreach do what I want but it would be nice if I didn't have to do it that way.  Edit 2  I am trying to create ta...
I have an observable array with items bound to an ul. I need to calculate the width of the entire set of li items once the items have been added so I can set the width of the ul element to the total width of the child li elements.  How can I go about...
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...
I am writing a plugin using jQuery and knockout. I have two radio buttons. I am using knockout data-bind to check and uncheck the radio button. The problem is that when I am trying to uncheck the radio button on click of another button using jQuery,...
I'm trying to map JSON data using the knockout.mapping plugin, however the heirarcical JSON data fails to populate my object properties correctly, the top level loads fine but not the child 'RootTarget'  data?  What am I doing wrong?  Kno...
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()...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.