Questions tagged as 'javascript'

1
answer

How to assign dynamic ids

How can I assign a dynamic id to a button that I print in a while? I need to assign a dynamic id to make the insertion, since I do not have a form. here the code while($fila=$consulta->fetch(PDO::FETCH_ASSOC)){ $this...
asked by 07.05.2018 / 17:50
1
answer

Reverse order of Multidimensional Array

I need to invert the positions of an Array, where the first pass to the last the second to the penultimate and so on. For example, I have a 3-position Array: [1,1.00,2300] [2,1.00,4500] [3,1.00,2340] and this should be your result: [3,...
asked by 08.05.2018 / 08:13
1
answer

Iterate table in php in Javascript array

Hello, I have the following table that I am calling using a controller Driver $respuesta = GestorOITModels::obtenerViasModel("transporte"); //nombre de la tabla $datos = array($respuesta); echo json_encode($datos); JS file, wher...
asked by 14.02.2018 / 08:36
1
answer

Problems getting HTML elements from Firebase

I have a database in Firebase that receives data from an Android application, the application sends the data already enclosed in HTML tags, with classes and Id's. I get the Firebase data with Javascript and print it on the screen. the data is di...
asked by 14.02.2018 / 19:08
1
answer

Access nested JavaScript functions from HTML

I have the following JS code and I try to access the functions start() and stop() from a div with the events onmouseover="" and onmouseout="" : NewsScroller = function(id, speed) { this.start = func...
asked by 14.02.2018 / 00:26
1
answer

Problem filling in input with data from a select

I am trying to fill a input according to a data that I choose from a select , I do it using AJAX and PHP . This is my code: <select id="pro" name="plan" class="form-control"> <option readonly>Elegir Plan&...
asked by 16.02.2018 / 21:05
1
answer

How to read data input from keyboard with NodeJS?

I am trying to read the data entry from keyboard in NodeJS, I would like to know how to do this in the way that java has its scanner or c ++ has something similar, I hope to give you to understand.     
asked by 04.02.2018 / 23:53
1
answer

Add the value between two Angular input

<label>Capital <input type="number" ng-model="vm.capital" ng-keyup="vm.total()"> </label> <label>Honorarios <input type="number" ng-model="vm.honorarium" ng-keyup="vm.total()"> </label> <h1>{{ vm.s...
asked by 09.02.2018 / 15:48
1
answer

Is there a difference between "change" and "click" when listening to checkboxes in Javascript?

Seeing that these two pieces of code work the same, I would like to know if there is any difference between click and change at the time of listening to the events in the elements checkbox of Javascript. Test with clic...
asked by 06.02.2018 / 22:56
4
answers

Logical operator or

What am I doing wrong? In Javascript I am using the logical operator or in:    Use the logical operator or in variables 'foo' and 'bar' and assign it the   result to the variable disjunction. But it's not working for me; The code I use is...
asked by 02.02.2018 / 04:51