events

Using regex with jQuery binding of custom events?

Is it possible to use a regex in jQuery's bind method for custom events. Something like... $(selector).bind(myRegex, function(){}) ...

jquery ajax events called on every element in the page when only targeted at one element

So, you have a page: <html><head> <script type="text/javascript" src="jquery.1.3.2.js"></script> <script type="text/javascript"> $(function() { var onajax = function(e) { alert($(e.target).text()); }; var onclick = function(e) { $(e.target).load('foobar'); }; $('#a,#b').ajaxStart(onajax).click(onclick); }); </script></head><body> ...

Flash AS3 Help detecting a loaded file

Hello, I'm trying to load an external and local XML file to read its data, but I don't really know how to detect when the file has been loaded, I'm just able to open the broser window, here is what I have done package { import flash.display.Sprite; import flash.events.; import flash.net.; import flash.net.URLRequest; pu...

Any EventBroker/Aggregator for winforms

hopefully there are some working samples else any place where to start looking Ideally should be able to able to execute methods on Background/Foreground method as marked/attributed ...

Event raise-handling in Java

Hi All, How to raise custom events and handle in Java. Some links will be helpful. Thanks. ...

how to handle an event on Django event Calendar

Hi, Is there a way to have a django Clandar Event, i have a Event model, and i want to display the event information on the calendar in order to know if the organiser is free or busy on the date event. Many Thanks. I didn't find the Django Calendar. Where can i find some good example please ? Many thanks ...

How to wait on events on a second thread

Consider the following code in a class called Worker FileSystemWatcher watcher = new FileSystemWatcher(); public void Run() { watcher.Path = @"c:\queue"; watcher.Created += new FileSystemEventHandler(watcher_Created); watcher.EnableRaisingEvents = true; } Now here's what I would like to do wih t...

Is there anyway to know that user leaving a page with asp.net?

Hi there, My question is a little bit tricky ... at least i think. Maybe not... anyway. I want to know if there's any way to know if the user is leaving the page. Whatever if he clicks "Previous button", closing the window or ckicking on a link on my website. If my memory's still good, I think it's possible with Javascript. But in my ca...

Return a value from a Event -- is there a Good Practice for this?

I am doing a small multithreaded app that uses asynchronous TCP sockets, but I will get to the point: I am using a custom event to read a value from a form and the delegate used by the event returns a string when finished. My question here is: is that correct? is it Ok to return values from the events? or is there a best way to do this?...

Flex Datagrid Query

Below is part of my code interacting with data grid...! This lists the children of the particular node if i click on it after refreshing the datagrid.. But if i click on an empty space of the datagrid i get an error saying "ReferenceError: Error #1069: Property data not found on mx.controls.listClasses.ListBaseContentHolder and ther...

Advantages of .NET Rx over classic events?

.NET 4.0 beta 2 has introduced the IObservable and IObserver interfaces. What are the advantages compared to classic .NET events? Doesn't this solve the same problem? ...

Which event to handle in HttpModule for setting the current principal when dealing with providers?

I am facing a problem where I have to integrate with a custom HttpModule where the principal and identity are set on the current thread so that HttpContext.Current.User contains these. However I get the feeling that the eventhandler they used (PostAcquireRequestState) is way too late. Which is the best event to handle before the initial...

YUI 3 programmatically fire change event

Hi all, I was wondering how to programmatically fire a change event with YUI3 -- I added a change listener to one select box node: Y.get('#mynode').on('change', function(e) { Alert(“changed me”); }); and somewhere else in the script want to fire that event. It works, of course, when a user changes the select box value in the browser...

Detect row selection in wxGrid

I would like to be warned when user selects the whole row in a wxGrid but I do not see an event that handles this.What is the best way to do it? ...

What is LINQ to events a.k.a RX Framework?

What is LINQ to events a.k.a RX Framework aka the Reactive Extensions in .NET 4.0 (but also available as backported versions)? In other words, what is all the stuff in System.Reactive.dll for? ...

How can I track when multiple events have occured?

I'm writing a plug-in for a program where I need to track when native objects are added, removed, and edited in the active document. The API has events that are fired when the document is edited. However, the program does not track when the native objects actually change. Instead an object changing is treated as the object being deleted ...

How can I tell when the last of series of events are envoked?

I'm writing a plug-in for a program where I have a custom user control with a TreeView. When the user selects or deselects objects in the native program ObjectSelected and ObjectDeselected events are evoked. When these events are fired my program will select or deselect corresponding nodes in the tree view. The problem is this is a grap...

Is there any onDocumentChange event?

Is there any event in Internet Explorer, that is fired whenever DOM is changed? For example: document.attachEvent("ondocumentchange", function () { alert("you've just changed DOM!"); }); And when I execute: document.appendChild(document.createElement("img")); Window with text "you've just changed DOM!" appears. I try to emulat...

NSColorWell subclass not getting mouseMoved events

I'm trying to implement a color picker in my Cocoa app. (Yes, I know about NSColorPanel. I don't like it very much. The point of rolling my own is that I think I can do better.) Here's a picture of the current state of my picker. The wells surrounding the color wheel are NSColorWell subclasses. They are instantiated programmatically ...

Detect programmatical changes on a html select box.

Is there a way to make a HTML select element call a function each time its selection has been changed programmatically? Both IE and FF won't fire 'onchange' when the current selection in a select box is modified with javascript. Beside, the js function wich changes the selection is part of framework so I can't change it to trigger an on...