Questions tagged as 'eventos'

2
answers

How do I find the right source of an event in a complex object via JavaScript?

If I create a button ... <button id="btn" value="fui eu">Clique Aqui</button> the event ... document.getElementById("btn").onclick = function(e){ console.log("Quem clicou "+e.target.value) }; It works cool! But if I inse...
asked by 01.07.2016 / 04:38
2
answers

How to enable onclick after a jquery? [duplicate]

I have botões that are mounted dynamically via jquery , it happens that on the main page I have events of these botões , but since they do not exist yet at the time of loading the page the events are not loaded, I needed do...
asked by 04.11.2016 / 14:44
1
answer

Click event does not work in custom control

I created a button (UserControl), so far ok, but when I push a Click event on it, it does not work, I already tried with the MouseDown event, it also did not work. I do not think it's this, but this button has a Label that fills al...
asked by 21.10.2017 / 21:17
1
answer

Can Linden Scripting Language be considered a robust programming language?

LSL is an event-oriented programming language that is used within Second Life. Is it possible to consider it a programming language appropriate to the principles of Turing? Can developing interesting works (even within the Second Life environmen...
asked by 27.03.2017 / 17:46
2
answers

.onscroll is read only once

I'm having some problems with a .onscroll function: window.onscroll=function(){ if(document.documentElement.scrollTop>5){ menuPrincipal.style.backgroundColor = "rgba(0,0,0,1)"; }else{ menuPrincipal.style.backg...
asked by 28.03.2017 / 14:46
2
answers

Conflict on events with jquery

I have the following code: $('#abre-busca').click(function(event){ event.preventDefault(); $('#menu-principal-sub li').css({'opacity':0}); setTimeout(function(){ $('#menu-principal-sub li').css({'display':'none'});...
asked by 24.01.2017 / 16:32
1
answer

Should I keep the void on the link or can I leave it blank?

I've seen some links that contain the following syntax: <a href="javascript:;" id="el" onclick="acao()"> As far as I know, in some versions of IE this causes an error, so I ask if I should correct it by doing this: <a href="java...
asked by 28.03.2016 / 14:40
1
answer

Create tight button effect

I have the following component in React: import React, { Component } from 'react'; class Counter extends Component { constructor(props) { super(props); this.state = { count: parseInt(this.props.value) }; this.inc = t...
asked by 07.02.2018 / 21:52
2
answers

Return Javascript before finalizing processing

I have this method: var getCardToken = function () { var passa = true; var code = false; var acardNumber= $("#ContentPlaceHolder1_txtNmCartao").val(); var acvv= $("#ContentPlaceHolder1_txtCodigoDeSeguranca").val(); var aex...
asked by 14.02.2017 / 14:35
1
answer

How does the "hover" event behave on "touch" devices?

I'm developing a website to suit devices through Media Queries, however I wonder how certain events behave on touch devices. For example, how does the "hover" event behave on touch devices? And how do you replace it or adapt it to touch devices?...
asked by 23.06.2016 / 16:27