Questions tagged as 'javascript-eventos'

2
answers

Run automatic click on form input

I have a search form, and it lists details. when accessing the details it writes session, but when returning the list it saves the search in the session but it does not execute the search. What I thought was to perform a hidden input with id=...
asked by 19.09.2017 / 17:19
1
answer

Event on element created after DOM loading

Next: I have a page where requests will be made. In this page, the user chooses the item and can, if wanted, add extra items to this item, for example "more cheese". When I enter this "more cheese", I create a row with two columns in the table o...
asked by 29.07.2017 / 01:39
1
answer

Link generated by javascript does not work

I have tried in many ways to create a way to remove the animated menu that I created. Via function, link, getElementById, etc. But any link generated by JS crashes. Code below. I already fixed errors on the console. <!DOCTYPE html> &l...
asked by 07.01.2017 / 16:11
1
answer

setInterval how to come back again after giving a clearInterval?

For study and knowledge issues, how could I clean a setInterval and then according to some event I can continue to run it again. 'use strict'; var imgAtual = 0; var arrImg = ['images/relatorio.jpg', 'images/clp.jpg', 'images/estudo-vi...
asked by 09.07.2015 / 01:59
1
answer

[Angular] [Bootstrap] -Effect collapse open and close with just one click

I'm wanting to perform a collapse effect the moment I change the item in the slider below. When I change the item, I get the service, various information reloading my child component (performed a ngFor). I would like to do the close and open eff...
asked by 13.12.2018 / 03:35
1
answer

Updating date and clock

I am creating a clock from an informed value, the problem is that the clock is not being updated. The other problem is that in the inverted view, the month is coming first than the day. What am I doing wrong? This "Today" value appears cor...
asked by 07.12.2018 / 13:20
2
answers

How to prevent an addEventListener from running multiple times in a function?

I will explain my situation. I have a function that displays a particular ad to the user in the application. After viewing this ad, I call an addEventListener, which passes a CLOSE event. After this CLOSE event is triggered, the user is rewarded...
asked by 12.11.2018 / 11:48
1
answer

How to call a function inside an addEventListener?

I would like to know if it is possible to call a function within a given event using addEventListener (). I have this function, which adds a reward to the database: //Função que adiciona uma recompensa ao banco de dados addReward(){...
asked by 07.11.2018 / 19:41
0
answers

How do I access a property of the Event element in Javascript?

I think it's a silly question, but from my beginner knowledge I'm beating a little. I'm building an application in ionic3, this uses typescript, however the plugin I'm working on uses pure javascript. In my console I can display all the properti...
asked by 29.10.2018 / 19:40
1
answer

chrome notification does not appear

Good evening, I'm running a code to submit a notification: if(Notification.permission === 'granted' && !this._active) { let n = new Notification(this._activeContact.name,{ icon : this._activeContact.photo, body : data...
asked by 05.11.2018 / 23:48