Skip to main content

Questions tagged [knockout.js]

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

7 votes
1 answer
106 views

I'm working with Knockout3 in a Chromium 40 environment (ES5). I have a series of preset difficulty options, and a player has an option to switch to custom difficulty and tweak the options. When they ...
Quitch's user avatar
  • 75
4 votes
1 answer
75 views

Code Review : Could promises be 'chained'? I am developing a simple Quote tool for the business-owner to fill in a form (item number, item name, price, etc) and send to the potential customer. This ...
John S.'s user avatar
  • 171
4 votes
0 answers
642 views

The full question is... "Please, how can this code base or project (for client-side routing using Knockout and HTML5 History API) be further enhanced as regards security, production-readiness, ES6, ...
Olumide's user avatar
  • 141
2 votes
0 answers
160 views

...
ascendantofrain's user avatar
2 votes
0 answers
410 views

I just started learning JavaScript (and the Knockout framework), and decided to try and make an initiative tracker for Dungeons and Dragons 5th Edition. It is designed to take an arbitrary number of ...
diego's user avatar
  • 121
1 vote
1 answer
79 views

I have an array of number objects, which can be selected only if the orderable quantity is greater than 0. I have a select all checkbox that is checked or unchecked accordingly with this function: <...
joc's user avatar
  • 235
2 votes
1 answer
106 views

I have written a function that builds an array of paging options for rendering on the view. I have modelled it after DataTables for jQuery, a live example with lots of data is available here: http://...
Sean Thorburn's user avatar
1 vote
1 answer
1k views

I am trying out for the first time knockoutjs and babeljs and have a question on how to do computed observables properly. Both fullName and ...
Andre Gallo's user avatar
0 votes
1 answer
1k views

I am using KnockoutJS to bind some values. I have a date value TimeByDay that I bind like this: ...
Jesper Lund Stocholm's user avatar
4 votes
1 answer
397 views

This is really the first full app I've written in JavaScript minus CSS styling which I plan on adding later. Are there any ways it can be improved? Any ways I can make it cleaner or easier to read? ...
Ron's user avatar
  • 43
1 vote
1 answer
143 views

I have a situation where I have a ViewModel: ...
Dawood Awan's user avatar
0 votes
1 answer
1k views

I have four radio buttons and I want to display relevant contents for each of them if they are clicked. I am using knockout.js for data binding. Is there a better way to write the if statement block?...
Saeed's user avatar
  • 121
4 votes
1 answer
154 views

I have a small UI that involves adding roles and modules to a user database array. The interface works as is, no problem at all, but it seems to have a bit of 'duplicate' code that I was hoping I ...
ascendantofrain's user avatar
2 votes
0 answers
804 views

I am using this for in loop to loop through a JSON object and to assign the JSON object's value to my own object in a KnockoutJS setup. The JSON object looks like ...
ATWP's user avatar
  • 23
12 votes
1 answer
1k views

I resolved to do the whole thing with just vanilla Javascript as a challenge, but man, Knockout's binding and state management is just too easy. A tiny bit of callback hell to get all the flashing / ...
Kyle Hale's user avatar
  • 840

15 30 50 per page