event-handling

Mouse Over listener for FlexTable in GWT 1.7?

How do you add an event listener or handler to widgets in GWT 1.7? I know there are some questions alreayd about this on SO but it seems they are outdated. For example (ignoring the fact that there is a :hover in CSS) how do I add a Hover listener to a FlexTable for example? ...

obtaining the value of a select dropdown from within a function

I have a method of an object called update that generates an integer, and if it's different than the value of the region variable, assigns it to region. If the integer is the same as region then the user selects a value from a <select> dropdown menu. I'm trying to figure out how to get the value of the <select> into the function. <for...

JQuery Event.target problem in ie7

Trying to accses the class name from the event.target object. Works in FF, Safari, and Chrome. InternetExplorer 7 alerts "undefined". Any suggestions? <script type="text/javascript"> $("document").ready(function(){ $(".page").hide(); $(".page:first").show(); $("#navBar a").bind("click", linkClicked); }); function linkClicke...

Flex 4 Bubbling custom event

Hi, How to create a bubbling custom event in Flex 4? To create and expose a custom event in MXML, you need to declare it at the component that will dispatch the event with this line: <fx:Metadata> [Event(name="select", type="my.engine.events.SelectionEvent")] </fx:Metadata> This allows you to: <my:CustomComponent select="do...

How can I trace every event dispatched by a component or its descendants?

I am trying to determine what events I need to wait for in a test in order to ensure that my custom component has updated all of its properties. I was using VALUE_COMMIT, but for some reason that isn't working out for me. So, I want some easy mechanism for tracing every event dispatched from a component. Is this possible? ...

Can I flush the event stack within Firefox using Javascript?

I have a hierarchy of tags within my HTML which all contain onclick event handlers. The onclick is pushed onto the event stack from the leaf back through the root of the hierarchy. I only want to respond to the leaf onclick event. Can I flush the event stack rather than using a flag? For instance... <ul> <li onclick="nada(...

Handle tilt left / right in WPF

How can I handle tilt left or tilt right mouse event in WPF? ...

java static vs non-static using this and event handlers

Hello, I'm trying to learn about java's event handlers and keep getting errors with type type (static/non-static) methods I create. Some code I'm trying to write looks like: import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; public class Main extends JFrame implements ActionListener{ static priva...

Adding and removing events in ASP.NET

I've recently discovered this technique in my ASP.NET code base that I maintain. What does it do and how would I use it? And Maybe more importantly, would this work at all given ASP.NET is using simulated-page-life-cycle-events? public event EventHandler CancelEvent { add { cancelButton.Click += value; } remove ...

What is the way to minimize number of similar event handlers?

A WPF window should have hundreds of objects (rows of rectangles) and mouse clicking on each of them should fire similar actions. These actions differ only by several parameters (say "No. of Row" and "No. of position in a row"). Should I have hundreds of almost the same event handlers or how I could optimize my code? Please give me som...

How to correctly pass some custom parameters to event handlers in WPF?

What could be a correct way to assign parameters to objects in WPF window (objects as simple as rectangles) and pass them to event handlers on mouse clicks? Thank you. ...

How do I get a list of event handlers with nonstandard names in my code?

I'm in the middle of performing a large refactoring which will involve renaming a lot of events. This will leave our code with a lot of code like this: thing.NewEventName += thing_OldEventName; How do I get a list of event handlers with nonstandard names in my code? Should I be thinking about a regex search, or should I be looking a...

Recursive SharePoint Event Handers

I've got an Event Receiver for when a list item is Updated (ItemUpdated and not ItemUpdating). Inside the receiver I then update the list item again. This naturally sets off some recursive event calls as I would expect. Putting a break point at the start of the event handler, I count it stoppping in the event 10 times and then it just fi...

How to add event handler to AJAX Control Toolkit Extenders

I have been trying to add a toggle button using the ToggleButtonExtender and the MutuallyExclusiveCheckboxExtender. However, I cannot add an additional client side event handler for the click event of the Extender created button. I tried to add a BehaviorId that I access in the onLoad of the Javascript via the $find('') function. However...

Trigger event of auto popup list selection via javascript

I have previously entered value 1111, 1222, and 1333 into a HTML text input. Now if I enter 1 to the text input, it should popup a list with value 1111, 1222, and 1333 as available options. How do you trigger an event when any one of these options is selected? I have a javascript function that performs a calculation on values entered in...

How to raise a global event in dojo?

Hello, I am trying to raise an event to all of the widgets that catch it. I have an authentication widget and other widgets that depeand on the fact that the user is logged in. I would like to raise an event to all of those widgets when a user is logged in without connecting them manually. How can it be done? Thanks in advnace, Omer. ...

How to catch events in multi-threaded application that can be watched by main thread?

I have a console application (VB.NET). When it is started, it spawns worker threads to find work in the database and do the task, then look for the next task (A workflow basically). The problem that I have is that I have my Event Handler in the main thread that spawns the worker threads. Those workers, if they error, raise an event to a...

adding Scrollbar listener to JOGL project

As the title suggests I am trying to add an event listener to a JOGL project to no avail. Any help would be much appreciated ...

Handling scroll event on listview in c#

I have a listview that generates thumbnail using a backgroundworker. When the listview is being scrolled i want to pause the backgroundworker and get the current value of the scrolled area, when the user stopped scrolling the listview, resume the backgroundworker starting from the item according to the value of the scrolled area. Is it...

Mouse click location on an image

I have a GWT container with some stuff in it and an image which is added a clickhandler. What I try to do is to get the exact mouse event's X and Y coordinates relative to the image. I saw the post here but this is not what I want. As far as I can see, I have option like getting the image absolute location and event location but this ...