Questions tagged as 'javascript-eventos'

1
answer

Event load within event load?

I need the first load to solve the autoload problem of the scripts I do with php where I can not set the order in which they are going to be loaded, and after that I need to load that load into another load. Is it possible to use a load event in...
asked by 03.10.2017 / 15:53
2
answers

Why does the variable number return an empty string when it declares it out of a function

When the printNumero function is called, the local variable numero does what I wanted, returns the value that was entered in the input. But the variable numero global returns an empty string, even though I have put a value i...
asked by 25.11.2017 / 12:00
1
answer

Calculator in JavaScript

I'm trying to run the first part of the code so I can continue to do so, but instead of doing the operation when the "+" button is clicked, it goes straight to else . What can I do? window.onload = function(){ var btn = d...
asked by 08.09.2017 / 01:38
1
answer

How to use PNotify within angular

I have the following code and I want to use PNotify to give notifications when the user and / or password is incorrect or / and mandatory field is blank. How do I do? Remembering that I'm using ASP.NET MVC and have already referenced the PNotify...
asked by 16.03.2017 / 19:44
1
answer

Javascript - How do "IF and Else" work in conjunction with "returns"?

I'm having a hard time understanding why sometimes, depending on where an "if" statement is inserted into a particular block of a function, it is ignored. And how to use the "retuns", when it is desired within that expressions to stop, forward o...
asked by 08.06.2016 / 16:51
0
answers

How do I correct so that I select only one item marked on the toogle button?

I have a little logic problem, when I select only a toogle button, it brings the value of the two items in the list, I need to return only that item that is marked on the toogle button. this.produtosProvider.getAll() .subscribe( produ...
asked by 27.11.2018 / 14:47
0
answers

Link selected when changing slider

Good afternoon, I need help, I'm new to Javascript, Jquery, etc. I'm developing a project and created a part with Owl Carousel 2 where the Slider changes as I click on the alphabet links. When you click on the alphabet link, the slider change...
asked by 17.10.2018 / 21:27
0
answers

Scroll go straight to the next session of the page - vanilla JS

I have some sections in the site, I would like that when capturing the scroll, the site went straight to the next / previous section. As sections are 100vh, I get the height dimension of the device screen and each scroll up or down this value (a...
asked by 09.10.2018 / 16:47
0
answers

Event triggered twice in the Jquery click

I'm having trouble with jQuery events on time. I've already used all best practices to stop the click event. Here are some examples: .off() e.preventDefault(); e.stopPropagation(); unbid('click'); Always when there is a click I do this fu...
asked by 07.06.2018 / 18:27
1
answer

Problems loading a DataTable in Page Load with JavaScript

I'm a beginner with JavaScript and I'm having a problem when the DataTable of my Index is loaded. IfIopenasection,inmyIndex,andputtheJScodeinsideit,everythingworksperfectly. @{ ViewData["Title"] = "Gerenciar Situações de Pessoa"; }...
asked by 08.06.2018 / 12:58