Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
Quitch's user avatar
  • 75
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 ...
John S.'s user avatar
  • 171
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, ...
Olumide's user avatar
  • 141
2 votes
0 answers
151 views

Lazy Loading Values to Multiple Arrays

...
ascendantofrain's user avatar
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 ...
diego's user avatar
  • 121
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: <...
joc's user avatar
  • 235
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://...
Sean Thorburn's user avatar
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 ...
Andre Gallo's user avatar
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: ...
Jesper Lund Stocholm's user avatar
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? ...
Ron's user avatar
  • 43
1 vote
1 answer
124 views

Customer ViewModel with optional JSON initialization parameter

I have a situation where I have a ViewModel: ...
Dawood Awan's user avatar
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?...
Saeed's user avatar
  • 121
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 ...
ascendantofrain's user avatar
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 ...
ATWP's user avatar
  • 23
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 / ...
Kyle Hale's user avatar
  • 830

15 30 50 per page