Questions tagged as 'javascript'

3
answers

Validate that multiple inputs are not empty

I have 20 inputs in my html and each input has a different id, so before sending the backend I get getElementById the value of each div so I repeat the getElementById 20 times and verify that it is different of empty , how...
asked by 03.09.2018 / 05:36
3
answers

Add rows to Table with JavaScript, DOM

I have a question, I currently have an HTML table, but I would like to add rows dynamically, I'm trying to do it in the DOM way, but I can not get it, my table looks like this: <table border="1" id="tablaprueba"> <thea...
asked by 29.08.2018 / 04:28
1
answer

send alert for if in javascript

I am creating a form, and I have a situation of a field that has to be filled depending on the multiplication of some if it is bigger than it has to fill the field if it is smaller that you do not have to fill it. I am doing this with javascr...
asked by 30.08.2018 / 19:05
1
answer

JavaScript - How can I get the frequency of a sound in real time?

Could someone give me a clue how to get the frequency of a sound in real time with javascript? Thanks.     
asked by 01.11.2016 / 19:21
3
answers

Use of routelink in the base html

I'm trying to use the routerLink property of the "tag to" in the html that loads when the page starts. This works well within the template of a component, but in this case it is not necessary to render a component, since the menu is s...
asked by 27.10.2016 / 00:37
1
answer

How do I stop an interval in js?

Hello, my problem arises when I stop an interval in javascript, because even if I use the ClearInterval it continues printing. var canvas = document.getElementById('canvas'); var btnInicia = document.getElementById("inicia"); var btnPara = do...
asked by 29.03.2018 / 05:46
2
answers

Add row to an html table

I was practicing something simple in jquery, in this case adding new rows to a table through a button, for which I have two pieces of code: The first one using the selector tbody:last-child and the function append() of jquery....
asked by 28.09.2016 / 17:31
5
answers

How can I convert an Array boolean to an Array int

I have the following arrangements: Array = [false, true, false, true]; But I want to convert it to Array2 = [0, 1, 0, 1];     
asked by 10.06.2018 / 18:43
2
answers

synchronous programming in nodejs, problems with asynchrony

I call from app.js like this: bd.permitir(req.body.nom,req.body.pass,resultado,bd.insertarLetra); my functions with callback are these: var permitir=function (usuarioNombre,usuarioPass,array,callback){ var objBD = BD(); var boolea...
asked by 04.10.2016 / 21:23
2
answers

Sound in a JavaScript Alert

I hope you can support me with the following question. At the moment of sending a alert in a validation I would like a sound to be output along with the alert as I can do that. I have tried several things but they do not work...
asked by 30.07.2018 / 18:59