Questions tagged as 'knockoutjs'

1
answer

ERROR: using GetJSON knockout

.ASPX FILE <head> <script src="scripts/jquery-1.4.4.js"></script> <script src="scripts/knockout-3.1.0.js"></script> <script src="scripts/jquery-1.4.4.min.js">&...
asked by 10.07.2014 / 20:57
1
answer

Load ViewModel and external template into the Knockout component

I'm trying to load the template and the ViewModel into a knockout component using require.js, but so far unsuccessful. index.html (view) <!doctype html> <head> <link href="assets/css/bootstrap.min.css" rel="stylesheet"...
asked by 13.08.2017 / 00:35
0
answers

With knockoutjs make a CheckBox with Radiobutton behavior

I've already asked a question I tried all the code that was passing me and nothing, and was marked as duplicate, however as can be seen in the code below does not work as desired. function DemoItem(id, name) { var self = this;...
asked by 28.08.2017 / 16:01
0
answers

I can not show the 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 summarized form but needs some part I'm editing. Controller Before it was like this: if (!ModelState.IsValid) { return PartialView("InternalAud...
asked by 18.07.2017 / 15:37
0
answers

Knockoutjs code to work after controller returns

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 refreshing the page does it work properly, does anyone know what it can be. csHtml @model Entiti...
asked by 17.07.2017 / 13:31
1
answer

GoogleMapsAPI - create markers filter

I'm making a dynamic map using the Google Maps API that uses the markers to signal a list of pre-defined locations, such as: self.locations = [{ name: 'Foxtrot', lat: 38.713905, lng: -9.1518868, type: 'Bar'...
asked by 05.11.2016 / 01:23
2
answers

How to check if multiple 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 a specific css is applied: As many fields can be created the sam...
asked by 03.08.2017 / 15:25
2
answers

How to find an element inside an array of objects by the Id?

I have two arrays , where one of them contains integers ( array1 ) and another contains array2 Id , Description and Banners . I need to find and remove all of the array2 elements that match every array1 integer. I have tried to use...
asked by 17.11.2017 / 13:02
0
answers

Maps APi does not open within a bootstrap modal

                                                                                                     </div> <br> <div class="col-md-8"> <dl class="dl-horizontal"> <dt>Data Nasciment...
asked by 13.12.2018 / 18:28
1
answer

replace symbol for space

I need to replace the + sign with % 20 Example: Are + Paulo by Are% 20Paulo search is in Laravel with knockout     
asked by 27.01.2018 / 21:32