Knockout is a JavaScript library for dynamic HTML UIs using the Model-View-View Model (MVVM) pattern.
2
votes
0answers
18 views
How to bind a new list of values to UL when Onchange event of Select option is fired using knockout.js?
In my spa, after page loaded event ul showing some list of values from database successfully.
Below is the code
<ul data-role="listview" data-divider-theme="b" data-inset="true" ...
0
votes
2answers
12 views
how to use mvc4 model value in knockout viewmodel js
I am using Knockout with ASP.NET MVC here is my View which is populated by MVC controller
HTML
<html>
<input type="text" data-bind="value:Name" />
<script ...
0
votes
1answer
24 views
Does AngularJS have a counterpart to Knockout's with-binding?
In knockout you can change the scope (or binding context) using the with-binding like so
<div data-bind="with: theChoosenCar">
<p>Engine:</p>
<p data-bind="text: ...
1
vote
1answer
23 views
How To Remove Unwanted JSON Node Using KnockoutJS
I am having problem to post json data because i have no idea how to remove one of json node (in this case ServiceOptions) during the ajax post back.
first this is my HTML:
<h3>Company ...
0
votes
0answers
20 views
Knockout many to many template issue
I have a site listing Speakers and Programs.
Each Speaker can have many Programs and each Program can have may Speakers.
In my Knockout implementation when the view changes, for some reason the ...
0
votes
1answer
14 views
Post data back to server using Knockout mapping
I've bind list of objects to check boxes list using KnockoutJs and KnockoutJs Mapping Plugin, with this code
Server Side Class
public struct FilterListItem
{
public string Text { get; set; }
...
0
votes
2answers
34 views
Angular.js and ASP.NET MVC 4
I have an ASP.NET MVC 4 project and I'm stuck on an architectural decision on which JavaScript framework or library to use Angular.js or Knock.js. I am currently leaning towards using Angular.js over ...
0
votes
1answer
21 views
How to remove bindings from node in knockout?
I've found that in theory ko.cleanNode() should remove bindings from node if called, but in this example it doesn't seem to work.
Javascript:
// View model
var vm = {
name: ko.observable("John")
...
0
votes
0answers
20 views
Knockoutjs get parent object
I am having difficulties on getting the parent object's certain field from child object using knockout.js.
function Child(info){
var self = this;
self.x = info.x;
self.y = info.y;
...
0
votes
1answer
14 views
Knockout pass filename to server
I'm writing an application using Knockout. I want the user to browse for a file and then I want to pass the filename to the server. However, due to browser security issues, the path of the file is ...
0
votes
1answer
20 views
Knockout - Subscribing to deep observable changes
I've got a Knockout application with a hierarchy of objects. If I want to access a deep level in an object in an HTML tag, I'd use something like:
data-bind="text: ...
1
vote
1answer
25 views
Disabling/Removing Select Options created via a Knockout options binding
I have a series options a user can choose, which I am able to track via an observable array. The array itself is fed from a Model which I bring in to knockout via the Knockout Mapping extension ...
0
votes
0answers
31 views
Generic Knockout View Model for similar Models
It might be simple question but I am searching from 2 days but din't get any answer.
I am working on ASP.Net MVC4 with WebApi to return API calls.
So most of the KnockOut View models are same ...
1
vote
1answer
19 views
Knockoutjs visible depending on radio button value
I'm trying to learn Knockout.js, but I ran into a problem with radio buttons
I would like to make <p>Only visible if almond checked</p> visible only when the radio button with ...
0
votes
1answer
66 views
Knockout Js Binding
I am working in Asp.net mvc4 and using web api trying to bind WebApi Json Result to Knockout Js but the below binding not showing any value in text box or span
<input type="text" ...