Questions tagged as 'javascript'

1
answer

How to mount this effect with JS?

I have a list, and I would like to create a loop by passing each of these elements, basically what I want is this effect: $.each($('.elemento'), function(i, el){ $(el).fadeIn(100); $(el).delay(400).addClass("esconder"); /*esperar 400m...
asked by 11.04.2017 / 21:13
0
answers

Doubt: Web Sockets and how to use

I was seeing this question link So I did not read the answer on nodeJS and I researched, but I did not understand much. How to apply this technology (nodeJS)? I am developing a site in php / jquery and in it I have administrative panel wit...
asked by 07.04.2017 / 06:07
0
answers

Cumulative Online Modal Alert

I have a form on my system and a portion of this form has a cumulative line. Eg you click a button it adds another input to you type. My doubts are as follows, if the user does not type anything in this input I need to displa...
asked by 17.04.2017 / 21:18
2
answers

What number of the line is clicked

Ineedtopostthislinenumbertoanotherprogramphp<divid="posiciona"> <table id="mostra_prod" cellpadding="1" cellspacing="3" bordercolor="#000"> <tr> <td align="right" bgcolor="#0a0a96">Aplicação</td...
asked by 09.08.2017 / 12:28
3
answers

How to use the current value of a variable in an inner function?

The following code "prints" 50 times the text "Message 50" in a textarea . for (var i = 0; i < 50; i++) { setTimeout(function() { textArea.value += 'Mensagem ' + i + '\n'; textArea.scrollTop = textArea.scrollHeig...
asked by 27.12.2013 / 14:47
0
answers

How to validate PIS (Social Integration Program) in Javascript?

I'm needing a function that validates PIS . I've already searched and those I meet, do not work. I found this: function validarPIS(pis) { var multiplicadorBase = "3298765432"; var total = 0; var resto = 0; var multiplicando...
asked by 14.02.2017 / 14:37
2
answers

How do I perform functions when the window is out of focus?

Explaining the problem I'm working with sockets, and I'd like to know how to place a notification only when the tab is out of focus. That is, when the user is viewing the tab, it will not receive notifications, but if it leaves the tab,...
asked by 09.02.2017 / 02:21
1
answer

Option width within select

I have <select> where the texts that are in <option> are very large. When you expand the <select> on the screen the options exit out of it. I need a solution for the whole text appearing on the screen, not...
asked by 24.03.2017 / 19:10
0
answers

Problem with jQuery filter?

I have this filter in jQuery: var aeroportosida = []; Filtro.prototype.filtroAereoNomeIda = function(value){ var dataa = JSON.parse(JSON.stringify(this.data)); aeroportosida = []; if(value.length == 1){...
asked by 27.07.2017 / 13:35
2
answers

Function in jquery button disabled

How do I make a div appear when a button is disabled, and when enabled I want this div to be hidden $(document).on('ready', '#btn-cadastra-atividade', function () { $this = $(this) if($this.attr('disabled') === tru...
asked by 01.08.2017 / 16:16