Skip to main content

All Questions

Tagged with
1 vote
3 answers
153 views

How to write Sort and Reverse function in Knockout.js?

This is my code with KnockoutJS: var viewModel = function () { var self = this; self.items = ko.observableArray([ { name: "Item 1", value: 1 }, { name: "Item 2", value:...
parisadz's user avatar
0 votes
2 answers
122 views

How to display images and text using knockout?

I'm learning more about knockout.js. I want to add images to my text data, and display the correct one based on the image link provided in the array with it's matching data. I only want one set to ...
CodingSkeletons's user avatar
1 vote
1 answer
74 views

How to read Json data using Knockout?

I want to create a Typewriter Effect using knockout, but I cannot store the data inside my table in order to create said effect. I've done some research on for a few weeks and I don't have the ...
CodingSkeletons's user avatar
0 votes
1 answer
140 views

Access Symbol(_latestValue) of an Observable Array

I want to get the value from a observable array myViewModel[index]["Symbol(_latestValue)"] With "...myViewModel[index]..." I've access of the object. (picture) I need the value ...
MarcOSch's user avatar
1 vote
0 answers
170 views

Radio Buttons inside a nested for each loop of html doesn't check

I have multiple for loops and each are being bind with relevant list of items. Example: Layer. revision. exposure. and each of these are repeated n number of times and they are looped in following way ...
Sushmitha N's user avatar
1 vote
1 answer
636 views

Access Symbol(_latestValue) elements of an Observable Array

printerViewModel['printerChecked']["Symbol(_latestValue)"] I have find value by this code but print undefined from this response, please see this image I Need false from Symbol(...
Amit Kanala's user avatar
0 votes
1 answer
335 views

Unable to convert jquery ajax response to array javascript [closed]

I have an API which returns an array of format: [ { "abc": "def", "efg": "hij" }, { "abc": "def", "efg": &...
Sourabh's user avatar
  • 470
0 votes
1 answer
2k views

Getting data from JSON and formatting this into a table

I am getting a little stuck with this one. I am trying to use javascript on my website to convert my API JSON data to a table. Without using an array in an array of data in JSON, it works fine which ...
James G's user avatar
  • 21
0 votes
1 answer
174 views

Knockout dropdown not updating after source array is updated

I have a dropdown that is populated from a view model's observable array. There is a button that is data-bound to a function that removes one of the elements from the array. When the button is clicked ...
Eves's user avatar
  • 227
0 votes
1 answer
1k views

Uncaught TypeError: Unable to process binding "if" with knockout

I am simply trying to create some checkboxes and inputs that get the data from database and saving it back to database after edit. But I am getting the following error: Uncaught TypeError: Unable to ...
Raluca Micu's user avatar
0 votes
1 answer
46 views

Convert JSON data to Javascript Array in knockout

I have the following JSON Array: AccessToFinancialServicesRule: {Clean: 3, Copy: 3} BoardParticipationRule: {Clean: 3, Copy: 3} Documents: null EconomicDevelopmentRule: {Clean: 3, Copy: 3} ...
Mohammed Ismail's user avatar
0 votes
1 answer
134 views

How to track state change for multiple checkboxes in ko.js

Here is the fiddle:https: https://jsfiddle.net/t5v7fmoq/1/ What I want to achieve: I want to be able to update checkbox view automatically depending on the recieved state variable (which can have true ...
johndoe's user avatar
  • 43
0 votes
1 answer
181 views

knockoutjs breaking a loop in array

I am trying to replicate a code similar to the current one shown on this page: http://www.knockmeout.net/2011/04/utility-functions-in-knockoutjs.html The array loop calculates a total price, however, ...
Anthony Saleeb's user avatar
0 votes
1 answer
64 views

How to process binding : foreach after altering data in observableArray

I am altering an observableArray, modifying some data in a subscribe event. First I am converting the ObservableArray using ko.toJS(), mapping trough the data, and altering. At the end I call self....
Terje Nygård's user avatar
0 votes
1 answer
74 views

How to subscribe to change in observableArray's item

I have prepared a basic knockout.js fiddle here: http://jsfiddle.net/utm02ohk/2/ For completeness I will repeat parts of the code here: In my View I've got foreach loop which iterates over an ...
johndoe's user avatar
  • 43

15 30 50 per page
1
2 3 4 5
25