All Questions
Tagged with knockout.js javascript
34 questions
7
votes
1
answer
97
views
Monitoring a view model for changes to display a save button
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 ...
4
votes
1
answer
67
views
Performing asynchronous fetch-es that rely on each's response
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 ...
4
votes
0
answers
631
views
Client-side routing using Knockout and HTML5 History API for a single-page web application
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, ...
2
votes
0
answers
151
views
2
votes
0
answers
401
views
Dungeons and Dragons Initiative Tracker
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 ...
1
vote
1
answer
70
views
Simplify 2 filters on the same array
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:
<...
2
votes
1
answer
96
views
Optimize KnockoutJs Pagination Computed Function
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://...
1
vote
1
answer
1k
views
Knockout computed observables in ES6
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 ...
0
votes
1
answer
1k
views
Adding 1 to Date while binding using KnockoutJS
I am using KnockoutJS to bind some values. I have a date value TimeByDay that I bind like this:
...
4
votes
1
answer
385
views
Simple Tic-Tac-Toe App Using Knockout.JS
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?
...
1
vote
1
answer
124
views
Customer ViewModel with optional JSON initialization parameter
I have a situation where I have a ViewModel:
...
0
votes
1
answer
1k
views
Display relevant contents if radio button is clicked using knockout.js
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?...
4
votes
1
answer
141
views
UI for adding roles and modules to a user list
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 ...
2
votes
0
answers
793
views
Assigning JSON object values to objects in a KnockoutJS setup
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 ...
12
votes
1
answer
1k
views
Simon Says in Javascript (with Knockout) - Playable Code Snippet
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 / ...