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
-
15
votes3
answers361
viewsIs it correct to call a method, and pass your null parameters?
For example, I have the event of click of a button calling the method below: //Evento this.serviçoToolStripMenuItem1.Click += new System.EventHandler(this.Nivel_Serv_Click); //Metodo private void…
-
14
votes2
answers2365
viewsSimulate javascript keystroke events
I’m looking for a way to simulate keypress of shift + 1 via javascript to create an exclamation mark ! for a series of tests (specs) in a framework in which I am involved. I have used a framework…
-
14
votes2
answers438
viewsWhat are the possible values in Document.readyState?
I noticed in the documentation of MDN, as in the documentation of W3 (not to be confused with w3schools) loading document still loading Interactive the document has already completed loading and the…
-
13
votes5
answers704
viewsEvent is not tied to the element
I have an event at jQuery (version 1.5) as follows:: $('#refresh_abertos').click(function(){ // aqui o código irrelevante nesta pergunta }); Turns out my element #refresh_abertos is only loaded…
-
12
votes1
answer193
viewsWhen is it useful to capture DOM events?
The events of the DOM traverse the document tree up to his target, with a phase of catching and a phase of bubbling. The default behavior when creating a Listener with addEventListener is to treat…
-
11
votes1
answer99
viewsHow to create a "Glass pane" in Javascript?
I’m trying to create a "Glass malfunction" in Javascript, similar to supported by Java. The goal is to offer a kind of interactive help to the user, where information about each element is…
-
11
votes1
answer1160
viewsWhat’s the difference between Vent and Delegate?
I see how it works delegate and event, but I saw no use of event. For example: public delegate void ChangedEventHandler(object sender, BaseEventArgs e); public ChangedEventHandler Changed; The code…
-
10
votes2
answers841
viewsWhat is an event?
Much is heard of events: Trigger events; Schedule events; Trigger events... Although much is found on the internet, none brings a concrete definition of what is really an event in programming. So…
-
9
votes3
answers557
viewsSee if a video has been paused to upload?
I’m using the shaka-player to play a Dash stream from a Nimble server, but I’ve been reading that event waiting is not always the most reliable option, and in fact when the video stops to load the…
-
8
votes2
answers268
viewsShoot event only once
I’m doing an interface in Visual Studio 2015, how do I hold an event just once? For example: private void textBox5_Click(object sender, EventArgs e) { textBox5.ForeColor = Color.Black;…
-
7
votes1
answer716
viewsWhat are the right practices to handle events in PHP?
I created some classes and an interface to manipulate events for a small MVC application. My intention is to implement the Observer standard, but I do not know if it agrees, since I still confuse…
-
7
votes2
answers439
viewsJquery - Problem with events Mouseenter() & Mouseleave()
Situation: I have a menu, and I need that when an event occurs hover, he displays a series of information from the respective menu When the mouse goes to another menu, the displayed information has…
-
7
votes2
answers1998
viewsHow to close a Jframe using keyboard events?
I have a Jframe that I want to close when I press the Esc key... Well, I did that: public Cadastro() { addKeyListener(this); And then that: public void keyTyped(KeyEvent evt) { if(evt.getKeyCode()…
-
7
votes1
answer2081
views -
7
votes1
answer6487
viewsHow does a function run automatically without being called?
I can create a Javascript function and call it as follows: funcaoTeste = function() { console.log('Ola funcao teste'); }; funcaoTeste(); To perform the function I need to call her funcaoTeste(),…
-
6
votes2
answers201
viewsError in keyboard events in Allegro
I’m doing a work of my course using Allegro as indicated. I need to capture the events of loose keystrokes on the keyboard, so I used the following: al_wait_for_event(evento, &ev); if(ev.type ==…
-
6
votes1
answer986
viewsWhat is an event handler?
I have read what is an event, but then I saw that there are event handlers, Event Handler. What is a Event Handler? What they’re for and where they’re used for? Exist in all languages?…
-
5
votes2
answers1050
viewsEvent that identifies when the browser is resized.
Is there any event javascript that identifies when the browser resizes the page? I’m having problems with resizing the page with a window FancyBox, which loses its dynamic changes and returns the…
-
5
votes4
answers661
viewsHow do I execute a method at the end of each method in my class C#
He had a father class and another daughter and would like to perform a certain method, as an event, always at the end of each call of the method of the daughter classes. How can I do?
-
5
votes1
answer2249
viewsHow to apply a Loading effect before loading the page?
Is there any way to use Javascript/jQuery to measure the loading of a page and display an image. GIF until it is loaded? I see examples, like Preloader CSS3, which use only CSS3, which makes me…
-
5
votes3
answers213
viewsWhy don’t I need to pass parameters to that function?
I would like to know how the function passage works as a parameter in JS, I am starting in the language now and I needed to make a call to EventListenner…
-
5
votes1
answer129
viewsMultiple component events in one method
I have several events of my textbox, the problem is that I have about 30 in my form. I wonder if there is any way for me to improve my code, reduce it by creating only one method to control all…
-
5
votes2
answers463
viewsToggle text and class of a link when clicked - jQuery
I’m trying to make the delegation an event click There is a link within a table, how this jsFiddle example shows: The result obtained as you can see, is: By clicking on the link "Activate", the…
-
5
votes3
answers219
views -
4
votes3
answers2309
viewsUpdate secondary form without changing primary focus
I developed a program in Delhi that has two Forms, one with a grid and another with a map, the operation is simple: when clicking on the grid the position of the vehicle is updated on the map, the…
-
4
votes1
answer121
viewsHow to create an Event on a Webservice
I have a Webservice that has a method that records a new entry record and updates the list that contains those entries. Now I need the customer to sign up for a Webservice event so that whenever a…
-
4
votes2
answers170
viewsHow can I create events in a safer way?
I am creating events according to the code below, however it seems to be a somewhat dangerous way, since if there is a cancellation of the event it will accumulate every "shot" of the event, that…
-
4
votes1
answer368
viewsDifference between methods to close Jframe and Jdialog after keyboard event
I need to implement in a desktop application built using swing, a way for the JFrame main close the application when user click on ESC, and the JDialogs daughters of this JFrame, close only…
-
4
votes2
answers111
viewsMobile Swipe: Hangs when moving your finger on the screen quickly
Hello, I’m studying Touch Events and making an example of a page with full sections that passes one by one on the screen. I did the CSS, HTML and Script, the basic works... But when I test on the…
-
4
votes5
answers1315
viewsJoin two events that have the same function
I am new to programming and I was creating an html code, in which I am calling JS functions in my own input. Anyway, I have this excerpt, in my input code: <input type="text"…
-
3
votes1
answer401
viewsWindowsphone - How does one event "inside" another?
I defined the visibility of my combobox as Collapsed, for visual reasons and since Appbarbutton is more presentable. I want to know if it is possible to call the combobox event by firing an…
-
3
votes2
answers99
viewsEvents with namespace
I am studying about events in javascript, without using jQuery, and I came up with a question: how can I add / remove events with namespace?
-
3
votes1
answer2862
viewsJquery beforeunload is called when I click on link
I want to run a function only when the user closes the browser, but when I click on a link the event is triggered anyway. $(window).bind('beforeunload', function(e) { $.ajax({ url:…
-
3
votes2
answers446
viewsJavascript on iOS: Avoid click events by scrolling iPhone/iPad
Setting: I have a table and on the Desktop I must keep double click to access the content of each table item. On mobile devices like tablet and smart phone Double click does not work and I need to…
-
3
votes1
answer78
viewsWhen do I have to unsubscribe (unsubscribe) events?
One question on the same subject has a reply what it says: You don’t have to desubscribe from an Event when the instance that is subscribing has the same Scope as the instance that is being…
-
3
votes2
answers145
viewsdataGridView1_CellDoubleClick does not work!
I have the simplest function in the world and I can’t make it work. By giving 2 clicks on any cell of my datagridview I want to display the message "1" but it’s not working! What’s wrong? Look at my…
-
3
votes1
answer95
viewsWhat is the difference between Observables and common Javascript events?
I have seen a lot of people talking about Observables and about Pattern Observer in general, mainly from the Rx JS library. What is the difference between Observers and the events we usually treat,…
-
3
votes2
answers4105
views.addeventlistener() is not a function
I’m building a script for modals, but an unexpected error happened, the console says: Uncaught Typeerror: loginBtn.addeventlistener is not a Function`", "at modaisGeral (index.html:233)" and "at…
-
3
votes1
answer370
viewsFocus event in fxml
In the fxml file of a GUI we can direct the code to a method when a particular event occurs. For action events, it would be something like this: <Button fx:id="btn1" onAction="#actionPause" />…
-
3
votes1
answer51
viewsJquery keyboard event does not respond
I made this script to move a div by pressing the arrow keys on the keyboard. The right and down key are working perfectly, however, the top and left are not, the code ta the same as the others.…
-
3
votes2
answers511
viewsHow to activate an event from a class change
I have the following problem, I made navigation arrows for some elements and depending on the active element, I need to change the CSS of another element. In the example below I would need to change…
-
3
votes1
answer454
viewsHow to cancel an INSERT event on Trigger?
Hello, I created a Rigger that every time the user performs a sale is made the debit in the quantity of items, but if I do not take care the quantity can be negative because the user can sell more…
-
3
votes1
answer923
viewsHow to Create Event in MYSQL?
I’m learning now about create Event in mysql I’m creating a simple test Event, but it’s not working, it appears in Events, but the table is not updated: CREATE EVENT teste ON SCHEDULE AT…
-
3
votes1
answer114
viewsDetect date change in Windows [C#]
I would like to know: How can I detect and display a warning to the user through a MessageBox, whenever my application is running (is maximized or minimized) and the date of the computer is changed?…
-
3
votes2
answers88
viewsAssign once control event to event method
I’m making a sequence of screens in the form, I have a main screen that loads other screens, the main screen is the Form1, and the subtleties will be the ones I will add on the main screen through…
-
2
votes1
answer1087
viewsOpen word file through the . jar
I have a calculator in . jar working perfectly ! My questions are: In the menu I have the "Source code" button and I would like to open a Word document with the source code of the program. I managed…
-
2
votes2
answers2344
viewsHow to create a robot using Java requests?
I have been interested in making robots to perform small repetitive and boring tasks. I use a class of Java called Robot. However, I think that the way I am doing it is not the most appropriate,…
-
2
votes1
answer63
viewsTrigger events remotely
What is the best way to trigger/receive an event remotely on C#? Example: When clicking a button on the PC1, perform certain task on the other PC’s that have the app. I thought of 3 solutions:…
-
2
votes1
answer354
viewsCancel Javascript/Jquery event queue
So, I have a loop that will awaken some 10 functions that are AJAX requests, in the functions, which encompasses AJAX requests is a setTimeout(), what happens is, the loop is done on the hour, and…
-
2
votes1
answer803
viewsClick event. Display message in current form and open new form
I need to make the event click a button located on a form, open another modal form. While the other form is loaded, I need to display a message to the user in a Statuslabel of a Statusstrip. (an msg…