Skip to main content

All Questions

Tagged with
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
13 views

Create ko.observableArray from JSON object in Knockout JS

I have JSON object loaded to my view model. I want to push that into an observableArray. function viewModel() { var self = this; self.details = [{"id":1,"first_name":"...
Illyas Iqhbal's user avatar
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
1 vote
0 answers
464 views

How can I sort the results of a javascript fetch from a rest api to present data to knockout bindings?

I am fetching data from a rest endpoint in my node.js application. w can I sort the results since I cannot modify the rest server to provide sorted data to begin with? I have spent a lot of time ...
dnraikes's user avatar
  • 315
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
664 views

how to parse ko.observable string received from json to integer (number) value

I am getting a String in my ViewModel from json response from server. it looks like this: "manual_setpoint": "200", I then need to display it in my view: <div class="setpoint" data-bind="text: ...
johndoe's user avatar
  • 43
0 votes
1 answer
55 views

binding data from JSON object with knockoutjs - Asp.net MVC

I have a problem to get data from returning JSON in case of nested JSON objects. HTML code looks like: <div> <h2>List Employee</h2> <br /> <table class="table ...
Roberts's user avatar
  • 53
1 vote
1 answer
48 views

How to retrieve Posted JSON , construct string, and email in PHP

App Overview This is a simple 'get-a-quote' page, where the user enters in a part number, quantity desired, and any optional notes. Prior Research I made sure to thoroughly try solutions found here ...
John S.'s user avatar
  • 504
-1 votes
3 answers
450 views

Sorting JSON array with nulls in JavaScript

My JSON array var jData = [ {id: 1, parent: null}, {id: 2, parent: null}, {id: 3, parent: 1}, {id: 4, parent: 2}, {id: 5, parent: 2}, {id: 6, parent: 1}]; I want this be to sorted like the ...
Emil's user avatar
  • 281
0 votes
1 answer
33 views

Have to load video into div from JSON object, can this be done with knockout?

In this task they want me to load the video that is in this JSON object into the corresponding player after the thumbnail is clicked. I don't have a real clue of how to do this if it's possible and I'...
erics15's user avatar
  • 627
0 votes
1 answer
145 views

how to group array and read using knockout.js data-bind: with

I am trying to group an array [{ "Name": "test1", "Other": "Junk" }, { "Name": "test1", "Other": "Junk2" }, { "Name": "test2", "Other": "Pile" }] I am using the following method to group by ...
jhutchings's user avatar
3 votes
1 answer
45 views

My return value function is failing - Promise related I think

The Problem I am working on a simple login page. From within my view model script, I call another script which handles the calls to my API. In short, I am not getting back the expected data I want, ...
John S.'s user avatar
  • 504
0 votes
3 answers
149 views

How to populate dynamically added input fields with Json object

I have a this table of input fields which I can add rows dynamically with help of KnockoutJS <table id="sTypeTable" class="table table-bordered" hidden="hidden"> <tr> ...
Shukurkhon's user avatar
2 votes
1 answer
40 views

How can I use a JSON based drop-down to filter an xml source?

I am setting up a web page which currently pulls through data from an xml source, using Ajax. What i'm now attempting to do is filter this selection using JSON. I have been able to set up a drop-down ...
Nico Butler's user avatar
0 votes
0 answers
467 views

How to convert a Json Array of Json Objects into XML C#

Hi I have a JS Knockout View Model posting back to my asp web app a Json Object which looks like this [ { "ID": "GRP2-SYSPRO|SysproComapnyF|0000003774|0003", "Requisition": "0000003774", ...
Ian W's user avatar
  • 411

15 30 50 per page
1
2 3 4 5
50