KnockoutJS is a JavaScript library used for data and event binding on web pages, using a MVVM pattern.

learn more… | top users | synonyms

2
votes
0answers
35 views

Am I correctly using MVC in my binding?

I have method in my Controller(GetAllPatients/EnrollmentQueue) which returns correct data(its array of ...
3
votes
3answers
48 views

Planning Poker Using Knockout

I am trying to build something similar to planning poker and am very new to Knockout and was wondering if anyone could help me improve on my very crude start? This is what I have so far: HTML ...
1
vote
0answers
50 views

Is this a correct knockout ViewModel setup?

This is my first time using knockout. I'm reading/writing a JSON file with a fair bit of nested data. I had no problem creating the ViewModel to just write to the file, but now that I'm reading the ...
5
votes
1answer
114 views

Prototype inheritance with Knockout observables

I'm trying to write a JavaScript library to allow inheritance with knockout. The fundamental problem when implementing inheritance in Knockout is that each Knockout observable is its own instance, ...
2
votes
1answer
117 views

Revert knockout model original state back on update cancel?

I am using knockout in my project. I have some models like EmployeeModel, ServiceModel etc which user can update. On UI I give ...
10
votes
3answers
941 views

Simple to-do list as a single page application

I've been doing a simple implementation of a to-do list to learn how to use Knockout.js. I would like a general review of what I've done so far (not much). It's my first application in JavaScript and ...
4
votes
1answer
412 views

Knockout custom binding - have I stored the observable correctly?

I've written a custom binding for Knockoutjs which renders <select> elements with <optgroup> children. When run, ...
4
votes
1answer
158 views

knockout binding handler for custom components

I am using a combination of knockoutJS and jQuery. I have a number of jQuery plugins which perform particular re-usable functions, such as a numeric spinbox. I have written a binding handler to ...
11
votes
2answers
654 views

Knockout.js binding 2D table with rowspan

The app I'm working on should allows it's users to create tables. I have a view in which users are able to create a table. They should be able to define here the table's columns. The columns that the ...
1
vote
0answers
70 views

How should my objects be structured for proper MVVM in Knockout?

Question also asked @ Stackoverflow I'm working with knockout and am trying to stay true the MVVM structure and trying to make the objects have that dependency on each other. Here is what I ...
2
votes
1answer
51 views

Need suggestions to improve the code for an open source web based drafting application

My application. The repository and the file that needs review. Here is the source code ...
3
votes
1answer
1k views

Two Knockout computed dependent on each other

I have 3 fields: Net Price (ex. tax) tax amount Total price (price ex. vat + tax amount) The NetPrice and the Total are ...
4
votes
2answers
738 views

How to enhance the readability of JavaScript part?

There is no doubt that Knockout.js is a very useful tool, which will save you from a lot of JavaScript (jQuery) binding hassle, which will reduce your team's bug ratio concerning this part. But ...