events

Postgres : Post statement (or insert) asynchronous, non-blocking processing.

I'm wondering if it is possible, that after a collection of rows is inserted, to initiate an operation that is executed asynchronously, is non-blocking, and doesn't need to inform the originator of the request - of the result. I am working with large amounts of events and I can guarantee that the post-insert logic will not fail -- I jus...

Monitor keystrokes

Hi all , I am a beginner in C# , and making a calculator . But i want to disable the "GO!" button when there's no number typed in textbox1 and once the user enters a number in it the "GO!" button becomes enabled again ... how to do this in C# ? i tried KeyDown and KeyPress event like this but never worked private void Form1_Load(object...

How can I determine the instant a function is loaded?

I am using the Google Maps JavaScript v3 API. The maps library takes awhile to load; however, certain functions load before others. How can I programatically determine the instant the getBounds function is ready for use from the Google Maps JavaScript library? UPDATE: Is there some type of event I could create to run once getBounds i...

Conversion of Gdk Events in Mono

I'm trying to intercept events using Gdk.Window.AddFilter(Gdk.FilterFunc) in Mono. So far, I have been able to hook up the filter function, but now I am trying to use the events in the filter function. This is what I have in the filter function so far: private Gdk.FilterReturn FilterFunction(IntPtr xEvent, Gdk.Event evnt) { if (ev...

Silverlight COM Automation and handling COM Events

Let's say I want to catch a COM event: The preliminary documentation says to do something as so: ComAutomationEvent on_event = ComAutomationFactory.GetEvent(some_COM_obj, "SomeEvent"); on_event.EventRaised += OnEvent; OnEvent sig is as follows: private void OnEvent(object sender, ComAutomationEventArgs e) ComAutomationEventArgs c...

jQuery event bubbling: How to capture a nested click?

I'm capturing a click on any given LI in: <ul> <li class="opt">Text 1</li> <li class="opt">Text 2</li> </ul> With the code: $('.opt').live('click', function(event) { console.log("Click!"); } and it works wonderfully :) However, I also need to support the ability for nested block elements to exist inside the LI, without...

jQuery equivalent of JavaScript's addEventListener method

I'm trying to find the jQuery equivalent of this JavaScript method call: document.addEventListener('click', select_element, true); I've gotten as far as: $(document).click(select_element); but that doesn't achieve the same result, as the last parameter of the JavaScript method - a boolean that indicates whether the event handler sh...

Binding event handlers to specific elements, using bubbling (JavaScript/jQuery)

I'm working on a project that approximates the functionality of Firebug's inspector tool. That is, when mousing over elements on the page, I'd like to highlight them (by changing their background color), and when they're clicked, I'd like to execute a function that builds a CSS selector that can be used to identify them. However, I've b...

What is wrong with the JavaScript event handling in this example? (Using click() and hover() jQuery methods)

I'm working on a sort of proof-of-concept for a project that approximates Firebug's inspector tool. For more details, please see this related question. Here is the example page. I've only tested it in Firefox: http://troy.onespot.com/static/highlight.html The idea is that, when you're mousing over any element that can contain text, it...

event for textbox update

I have a textbox and want an event triggered whenever it is updated, whether through key presses, pasted from clipboard, or whatever else is possible. Is binding to the keyup event sufficient or is there a better way? ...

The Elegant way to handle Cyclic Event in Java ??

Hi fellows, i think this not a specific problem to me; everybody might have encountered this issue before. To properly illustrate it, here's a simple UI: As you can see, those two spinners are controlling a single variable -- "A". The only difference is that they control it using different views. Since these two spinners' displaying ...

ASP.NET - Page Postbacks and event handling

Hi, Can anyone suggest me good reading materials on the internals of how ASP.NET handles page postback and events? -Justin Samuel. ...

Detect file system changes on Samba share with Java on Windows

Hi, for a recent project I need to detect file system changes on a mapped Samba share from java on windows: Creates, updates and removes. At the moment I am using a folder poll that maintains a list of files and their modified timestamp to look for events. But my problem is that this folder poll only peeks into the folder at certain ti...

Jquery add href instead of click event

Hi all, I need to use href instead click event so I can use hover in the following statement. What I am trying to do is to be able to use href as if was click event, so I can attach a function through href, therefore I could use the hover efect which is alredy done on css. Its a delete button, so it would be a grey x and if you hover...

How can I stop an SWT composite control from firing a MouseExit event when the mouse enters a component control?

I have subclassed org.eclipse.swt.widgets.Composite to create a new composite control. I want to capture MouseEnter and MouseExit events in this control but the problem I have is that when the mouse is hovered over a component in the control (say, a Label) the MouseExit event is fired, even though the label is part of the whole Composite...

pthread windows event equivalent question

I have the following code which replicates the windows manual and auto reset events. class event { public: event( bool signalled = false, bool ar = true ) : _auto( ar ), _signalled( signalled ) { pthread_mutex_init( &_mutex, NULL ); pthread_cond_init( &_cond, NULL ); } ~event() { ...

ASP.NET - Creation of custom page with custom tags, with event handling

Hi, I am trying out some code which enables me in creating a page with extension .asp2 The tags included will also be custom, something like: <asp2:H> <asp2:T> First Page </asp2:T> </asp2:H> <asp2:B> <asp2:D> <asp2:Label>Welcome......</asp2:Label> </asp2:D> </asp2:B> I have done the necessary changes so that ASP.NET i...

OnWorkflowItemChanged for document library item - determine if metadata or file has changed?

In SharePoint Workflow - for a document library how do I determine if document metadata or document itself has changed? Both SPListItem.Versions and SPFile.Versions are added when i only change metadata (like file title). Also SPFile.Length changes if I only change metadata. ...

Your thoughts on kohana's Event component

Hi, I was wondering what others think about kohana's Event component. I like it very much and use it extensively although I am aware that the feature is not native to PHP. As I have to make a decision for a framework to use in an upcoming and traffic-intensive project I would like to hear your thoughts on the subject. Besides all op...

How do I overwrite old jQuery click event

Hey Everyone, I just came across this weird problem that is happening in IE. In the html I am adding an onclick event to an element that calls a function to change a page like this, onclick="changePage(1, 2);" Inside the changePage function I am changing the currentPageNum, and nextPageNum of the forward and backwards buttons when th...