events

Using an event receiver to update an item's 'Title' field.

Hi there. I have written an event receiver that is activated on the 'ItemAdded' event of a 'Pages' list. The code runs fine, but my issue is this - during the call to my Sub ItemAdded, I want to change the value of a field belonging to the current list item (in this case an aspx page). The idea is that I can configure the 'Title' field...

Functional jQuery: Custom Events or Functions?

Being new to functional programming, I was working on my application's javascript (using jQuery exclusively), and wondering how jQuery's event system relates to it's functional programming paradigm. I have a function setupAccountHeader that could easily be either a document-bound event like $(document).bind('setupAccountHeader', functi...

Is there a rigorous general introduction to event-based programming in textbook or monograph form?

I've been looking at the selection on Amazon and "The Power of Events: An Introduction to Complex Event Processing in Distributed Enterprise Systems" sounds like it has way too much fluff, but the other choices like: "Event-Based Programming: Taking Events to the Limit" sound too much like a cookbook and tie you to particular framewo...

Touch pad writer in iPhone

Hi, I need to develop Touch pad writer in iPhone (user will move his finger to write a letter). I know this is possible, but dont know from where to start. Do I need to use any specific framework or can be done using controls available in Interface Builder. Please suggest, what will be best approach to achieve this. Thanks SD ...

Horizontal Scroll Event in FireFox 3.5 Not Firing.

Hi, I've attached a function to the DOMMouseScroll event in FF3.5. The event fires as expected on a vertical scroll, but not on a horizontal scroll. Is this a known bug or a problem with my code? document.addEventListener('DOMMouseScroll', function() { console.log(arguments); }, false); Rich ...

how to access the selectionRange using the onselect event object in textarea

I am working on a project where I will be getting all the events that have occurred in a textarea and give a replay of the events. To fulfill this objective, I am collecting all the events that have occured in a textarea. I am storing the events in an object array containing the event and timestamp. Now for onselect events, how do i get ...

Where to place a Sync() call: FormClosed or FormClosing?

I need to kick off a Sync() process whenever my windows form app is being closed. This sync's data between the local SQL instance and a network SQL instance. What is the better event to place this in: Closed or Closing? Are there any factors that might change it from one to the other, as far as being best practice? As a bonus questio...

Avoid attaching event again

Hi, the situation is like this i have a control and it has event Render in the definition of the control, to this event is attached handler i am looking for a way to show some kind of message if in some class that uses this control another handler is attached to this event Best Regards, Iordan ...

How to design a state machine in face of non-blocking I/O?

I'm using Qt framework which has by default non-blocking I/O to develop an application navigating through several web pages (online stores) and carrying out different actions on these pages. I'm "mapping" specific web page to a state machine which I use to navigate through this page. This state machine has these transitions; Connect, Log...

Why doesn't jQuery 1.3.3. live() support all events?

I've just been pondering the jQuery live() event binder, which seems like a really useful function. http://docs.jquery.com/Events/live One thing I note is that it doesn't support all events: "Currently not supported: blur, focus, mouseenter, mouseleave, change, submit" My (very simple) mind reasons that surely if it were implem...

GTK Window configure events not propagating

I'm attempting to capture an event on a GTK window when the window is moved. I'm doing so with something that looks like this: void mycallback(GtkWindow* parentWindow, GdkEvent* event, gpointer data) { // do something... } ... GtkWidget* window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_add_events(GTK_WIDGET(window), G...

What is the proper way to fire an ASP.NET control event programatically?

What is the proper way to fire an ASP.NET control event programatically? I am looking to refactor a little code and I see items sprinkled in the code behind coded like this; the developer is calling the event handler and saturating it with params. for a DropDownList ddlAddress.SelectedIndex = 1; ddlAddress_SelectedIndexChanged(null, new...

wxPython - Running built in event prior to custom bound event

I'm trying to figure out how I can specify that the mouse_down event in wxPython (StyledTextCtrl) is first handled by the built in event listener, which changes the caret position, and then handled by my own custom event handler. To bind the custom event handler I use wx.EVT_LEFT_DOWN(self.styCtrl, self.OnMouseClick) def OnMouseClick(s...

How to capture a mouse click on an Item in a ListBox in WPF?

Hi ! I want to get notified when an item in a ListBox gets clicked by the mouse, whether it is already selected or not. I searched and found this: (http://kevin-berridge.blogspot.com/2008/06/wpf-listboxitem-double-click.html see the comments) private void AddDoubleClickEventStyle(ListBox listBox, MouseButtonEventHandler mouseButtonEve...

AutoCad EndPlot event firing too soon in (C#, API)

Hi, i am leveraging the AutoCad API's to do the following... 1] open autocad 2] load a document 3] print the document 4] close autocad All this is working fine except for the fact that autocad is closing too quickly before the document has finished spooling off. To get around this i have subscribed to the EndPlot event (printing has fi...

How to dynamically register to jquery custom events?

Hello all, I have built a dom object Engine that has private/public fields/methods that I have simplified below: function Engine(args){ this.display = args.display; this.getDisplay = function(){return this.display;} this.alertMsg = function(msg){ console.log(this.display); alert(msg); } } What I would like to...

Returning information from a Class to Form [C#]

I'm currently trying to separate some of my code from my main form, and create class files to handle some operations. I've read that it's not good practice to tie classes to a UI, so I was wondering how to still return information on the progression of events taking place in the class. When the code was present in the main form, I would ...

.NET: Problem with raising and handling events using AppDomains

Here is the basic gist of my problem: My main Window class instantiates Class A. Class A instantiates Class B in a secondary AppDomain. Class B raises an event and Class A handles the event successfully. Class A raises an event of its own. Problem: In step 4, when Class A raises its own event from the event handler method that caught...

Using Silverlight, how do I prompt the selected item's value on a SelectionChanged event?

I can do this very easily on normal Combobox as SelectedText or SelectedValue, but using Silverlight, I can't get to that option. ...

JQuery blur event

I have a text area and a "add" button on a form. By default the text area is shown as shrinked and grayed out. On focus it will be highlighted by changing the style. On blur it should go back to previous state. Along with highlighting the textarea, add note should toggle as visible and hidden. The problem is when i enter the data in text...