Top "Event-handling" questions

Event handling is a coding style about handling messages between a source and one or more subscribers.

Best practice for defining button events in android

I have a Layout defined in XML which consists of several Buttons. Currently I am doing this in the OnCreate …

android button event-handling
How to create change listener for variable?

Let's say I have some variable defined using the statementint someVariable;. While the code runs, the variable's value changes. How …

java variables event-handling
Assign on-click VBA function to a dynamically created button on Excel Userform

I'm creating buttons dynamically on an Excel userform with the following code: With Me.CurrentFrame.Controls.Add("Forms.CommandButton.1") .Caption = "…

excel vba event-handling userform
How to decode character pressed from jQuery's keydown()'s event handler

I need to figure out which character was typed into a text field from within the handler that is called …

jquery event-handling character keydown
Vanilla JavaScript version of jQuery .click

So maybe I'm just not looking in the right places but I can't find a good explanation of how to …

javascript jquery function event-handling
Handling "onclick" event with pure JavaScript

So this is really straight forward but I'm still fairly new to JavaScript and just found JSFiddle. I'm trying to …

javascript html events javascript-events event-handling
event.preventDefault() vs. return false (no jQuery)

I wondered if event.preventDefault() and return false were the same. I have done some tests, and it seems that …

javascript events event-handling dom-events preventdefault
How do you handle oncut, oncopy, and onpaste in jQuery?

The jQuery documentation says the library has built-in support for the following events: blur, focus, load, resize, scroll, unload, click, …

javascript jquery event-handling webkit
How to trigger function on value change?

I realise this question has to do with event-handling and i've read about Python event-handler a dispatchers, so either it …

python event-handling observer-pattern
C# dynamically add event handler

Hi i have a simple question. here is my code: XmlDocument xmlData = new XmlDocument(); xmlData.Load("xml.xml"); /* Load announcements …

c# events event-handling click