Most voted "events" questions
An event is a form of a class to provide notifications to customers in that class when something interesting happens to an object.
Learn more…166 questions
Sort by count of
-
2
votes3
answers1139
viewsHow to use the preventDefault function in an event click in an iframe?
I manipulate the iframe DOM as follows: (http://api.jquery.com/contents/) $('iframe').contents().find('a').função(); We usually use the preventDefault function like this: $( "a" ).click(function(…
-
2
votes1
answer1551
viewsGet self variables from another class and custom event
Read only comments in English, the question of self is in comments in the code, now the events will be down there. class LOL: class Champions: class MasterYi: def __init__(self): #YiAttributes…
-
2
votes1
answer159
viewsOutput of a method or event - C# / WPF
I am using a return to be able to leave the event textEstado_Validate. The problem is that when he leaves this event, he enters the textEstado_KeyDown. How can I make sure he doesn’t enter any other…
-
2
votes1
answer624
viewsHow 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…
-
2
votes1
answer240
viewsHow to disable/activate a dblclick Jquery event
Good morning guys, next, I’m wanting to do a quick CRUD mode, in editing, for example, ADM gives 2 clicks in the field to be edited, and the field becomes editable with 2 buttons to the right, one…
-
2
votes1
answer56
viewsDisabling Actionlink CLICK event
I have the following link in my view : @Html.ActionLink(" ", "Editar", new { id = item.ID }, new { @id = "btnEditar" }) And when loading the page, I have to block this link, according to the user’s…
-
2
votes1
answer70
viewsProblem running eventhandler
I have a class, which is executed under a button, it makes two select in a bank. apos, need to take these two data and make available to use in a second form, I’m trying to make EventHandler,…
-
2
votes2
answers1465
viewsHow do I locate the right origin 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)…
-
2
votes1
answer118
viewsReact.js Failure Manipulating Events
I’m starting to learn React.js by watching some videos, tutorials and documentation. However, I am having a problem with my code in Google Chrome appears like this: And in Firefox neither appears…
-
2
votes2
answers2141
viewsUSERFORM: What is the difference between Initialize and Activate routines?
What’s the difference in using Initialize and Activate as a Userform boot routine? Private Sub UserForm_Initialize() Private Sub UserForm_Activate()…
-
2
votes1
answer685
viewsWhat is the difference between stopPropagation and stopImmediatePropagation?
I realized a while ago that it was possible to use these two functions, but what would be the difference between them? What’s the difference between event.stopPropagation() and…
-
2
votes1
answer39
viewsTexblock - Make a text change event
I’ve seen the property of TextBlock does not have an event when changing text. Is there any way to do an event when the text is changed? * Remembering that it is for WPF and not Windows Forms. This…
-
2
votes1
answer43
viewsProblem with Eventlistener execution
if((document.getElementById("avatarZica").innerHTML == "")){ document.getElementById("avatarLegal").addEventListener("click", function(){ document.getElementById("avatarZica").innerHTML =…
-
2
votes1
answer614
viewsVBA events in Powerpoint
Hello, Is there any event in Powerpoint that allows the execution of a subroutine when selecting a slide. For example, the presentation is running... When you get to slide 120 it has to run a…
-
2
votes2
answers161
viewsDon’t events work with dynamic video?
I am using a page where content is dynamically loaded with ajax, the problem is that some events mainly video are not working as they should, for example: Man functions.js loaded when entering the…
-
2
votes1
answer115
viewsTrigger an event by pressing the 2x volume button?
I would like to trigger an event just by pressing the 2x volume button quickly. I have the following code, but it fires by pressing the button only once. How to make it fire only if pressed 2 times…
-
2
votes1
answer74
viewsHow do I do an event on the moon?
i want to know how to make an event, for example with the do to see if the user typed 'q' or 'o', as if it were in a addEventListener()
-
2
votes1
answer104
viewsHow to capture each key pressed in an entry with Tkinter?
Using the library Tkinter, i would like to perform a database search with each key pressed by the user in an entry, so that the result is automatically shown in a Listbox as I type. How can I do it…
-
2
votes1
answer321
viewsHow to make an event work with Xamarin.Forms and c#
When I declare an event on my Mainpage.xaml, I cannot do the implantation. In the visual says that the implantation was made successfully, but in my cell is all white and can not even navigate it,…
-
2
votes2
answers494
viewsHow to focus an object after closing the modal bootstrap 4.x?
I need to focus on an object after closing the modal bootstrap In bootstrap.dialog (old) I can do because I can program in the close event of the close button close, but the close of bootstrap 4 is…
-
2
votes1
answer33
viewsDDD - Modify more than one Aggregate in the same transaction
I’m a beginner in DDD and came across a situation involving the rule of not modifying more than 1 Aggregate in the same transaction, using Domain Events to resolve changes in other Regattas. (see…
-
2
votes0
answers34
viewsAnonymous class receiving a value through a function
Guys, here’s the thing, I just came across a situation that I didn’t quite understand how it works. Some objects such as the components in the Java Swing, or any type of frameworks objects that have…
-
1
votes0
answers49
viewsRemove message queue events
How can I prevent my class (Uiview) from receiving a ringtone event when there are still similar events in the message queue?
-
1
votes0
answers45
viewsEvent Scheduler cannot be activated
I have a website and created a simple ad expiration system through an SQL event, which runs from a given time and changes the ad state if this field dataexpiracao has been exceeded. This works well…
-
1
votes0
answers40
viewsDeploy Back Button in Universal Apps
Guys, I’m developing an application for Windows 10 and I have no idea how I implement a back button on a similar Pivot is in the Microsoft Weather app.…
-
1
votes1
answer241
viewsGrab value from a button inside 'Contentcontrol'
I have the following code on XAML: <Button Grid.Column="0" Grid.Row="1" x:Name="btnSete" Click="btn_Click"> <ContentControl> <Viewbox Margin="3"> <TextBlock Text="7"/>…
-
1
votes2
answers1778
viewsTrigger event when changing value of a textbox C#
Guys, I’m starting in c# and I’m having a problem. I’m working with Windows form. I’m using the Textchange event in a textbox, and with each key pressed in the field it triggers the event. I need…
-
1
votes1
answer112
viewsShould 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 a mistake, so I ask if I should…
-
1
votes1
answer341
viewsHow to create events dynamically? C#
I am doing a project of a statistical calculator, in it I made a method that creates tabs in a tab control and inside them a datagridview to display the different tables generated by the program. I…
-
1
votes2
answers33
viewsEvent listening in a lib
I’m building a lib but at the end of the process that it performs I need you to let me know that it’s over, how can I implement it? any ideas? In the project that uses the lib do so: Lib lib= new…
-
1
votes1
answer38
viewsHow to detect if the browser accepts xmlhttprequest events?
It is the following, gurizada, to make my object compatible with old browsers (if not swear me) I created a new problem. It is difficult to deviate the path according to the browser version because…
-
1
votes1
answer98
viewsIs Linden Scripting Language a robust programming language?
LSL is an event-oriented programming language that is used within Second Life. Is it possible to consider a programming language appropriate to Turing principles? The development of interesting…
-
1
votes2
answers109
views.onscroll is only read once
I’m having some problems with a function .onscroll: window.onscroll=function(){ if(document.documentElement.scrollTop>5){ menuPrincipal.style.backgroundColor = "rgba(0,0,0,1)"; }else{…
-
1
votes1
answer26
viewsHow to perform event with instantiated class in another method
I have a method that triggers a "Bandedgridview" : private void popula_retContrato(string contrato) { Classes.Datatable.Datatable_cliContrato dat_contrato = new…
-
1
votes2
answers589
viewsHow to activate onclick after a jquery?
I have some botões which are mounted dynamically via jquery, Turns out on the front page I have some events like that botões, but as they do not yet exist at the time of page loading the events are…
-
1
votes1
answer102
viewsClick event does not work in custom control
I created a button (Usercontrol), until then ok, but when I put an event Click in it, does not work, already tried with the event Mousedown, also did not work. I don’t think this is it, but this…
-
1
votes2
answers202
viewsEvent conflict 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…
-
1
votes1
answer68
viewsHow to execute a JS function before the so-called Codebehind method?
I have an Asp button <asp:button ID="cmdAvancarEndereco" runat="server" cssclass="btn btn-success btn-lg" text="Avançar >"> </asp:button> that has an event of the VB trailer in the…
-
1
votes2
answers300
viewsReturn Javascript before finishing processing
I have this method: var getCardToken = function () { var passa = true; var code = false; var acardNumber= $("#ContentPlaceHolder1_txtNmCartao").val(); var acvv=…
-
1
votes1
answer51
viewsTest Expression as user type
I’m having problems trying to test an expression as the user type. I have a TreeList where the user will enter a code, this code has the model: XXXX-XXXX-XXX I mean, it could be anything like:…
-
1
votes2
answers1376
viewsHow to simulate input script by Javascript (without Jquery)
I need to simulate an input as if someone was typing this includes the call of the events Keyup, Keydown, Keypress, Change etc... Javascript only even without Jquery.
-
1
votes1
answer65
viewsVariable value seems not to change according to loop
I have an array and am making a loop. Within this loop I take the total size of items from each array and mount an event onmouseover displaying a tooltip with these numbers. But when I hover the…
-
1
votes1
answer51
viewsgift only updates at the end of the event
Hello, I have a button with a click event, and when I click on it, I make an ajax request in a foreach. I would like to open a loading modal to run while the requirements are being made, but the…
-
1
votes0
answers17
viewsElements Events Rendered by the v-html Directive in Vue.js
How do I use an event in an element rendered by the v-html directive? The Vue (@event) events do not work.. I tried calling a function by onclick, but it is not found. <button onclick="test()"…
-
1
votes1
answer39
viewsRedirect via HTML5 Offline Online events
How to identify if HTML5 app identifies and redirects if offline or online? Ex: When opening the app if you are without internet loads a warning html and online redirects to a website. I found this…
-
1
votes1
answer620
viewsCreate button effect pressed
I have the following component in React: import React, { Component } from 'react'; class Counter extends Component { constructor(props) { super(props); this.state = { count:…
-
1
votes0
answers180
viewsSelect elements from all window.frames and apply events
How can I select and manipulate elements of all window.frames that are being generated by each SVG within a tag <object> that I put on the page ? I’m looking to add events click() in the…
-
1
votes0
answers51
viewsEvent click multiplying
I have a directory listing system that displays files and folders, when I click on an item, it displays a (single) menu that is already set on the page and can be used by all files. In this menu,…
-
1
votes1
answer50
viewsCalculate items from a table
I need to calculate table items and show in a given field of my page. Currently it is like this: <div class="pacientes"> <div class="pacientes-header"> <i class="fa…
-
1
votes1
answer62
viewsHow to force an event to occur from an extension method?
I am creating a C# application and I am using the interface INotifyPropertyChanged thus: public class Test: INotifyPropertyChanged { private int foo; public int Foo { get => foo; set =>…