I am using Knockout.js to build a client-side view model. In my view model I would like to expose some functions that can be bound to elements in the page (typical MVVM model). I only want these functions to be called in response to a click event fro...
I have two select controls.  One is dependent on the other. For a simple example, let's assume the first displays a list of cities, while the other displays a list of streets in each city.  When the page initially loads, the select control displa...
I have two components: A panel and a custom text field. The panel has a viewmodel and I want to bind a value (called testData) from that viewmodel to a property (called test) of the custom text field. That works fine ...basically. But when the test p...
I use WebView to show data, the data gets augmented via JS function.  It works fine until the device gets rotated.  Using ViewModel to keep the page data and restore it after a config change seemed to be the right idea but I ran into problems, the pa...
I would like to implement knockout functionality to an already existing page. Therefore I want to manipulate with the ViewModel data from existing script. I have mocked up an example but it doesn't work correctly.   A ViewModel is correctly bound...
I using two view models, mainViewModel and filterViewModel in my page, where filterViewModel is instanced by mainViewModel  function mainViewModel() {     this.data   = ko.observableArray();     this.filter = new filterViewModel(); }  function filter...
I am using asp.net mvc 3 and have strongly typed models to pass to. The models will accept data if it is in a proper form. This form dictates that the data be in NameMatchingModel=value separated by &. For example, if I had:  viewmodel:  public c...
I have written a large data API used in several locations outside of our web application and I would like integrate knockout into the application. It seems with knockout, you can create a model with observables. What I can't figure is a way to ob...
I am new in using backbone.js and jquery. I like to bind a dynamic generated element to click event in view. hier is my code:  InvoiceView = Backbone.View.extend({ initialize: function () {     var _this = this;           $('input.BtnValidate'...
I’m looking for advice on how to populate the viewmodel passed to the view after a list is retrieved and an item selected in a dropdown list.  Note that I also have a client side viewmodel that is used for the Ajax/Knockout client code but this is...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.