Questions tagged as 'javascript'

1
answer

Get a Value of an Array in JavaScript

Greetings to all, I have the following JavaScript code: var Lista=[]; $.getJSON("php/consultas/TraerDatos.php", function( data ) { $.each(data, function(id,value){ var elemento = { 'Proyecto':''+value['Pro...
asked by 22.11.2016 / 17:23
2
answers

custom input

I have the following code with which I would like to emulate the functionality of this site: Mathway : .fraccion { display: inline-block; font-size: 90%; text-align: center; vertical-align: middle; padding: 0 .1em; } .d...
asked by 03.02.2017 / 19:11
2
answers

run example from github library

I'm trying to try a library link this is the code which is on the page // include the library <script src="./svmjs/lib/svm.js"></script> <script> data = [[0,0], [0,1], [1,0], [1,1]]; labels = [-1, 1, 1, -1]; svm = new sv...
asked by 24.11.2016 / 01:40
1
answer

Insert data into an array inside a json

I need to store data in an array that is inside a json, that is, I will have several users that will have data let nombresUsuarios={ datos:[{nombre :''}, {acierto:''}, {fallo :''}]...
asked by 08.01.2017 / 07:18
3
answers

Redux: When to spend props and when to take props from the state?

As you will know in redux we have access to the global state in any component with connect . But my question is: What is the best practice to pass props (or up to depth level) to nested components and when to take properties directl...
asked by 30.12.2016 / 11:52
1
answer

How to know if an object is a string [closed]

When I double click on the cell of an ExtJs grid returns the uuid but when selecting the button I return the object as such. How can I know if what returns to me is a string or an object?     
asked by 15.03.2016 / 16:08
1
answer

how to access property of an object when its name is a number

this is my object my code is this: <table class="table"> <thead> <tr> <th>id</th>...
asked by 30.12.2018 / 23:43
1
answer

Get and change CSS of some containers

I hope you are well, I tell you what I should do ... I must do a function that detects me if one or many div within their styles have the property background-color: #ffffff; and in case they have it, change it by background-color: #...
asked by 28.12.2018 / 16:18
1
answer

When inserting html code from javascript, css fails

I have a code in javascript that accesses to firebase to obtain information and then inserts html code with this information. All this does but not as expected. For example, it uses images but instead of putting them with a specific size, it put...
asked by 02.01.2019 / 23:32
3
answers

Pass variables within a for in Javascript

I have the following code to pass parameters to a function: function updateBar(id, type, title, idDash, urls){ for(var i in urls){ var url = urls[i].url+'/'+id; $.getJSON(url, function(data){ var dataHarvest = data['ret...
asked by 16.09.2016 / 17:29