Questions tagged as 'javascript'

1
answer

How to pass parameters by providers AngularJS?

I have the default site routes in constant : app.constant('defaultRoutes', { home: { url: '/home', templateUrl: 'templates/home.html', controller: 'HomeController' }, [...demais rotas....] }); I am c...
asked by 16.04.2014 / 14:28
0
answers

Delphi 7 intraweb 5.1 + Javascript [closed]

I'm having a problem with Javascript do Delphi 7 + Google Chrome + qualquer outro navegador mais moderno . It practically does not work, I wonder if this is normal or if you have another way to use javascript for validations, hide fields,...
asked by 28.05.2014 / 15:46
1
answer

pass an array of objects to another page

scoreBoard.push({ acertosOuErros: acertoOuErro, multiplicacao: resultado }); This is my array made in javascript, I wanted to pass this array of objects to another page so I would ha...
asked by 02.03.2015 / 18:53
3
answers

How do I know if the chosen date is smaller than the current date?

I need to issue an alert if the date you choose is less than the current date. I did so: var strData = "15/08/2017"; var partesData = strData.split("/"); var data = new Date(partesData[2], partesData[1] - 1, partesData[0]).toDateString()...
asked by 16.08.2017 / 22:15
3
answers

Number Comparison javascript

Starting a draft for parking collection needs to know how best to calculate the values based on the number of minutes. That way it is not working, I believe I have errors in the logical operators (I'm not familiar with Javascript) var valor_to...
asked by 16.09.2017 / 23:59
2
answers

Block text in textBox

Good morning, people. I have this mask made and I need it to block text in the textBox field of my application, but I can not imagine in any way to do this. (noob) can anybody help me? function Mascara(src, mascara) { try{ var camp...
asked by 30.07.2015 / 15:44
5
answers

How do I make a div get hidden?

I have a function here that makes the div invisible and visible, but it starts visible, I would like it to start invisible.     
asked by 02.02.2018 / 18:19
3
answers

Execution or not of the increment in loops for [closed]

Code 1 : var x = 1; for( ; x<6 ; x+=2 ){ x=x*x; } console.log(x); In the above code even if the condition is false the part that increments is executed the last time. Code 2: var x = 0; for( ;...
asked by 19.10.2017 / 18:54
3
answers

Remove TAG with JavaScript

How do I remove an HTML tag using JavaScript? For example, with insertAfter (); and the insertBefore (); I can insert some tags if I want. But if I want to erase from my code, some TAG? Not by display: none, I want to delete myself. I foun...
asked by 12.05.2017 / 21:03
3
answers

Help with Json filter with jQuery

I need help with the filter in Json with jQuery, I have this code: var chamaFiltro = function(horaminida){ var pesquisa = { idamin: horasParaMinutos(horaminida) }; var filtrados = json.aPesquisa.filter(function(voo) { voo = JSON...
asked by 19.06.2017 / 20:34