events

How Do I Get an Object to Listen For its Property's Event?

I have an object of type SomeObject, with an event StatusChanged. I have a property in SomeObject of type Status also with an event StatusChanged. Within a private function in SomeObject, I would like to run some logic (including firing the StatusChanged event) in the event that Status has fired its StatusChanged event. I have been a...

AS3 - Dispatch an Event DOWN the display list (instead of up)

Consider this (psuedo-code): var country = new Country(); addChild(country); var state = new State(); country.addChild(state); var city = new City(); state.addChild(city); I can dispatch events from the city up to the country like this (in the City class): dispatchEvent(new CustomEvent(CustomEvent.WHATEVER)); Because events bubbl...

jqGrid event not activated or triggered on Row Select

Hello all, I've got a jqGrid running on my jsp page, and I love every features of this grid so far. Now I try to explore the event feature. I am trying to attach a function to onSelectRow event of the grid, but nothing works when i click on any row of the grid. Can you tell me why? I am using jqGrid 3.6. Do I need to reference any oth...

JTable onchange event

Is there any way to detect a cell selection change in a JTable? I've found documentation for detecting a row change using ListSelectionListener but it doesn't seam to work when changing selection on the same row. I'm using JTable to render a simple schedule. Maybe I should use a different component? ...

handling activeX-events in ax 2009

hi folks, i've got an activeX component with several events. debugging this dll in .net proofs, that the events are raised and can be breakpointed ( is this a word? ;) ) registering this dll via regasm /codebase works and i can add this activeX in ax on a form. the events are listed in the activeX-explorer in ax. but it seems, that i'v...

Should events be raised in new Threads to not block current work?

Hello, I'm currently designing an assembly that will be used by third parties. One of the classes has a long process of TCP connections and it informs about its process using events. For example ''# Do stuff that takes some time RaiseEvent CompletedFirstPartEvent() ''# Do stuff that takes some time RaiseEvent CompletedSecondPartEvent()...

MVP Presenter and Events

Hi, I have three views, each of which is is implemented in a user control. This all works fine when they are alone. When an item is selected in view one I need to notify the other two views that the item that they are looking at has changed. I have looked at various ways of handling this but the one that keeps coming back as the bette...

If an onfocus event handler is added with attachEvent, how can I access it?

Background: I'm writing a script (in VBA, if that matters) to input data into a web-based system. Some of the system's validation is only run when a field is focused, so I've been calling .Focus on the fields in VBA to force it to run. But that steals the systemwide focus; rather annoying if I am doing anything else while the job is run...

Event.INIT doesn't fire through callback function...

I'm having issue to init a menu item inside of CustomEvent. It's weird I can handle any mouseEvents (click, over or out) without any problem. But NOT with Event.INIT or Event.COMPLETE. For some reason, It doesn't fire... Does anyone know is there a better way to do that? My code: private function handleMenu(event:CustomEventCenter):vo...

Jquery mouse one event with mouseover (fadein and fadeout)

So i'm trying to make the div content1 fadein when I go with my mouse over the div logo1, content1 should fadeout when my mouse isn't over logo1 oh and the content div's have visibility: hidden on the css. Same goes for logo2 3 and 4 I've tried this code but it didn't work for me (I didn't add fadeout because I dont know where to add it...

Catching keyboard events in a Cocoa app WebView

I have a Cocoa app that embeds a WebView. I'd like to intercept a keyboard shortcut so that I may perform an action in the WebView. I do not want to implement a menu item for this action. In fact, ideally I only want this shortcut to apply when the user is in a textarea box in the WebView. How do I catch the keyboard shortcut so that I...

Event handling in Ruby

Hello, i want to be able to do event handling with ruby. I know there is no native way to do this, but i found a solution here in stackoverflow: class EventBase def initialize @listeners = Hash.new end def listen_event(name, *func, &p) if p (@listeners[name] ||= Array.new) << p else ...

How to manipulate the value in Listview itemtemplate, returned by sqldatasource?

I have a listview and a label in the ItemTemplate, i have set the text to <asp:Label id="GreenDate" runat="server" Text='<%# Eval("NewsDate") %>'></asp:Label> but i want to manipulate the value returned by datasource,which is Eval("NewsDate") and show the new value in the label. in which event i can access this value and how? ...

Custom Events in Magento

How can I add a custom event in Magento like "done_some_thing"? I am coding for a shopping cart which gives a certain % discount for the customers who comes through a particular link, and want to show the same in both Cart and Checkout Page ...

jQuery - How can I temporarily disable the onclick event listener after the event has been fired?

How can I temporarily disable the onclick event listener, (jQuery preferred), after the event has been fired? Example: After the user clicks on the button and fires this function below, I want to disabled the onclick listener, therefore not firing the same command to my django view. $(".btnRemove").click(function(){ $(this).attr("s...

WPF - simulate mouse events on off-screen rendered Grid

I'm rendering a WPF grid with multiple elements (buttons, textbox, ...) to a bitmap which is then used as a texture for a 3D surface in a Direct3D scene. For user interaction I create a 3D ray from the 2D mouse cursor position into the 3D scene finding the intersection point with the gui surface. So I know where the user has clicked on t...

How can I know when a form is shown?

Hello. I'm developing a Windows Mobile 5.0 or above with .Net Compact Framework 2.0 SP2 and C#. I have a WinForm that only has a Custom Control. I want to call a method of that custom control when the form has finished loading and display the control. Now I using Activated Event, but these event is thrown everytime when I close a mess...

jquery document body one click event

Hello, Could somebody help me with this? : I have a button that when clicked it shows a certain div. This div has several descendants. Now, what I want is that when I click somewhere else in the document, but not in any of those descendants that this div disappears. what I thought was to use the not selector like this: $("#button").cl...

Textbox Event Handling

I have a form that has textboxes that display various code values. If I click within one of the textboxes that displays a code, how do i show the description value from the listview subitem into an adjacent textbox? The user clicks on a button to select a list of codes from a Listview that displays both the code and description values fr...

Capture clicks in Flash adds

I am trying to track the exit clicks of the users in the adds in my page. Can I somehow capture with Javascript the click event of a user in a external Flash add I have inserted in my page? I have been searching and trying by myself, but it seems like the flash object inside of my page is a black box, where I could not access anyway. ...