Event handling is a coding style about handling messages between a source and one or more subscribers. A point listener in the source provide a way which subscribed code can consume messages raised from the source.

learn more… | top users | synonyms (4)

2
votes
2answers
42 views

Removing all methods from Eventhandler

Before you start asking why in the world I want to do this, bear in mind I don't have much experience with Windows.Forms and at this point I am just experimenting. Let's say I form with 5 buttons. ...
0
votes
1answer
18 views

How to deal with multiple EventHandlers to AsyncQuery

I am working on Windows Phone 8 project. In my project there are 10 Events with 10 EventHandlers ReverseGeocodeQuery_QueryCompleted (1 to 10). When first EventHandler is completed it turn on second ...
0
votes
0answers
28 views

Disable Visual Studio automatic id renaming

How do you disable the annoying automatic renaming of id in Visual Studio when you copy paste? For example, if you have <p id="myID"></p> and you copy and paste it in the same file, ...
0
votes
3answers
65 views

JQuery on() usage and overwriting

I am working on a mobile app, and I am currently using the on() method to implement a swipe-to-delete feature (I understand that there are libraries that would allow me to do this, and am open to any ...
0
votes
1answer
37 views

CSS hide cursor without firing JavaScript mousemove event

Trying to hide the cusor in a video container along with some controls. I have a small JavaScript function that adds a class to the container on mousemove to show the controls and I looped in some css ...
0
votes
3answers
34 views

How to have the Button react on the Bindings Property Change change in WPF?

I have a control that has a DataContext being loaded and based on it I create a bunch of Buttons. I would like to have the Button react on a change to the bound objects change <Button ...
4
votes
3answers
61 views

best way to attach an event handler to element in jQuery by performance

What is the best way to attach an event handler to element in jQuery by performance? All elements that I want to attach an event handler to them, are static and we don't have any generated and ...
-1
votes
0answers
13 views

how to get a variable in two EventHandlers

I create a variable like this : private Guid newID=Guid.newGuid(); Then, I want to call this one in two eventhandlers such as item1_click() and item2_Click(). How can get this variable in two that ...
1
vote
5answers
61 views

Passing variables to timer event in a class

I have a method in a class that receives and returns multiple parameters. I need to use a timed event to execute some code using those parameters. I have arranged this simplified code: class Motor { ...
2
votes
3answers
52 views

How to detect either event trigger?

I have a input box with id #input. This input box will activate a function when is blur or enter button is press. How can I combine the two events as one? $('#input') .keypress(function(e)) ...
0
votes
1answer
15 views

jQuery assign event handler with timeouts per element

Interesting one for me. I've got a video player whos controls are showed on hover. Initially, I did this with CSS but had to change strategy to javascript to play nice with browsers fullscreen api ...
1
vote
1answer
20 views

Event handling with simple dependency injection and decoupling

I'm developing a MVC framework for educational purposes. Now I'm stuck with how should I handle events in my framework. The closest answer I was looking for was Adding events to an interface / ...
0
votes
0answers
28 views

Adding custom ItemListener with EventHandler

I would like to add an ItemListener to a JComboBox, but with using the nifty EventHandler. Something like this: comboBox.addItemListener(new ItemListener() { @Override public void ...
0
votes
0answers
4 views

Firefox GoogleVisualization Table Clickevent bug

I'm working with a Google Visualization Table with an Event-handler. It works great in Safari, Chrome and IE. But it's bugged in Firefox. The problem is that, when working in Firefox, the row-data I ...
3
votes
1answer
49 views

Should I use a central event bus with backbone.js?

I am currently working on my first backbone.js app. The concept of events is quite familiar to me but I am in question if I should use a central event dispatcher or not. Generally I see these two ...

1 2 3 4 5 308
15 30 50 per page