[Solved] how to get the items base in json objects

It seems like this should work for you: $.ajax({ type: “POST”, contentType: “application/json”, url: “ManualOfferEx.aspx/OnSubmit”, data: JSON.stringify(data), dataType: “json”, success: function (result) { console.log(result); var data = result.d; var success = data.Success; var message = data.Message; console.log(message); }, error: function (xhr, err) { console.log(“readyState: ” + xhr.readyState + “\nstatus: ” + xhr.status + “\nresponseText: ” … Read more

[Solved] Angular events, ng-click, do not work with other libraries Dojo, Knockout, KendoUI, ESRI JSAPI

Hope this helps anyone who has a similar problem – Turns out, this code was what was affecting the angular events: <!–ko if: someContext.ready() === true–> <div class=”ls-rapidReports”> <div ng-app=”myApp”> <div id=”rapidreportCtrl” ng-controller=”rrController”> <button type=”button” ng-click=”myClick()”>hehe</button> </div> </div> </div> <!–/ko–> So wrapping Angular components inside Knockout is BAD. solved Angular events, ng-click, do not work … Read more

[Solved] Nested knockout template binding

I think you can do this like that: function Question(id, name) { this.id = id; this.name = name; this.answers = ko.observableArray(); } function Answer(id, name) { this.id = id; this.name = name; } function ViewModel() { this.questions = ko.observableArray(); var self = this; //dummy data self.init = function () { var q1 = new Question(1, … Read more

[Solved] Knockout bootstrap modal issue

Your code is nearly working. But there is one javascript issue, a global variable pollution, which prevents it from working. fixed your jsfiddle: http://jsfiddle.net/63tGP/3/ it fixed self = this; to var self = this; self = this; is same as window.self = this; the result is, at the end, the self in your addTask() always … Read more

[Solved] Adding Google Maps to an Html File and Using It With Knockouts [closed]

A really quick google revealed: Google maps and knockoutjs http://chadmullins.com/misc-php/knockout-series-three.php and perhaps most usefully: http://hoonzis.blogspot.co.uk/2012/03/knockoutjs-and-google-maps-binding.html. Without further information I can’t be more specific. 2 solved Adding Google Maps to an Html File and Using It With Knockouts [closed]