events

How to set an acknowlegement before JVM shuts down?

How to set an acknowledgement (like email or SMS) before JVM shuts down (this is on the server side, not client)? ...

jQuery - overwriting events?

Hi all, My page contains some drag-able div elements ( not jQuery UI dragable ). Now we want to add a new feature: the user should be able to select more than one div at a time and drag these div elements without triggering the previous bound events. Now here is my problem: Is it possible to disable the mousedown, mousemove and mouse...

Is there a way to trigger an event with jQuery (or the regular DOM API) without invoking any handlers

I want to trigger a form submit, but not have my usual handlers for that form's submit be called. I could just unregister any listeners, before calling, but that feels ugly (and specific to form submits since they're the only type of event that I can guarantee will be the last to occur). ...

wxPython wx.KeyEvent GetKeyCode()

All, I am writing a wxPython app in which I want (at the moment) to print the name of the key that was pressed. I have a dictionary that maps, for example, the WXK_BACK to "back" which seems a sane. However, which file must I import (include?) to get the definition of WXK_BACK ? I have the import wx statement, but am unsure which spe...

binding event handlers in prototype and still maintain reference to element

I want to be able to use a bound event handler in prototype and retain my "this" context. But doing so seems to destroy the convenient default binding that prototype gives event handlers. From the docs: The handler's context (this value) is set to the extended element being observed (even if the event actually occurred on a descend...

How can I capture _all_ mouse events in a widget descended from a Qt widget in PyQt?

In particular, I'm inheriting from QCalendarWidget and I want to override the mousePressEvent method to filter what dates are allowed to be selected (disjoint set, not a simple range). But when I override the method, it doesn't catch any events that are going to child widgets inside the calendar. How can I do this? ...

jQuery - keydown() on div not working in Firefox

I have the following example code, which should pop up an alert when the div is in focus and a key is pressed. This does what I expect in IE 7, but not in Firefox 3.5.5. What am I doing wrong? <html> <head> <title>JS test</title> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascri...

ruby on rails on click events

I am so sorry if this question seems too easy but I can't seem to find it anywhere. I am creating a ruby in steel project. I have created a html.erb and rb file in a vs project (ruby on rails). My problem is the following: In my html1.erb file I have created a text box and button: <p> <input erb:blockvar="erb:f" erb:method="erb::myName...

How to capture mousemove events beneath child controls.

Hi, i am trying to handle a mouseclick event on a particular form that should fire if the mouse cursor falls between a set of coordinates - lets say a square. I understand that if i had an empty form i could simply tie in to the mousemove event and off i go. But in reality there may be up to 10 different overlapping controls and in my t...

How to call javascript on diff events?

Hi to All, I have a javascript as <script type="text/JavaScript"> function CalculateDistance (plat1, plon1, plat2, plon2) { try { : : var d = R * c; return d; } catch (error) { alert(error); } } </script> I want to call...

Moving event notification to another thread.

I'm working with a 3rd-party library that provides access to a database. In the database connection object, there is an event called Updated, which fires whenever the database is modified. I'm running into a snag when my delegate wants to read from the database. It looks like the connection has a ReaderWriterLock protecting the databa...

Wpf Panel Background problem

When i don't set background of my panel i can not get mouse events on that. why this behaviour? I am able to get mouse events on panel by setting Background to Transparent which is null by default. Whats the difference between Background null and Transparent? ...

Set different SelectionChanged Event Handler for a DataGrid inside another DataGrid

I have a DataGrid (WPF Toolkit) with a custom combobox like edit template of a cell. This custom combo box have another datagrid like popup. I have this problem: In the window constructor I assign the event handler to the master datagrid with this statement this.dgDoc.SelectionChanged += new SelectionChangedEventHandler(dgDoc_Selectio...

what is the difference between onClick and mouseClick?

wondering what is the major difference between these two: onClick and mouseClick.. ...

Watching an ArrayCollection's length property in AS3/Flex

I would like to put an eventListener on an ArrayCollection's length proprety, but I don't know how to go about this. I want to do this because I only want code to execute when a certain number of things are in a certain ArrayCollection. I want Flex to wait to execute this code over the next object until that length property drops back t...

YUI onDragDrop multiple listeners

Hi Folks, I was wondering if anyone was aware of an example that shows multiple listeners to the YUI DDProxy, DD, or DDTarget onDragDrop event. Currently I have a hacked up example going. I'm using the http://developer.yahoo.com/yui/examples/datatable/dt_ddrows.html'>DataTable Reorder Rows example. I've modified it into several js class...

How to catch scrolling event in DBGrid in Delphi

I have a DBGrid, I need to run some code, each time the horizontal scrollbar is used. I couldn't find such event in DBGrid. Can you advise something? ...

Add event handler for WCF concrete class instance

Is it possible to retrieve the concrete class instance from the ServiceHost, so that I can add an event handler for the events of that class? Public Class Widget Public Event MessageCalled(sender as object, e as EventArgs) Public Sub DoSomething() '-- do a whole lot of stuff --' RaiseEvent MessageCalled...

Driving events across custom TCP Long-Polling server

I’m trying to write a custom TCP based long polling server that will serve as a go-between for other TCP connections that require more persistence than a mobile phone can provide. The way I’m trying to do it is writing an asynchronous TCP server in C# and a matching TCP Client also written in C#. The way that long polling works (as far...

jQyery bind on ajax load() event

Hi guys. I have a page which display multiple blocks with results details. Inside each block I have some tags with thichbox jQuery plugin attached( class="thichbox"). http://jquery.com/demo/thickbox/ here is an example of one kind of ampersant tag: <a class="thickbox" title="Please Sign In" href="userloginredir.php?height=220&width=3...