Related
last name Unable to map json to observable array. I used the code from the tutorial ( http://learn.knockoutjs.com/ ). function Movie(data) {
this.name = ko.observable(data.name);
this.description = ko.observable(data.description);
this.duration = k
kaka1234 I have an HTML table whose columns are dynamically created. There are Add Row buttons to add rows to the table and Delete Row buttons to delete rows. Finally, there is a "save" button where I want to get all the data from the input table and send it t
kaka1234 I have an HTML table whose columns are dynamically created. There are Add Row buttons to add rows to the table and Delete Row buttons to delete rows. Finally, there is a "save" button where I want to get all the data from the input table and send it t
kaka1234 I have an HTML table whose columns are dynamically created. There are Add Row buttons to add rows to the table and Delete Row buttons to delete rows. Finally, there is a "save" button where I want to get all the data from the input table and send it t
kaka1234 I have an HTML table whose columns are dynamically created. There are Add Row buttons to add rows to the table and Delete Row buttons to delete rows. Finally, there is a "save" button where I want to get all the data from the input table and send it t
kaka1234 I have an HTML table whose columns are dynamically created. There are Add Row buttons to add rows to the table and Delete Row buttons to delete rows. Finally, there is a "save" button where I want to get all the data from the input table and send it t
kaka1234 I have an HTML table whose columns are dynamically created. There are Add Row buttons to add rows to the table and Delete Row buttons to delete rows. Finally, there is a "save" button where I want to get all the data from the input table and send it t
kaka1234 I have an HTML table whose columns are dynamically created. There are Add Row buttons to add rows to the table and Delete Row buttons to delete rows. Finally, there is a "save" button where I want to get all the data from the input table and send it t
kaka1234 I have an HTML table whose columns are dynamically created. There are Add Row buttons to add rows to the table and Delete Row buttons to delete rows. Finally, there is a "save" button where I want to get all the data from the input table and send it t
Zonus C#/ MVC / Knockout / JSON I have the following javascript: function Feed(data) {
this.ID = ko.observable(data.ID);
this.RSSName = ko.observable(data.RSSName);
alert(data.RSSName + " " + data.ID);
}
function ViewModel() {
self = this;
Mohsin JK First Web Service: (User) [{id: 1, username: "Jhon"}] Second web service: (message) [{id: 34, message: "This is a message 1", UserId: 1}, {id: 35, message: "This is a message 2", UserId: 1} How can I map above the two ko.obervableArrays so that I can
Mohsin JK First Web Service: (User) [{id: 1, username: "Jhon"}] Second web service: (message) [{id: 34, message: "This is a message 1", UserId: 1}, {id: 35, message: "This is a message 2", UserId: 1} How can I map above the two ko.obervableArrays so that I can
Shashank I create a ViewModel as: function PurchaseOrderViewModel() {
var self = this;
self.seqNo = ko.observable(1);
self.barcode = ko.observable('');
self.expDate = ko.observable('');
self.importDate = ko.observable('');
self.name = k
Shashank I create a ViewModel as: function PurchaseOrderViewModel() {
var self = this;
self.seqNo = ko.observable(1);
self.barcode = ko.observable('');
self.expDate = ko.observable('');
self.importDate = ko.observable('');
self.name = k
Shashank I create a ViewModel as: function PurchaseOrderViewModel() {
var self = this;
self.seqNo = ko.observable(1);
self.barcode = ko.observable('');
self.expDate = ko.observable('');
self.importDate = ko.observable('');
self.name = k
Shashank I create a ViewModel as: function PurchaseOrderViewModel() {
var self = this;
self.seqNo = ko.observable(1);
self.barcode = ko.observable('');
self.expDate = ko.observable('');
self.importDate = ko.observable('');
self.name = k
Shashank I create a ViewModel as: function PurchaseOrderViewModel() {
var self = this;
self.seqNo = ko.observable(1);
self.barcode = ko.observable('');
self.expDate = ko.observable('');
self.importDate = ko.observable('');
self.name = k
trunk I have a 2d observable array called textFields: var t1 = ko.observableArray([{val: 0}, {val:0}])
self.textFields = ko.observableArray([t1]);
I have a function called Solve that should take one parameter: self.solve = function(arr){
console.log(arr);
}
tomet I have a 2d observable array called textFields: var t1 = ko.observableArray([{val: 0}, {val:0}])
self.textFields = ko.observableArray([t1]);
And I have a function called solve that is supposed to take an argument: self.solve = function(arr){
console.log
Manish Sinha var subject = function (data) {
self = this;
self.subjectName = ko.observable(data ? data.subjectName : "");
self.subjectPassPercentage = ko.observable(data ? data.subjectPassPercentage : "");
}
var course=function(data){
self = this;
s
dangerous I have a problem when I try to use a knockout map to map from a null json property to a knockout observable array. After executing the map, the knockout array is null. So, for example, I have the following data: var data = { 'Name': 'David', 'Modules
dangerous I have a problem when I try to use a knockout map to map from a null json property to a knockout observable array. After executing the map, the knockout array is null. So, for example, I have the following data: var data = { 'Name': 'David', 'Modules
arame3333 I have a viewmodel with an Ajax call to hold data: ViewModel = function (data) {
contractsAutocompleteUrl = data.ContractsAutocompleteUrl;
var self = this;
ko.mapping.fromJS(data, lineMapping, self);
self.save = function() {
self.isB
Farhad Jameel I have some hardcoded values in my asp.net mvc controller. The GetPlanList()return JsonResultthis is to read in the viewmodel.js file and assign it to the ko.observableArray()data and then bind it to the table. The problem I'm having is how do I
Farhad Jameel I have some hardcoded values in my asp.net mvc controller. The GetPlanList()return JsonResultthis is to read in the viewmodel.js file and assign it to the ko.observableArray()data and then bind it to the table. The problem I'm having is how do I
Craig I have passed a model from .Net to my view model which is an object with several fields and a list, each field has another list. So, an object with a list of lists. In my view, I represent this as some data, with a list of tabs (the first list), and then
Andreas Klumpe I'm having trouble mapping a json array to an observable array. I get an error "Cannot read property 'fromJSON' of undefined" Here is the knockout script I linked: Knockout 3.2.0.js Knockout.mapping-latest.js Knockout.mapping-latest.debug.js My
Andreas Klumpe I'm having trouble mapping a json array to an observable array. I get an error "Cannot read property 'fromJSON' of undefined" Here is the knockout script I linked: Knockout 3.2.0.js Knockout.mapping-latest.js Knockout.mapping-latest.debug.js My
Tom Harnax Knockout.js 3.5.0 comes with it's own type definitions on npm. Let's xdefine this variable as: const x: ko.Observable<boolean> = ko.computed(() => true);
Now we get the compiler error: Type 'Computed' is missing the following properties of type 'Ob