Most voted "knockoutjs" questions
Knockoutjs is an independent implementation of the`Model-View-Viewmodel` standard with templates.
Learn more…37 questions
Sort by count of
-
9
votes1
answer1585
viewsWhat is the difference between Knockoutjs and Angularjs/Emberjs?
What’s the difference between Knockoutjs and Angularjs/Emberjs? What I’ve been researching: Apparently Knockoutjs has a much smaller learning curve, can be integrated into existing static sites and…
-
4
votes1
answer863
viewsMake a select and checkbox to have a behavior similar to radio button
Knockoutjs I’m having a hard time getting values from input within a table to compare it would have to be like a radio button, but there are two checkbox as can be seen in html down below: function…
-
3
votes0
answers70
viewsWhich python web service to use in an application using knockoutjs?
I need to create a python web service for my Django application. My application was built using Django and knockoutjs, but I don’t use models or Forms, knockout ko.observable. I thought about using…
-
3
votes2
answers67
viewsProblems with Sort() and knockoutjs
https://jsfiddle.net/n8v3hj5n/1/ I’m having trouble ordering a knockoutjs observableArray, every time I order the list it gives a turn effect(). Who asks to solve this problem?…
-
3
votes2
answers131
viewsAPI does not receive list post
I have an API that receives a post, if I receive only a single contract, it receives the data normally: [HttpPost("GravaContratos")] public async Task<JsonResult> GravaContratos(ContratoModel…
-
3
votes2
answers312
viewsC# check "null" or "Nan" or "false" or "0"
I’m having a validation difficulty. I have a View that sends to the Controller information, where in view is used knockoutjs, but there is time that he sends a null or "null" or "NaN" or "false" or…
-
2
votes1
answer141
viewsTesting Viewmodel Knockout with Cucumberjs
I have the definition of Feature as follows: Feature: Shoper can add an item to ShoppingCart Scenario: First item added to ShoppingCart Given I have an Empty ShoppingCart When I add an Item to…
-
2
votes1
answer136
viewsHow to set `href` on a link in Knockoutjs?
I’m starting with Knockoutjs and would like to know if you have how to attach a link received by AJAX/JSON in a tag <a href="meu link aqui">Meu link</a>. HTML: <div data-bind="text:…
-
2
votes1
answer115
viewsKnockoutjs does not work
Code: <!DOCTYPE html> <html> <head> <script type='text/javascript' src='js/knockout-3.2.0.js'></script> <meta charset="UTF-8"> <title>Title of the…
-
2
votes1
answer108
viewsValidations in Webpapi
I’m starting to study webapi with knockout, using a classe Basic as example I made my model, in the knockout I made the list and include it in my classe I have decorated the attributes with some…
-
2
votes1
answer76
viewsProblem with select in Knockoutjs and Mootools
I’m having a problem in a simple test with Knockoutjs in conjunction with Mootools: <div> <select data-bind="foreach: animais"> <option data-bind="text: nome, value:…
-
2
votes0
answers54
viewsHow to reference Library Knockout.js installed via NPM
I installed the Knockout.js library via NPM, by the following command: npm install --save-dev knockout I noticed that NPM installs the module inside the node_modules/knockout folder, but I believe…
-
2
votes2
answers61
viewsMootools request: onSuccess is not triggered
I’m using Knockoutjs in conjunction with Mootools, but I’m having problems with the Request. <div class="form-group"> <select data-bind="options: classificacoes, optionsText:…
-
2
votes2
answers601
viewsMaster Detail with Select2
I’m trying to make a master Detail One of its inputs is a Select2, But it does not generate the Select2, until why it is generated only when finished reading the script, and the second way I did,…
-
2
votes1
answer148
viewsSending post to Actionresult via knockout
Speak people, next: I’m trying to send one post using the ko, for a method ActionResult of my controller instead of a JsonResult as usual. When debugging the project it enters the ActionResult but…
-
2
votes1
answer352
viewsGooglemapsapi - create markers filter
I’m making a dynamic map, using the Google Maps API that uses markers to signal a list of predefined locations, such as: self.locations = [{ name: 'Foxtrot', lat: 38.713905, lng: -9.1518868, type:…
-
2
votes0
answers19
viewsKnockoutjs Div changes update tag <a>
I have this Div with knockoutjs when she changes I have to change my tag to Hide or Visible <div style="text-align:center; margin-top:5px; width:150px; float:left;">${Name()}</div> <a…
-
2
votes1
answer105
viewsCreate table component with Knockout
I have the following code using Ajax to fetch the data in a Restful and loading the fields in an array Listusers knockout: $.ajax({ type: "GET", url: "http://192.168.15.4/api/usuarios", contentType:…
-
2
votes1
answer35
viewsInput input problems directly via browser console (Knockoutjs)
I have been studying for a short time and I am currently with a challenge that I could not win. There is a Javascript library called Knockoutjs which, from what I read in the documentation,…
-
1
votes1
answer105
viewsERROR: using Getjson knockout
FILE . ASPX <head> <script src="scripts/jquery-1.4.4.js"></script> <script src="scripts/knockout-3.1.0.js"></script> <script…
-
1
votes1
answer94
viewsUsing only knockoutJs and jQuery can replace the durandalJs?
Good morning, you guys, First, I worked on a very large project using Urandal, this project was cutting-edge technology in web, durandaljs, Gulp, Entity framework 6 mvc 5 webapi2 and etc now the…
-
1
votes0
answers52
viewsKnockoutjs code to work after returning from Controller
I have an application that uses Knockoutjs, but when saved it returns some error the button that uses Knockutjs to and does not work, only after updating the page it comes back working properly,…
-
1
votes1
answer48
viewsCreate columns with knockoutJS foreach
Good afternoon, I wanted to 'break' a list of items in 3 columns of 4 items in a knockoutJS foreach. That is, at this point the list is filled down and I would like it to be started via jQuery or…
-
1
votes1
answer63
viewsCreate a treeview that accepts an observable array as input
Hello, I need to create a treeview that accepts an observable as input so that as I remove/add a node in the tree the same update. I have been researching and many people use the biding template to…
-
1
votes0
answers22
viewsI cannot show error in my view
Well, I have a view and I can not show the error messages, the code is very large and put in a summary but need some part I am editing. Controller Before it was like this: if (!ModelState.IsValid) {…
-
1
votes1
answer204
viewsLoad Viewmodel and external template to the Knockout component
I’m trying to load the template and Viewmodel to a knockout component using require.js, but so far unsuccessfully. index.html (view) <!doctype html> <head> <link…
-
1
votes0
answers48
viewsWith knockoutjs make a Checkbox with Radiobutton behavior
Well I already asked a question I tried all the code that was passing me and nothing, and it was marked as duplicate, However as can be seen in the code below does not work as desired. function…
knockoutjsasked 7 years, 2 months ago Bruno H. 1,283 -
1
votes1
answer436
viewsProblem to set mask in an input field with Knockoutjs
I’m unable to apply a dynamic mask (CNPJ/CPF) to the input field of an application created in Laravel 4.2, using HTML5 and Knockoutjs. This is returning the following error message on the Chrome…
-
0
votes0
answers181
viewsKnockoutjs and ASP.NET MVC
So I’m starting to take a look at Knockoutjs and it’s all a little dark yet, in the example I’m following, I’m having a mistake that says O objeto não oferece suporte à propriedade ou método 'join'.…
javascript c# asp.net-mvc asp.net-mvc-5 knockoutjsasked 9 years, 8 months ago Pablo Tondolo de Vargas 5,444 -
0
votes2
answers920
viewsHow to find an element within an object array by Id?
I have two arrays, where one of them contains integer numbers (array1) and another contains objects (array2) with properties such as Id, Description and Numerovinculo. I need to find and remove from…
-
0
votes1
answer169
viewsreplace symbol by space
I need to replace the signal + for %20 Example : São+Paulo for Are%20Paulo the search is on Laravel with knockout…
-
0
votes0
answers119
viewsKnockoutjs shoot event after every modification in UI or model
Hello, as you would intercept changes in the UI or model that were made sensitizing the knockout? Using the subscribeI know there was a change in a property, but what if I had 100 models, with 10…
-
0
votes2
answers167
viewsHow to check if several dynamically created input is empty?
I have this Input that is generating via Knockoutjs: <input type="text" class="req" placeholder="" data-bind="value:Request" /> But I have to check if it is empty and if I am applying a…
-
0
votes1
answer59
viewsKnockoutjs: How to show "sum" of values in an input?
Hello! Follows code: window.onload = function () { var viewModel = function () { var self = this; self.label1 = "Label 1: "; self.label2 = "Label 2: "; self.show = ""; self.input1 = ko.observable();…
knockoutjsasked 4 years, 8 months ago STR21 19 -
0
votes1
answer66
viewsHow to check if the item is in the knockout list, because the isthere function returns 'false'?
The duvia is as follows: When I click the button Add To List this executes the function addToList which in turn performs the function isThere who is returning false and this is exactly what I don’t…
-
0
votes1
answer37
viewsProblem with length!
Hello! I am trying to implement, validation in some fields using knockoujs with the following code: <script type = "text/javascript"> function MyViewModel() { self = this; var registro;…
knockoutjsasked 4 years, 8 months ago STR21 19 -
-1
votes3
answers4737
viewsCapture text within a <td> via jQuery
How do I get only the amount (R$11,20)? <td class="monetary" databind = "text: value label, visible: $parent.isShippingKnown()">R$11,20 </td> It didn’t work, and there’s this other…