events

binding same event twice will trigger twice in jQuery 1.4.2

if you got something like this: jQuery(selector).focus(function(){...}); jQuery(selector).focus(function(){...}); the focus will trigger twice, is there anyway that I can correct/prevent that? ...

C# Disable Event Handler Problem

i am using textchanged event and i disable it where i don't need as following object.Event -= new System.EventHandler(myHandler); //my code which doesn't need event handler object.Event += new System.EventHandler(myHandler); i used many times like this. but i needed sometimes 2 disable code like this: object.Event -= new System.Event...

what events are bound?

Is there any way to see what events are bound to an element with jQuery? ...

Is it possible to create a jQuery event that triggers when a scrollbar is released?

It's my first question on SO, so I hope I'm doing it right. Basically, I would like to know how would one go about creating a jQuery event that would trigger when a scroll marker is released if scrolling with mouse (and also when scrolling with keyboard). When searching the Internet I have found a special scrollstop event here that trig...

What's the better option for anonymous event listeners?

I'm trying to figure out the best option to use anonymous event listeners that are 100% garbage collected after use. I got these two examples but I'm wondering if it actually makes any difference between them ... var listener1:Function = function(e:Event):void { resource.removeEventListener(e.type, listener1); loadedHandler(resource);...

I don't always receive WM_LBUTTONDBLCLK

I'm writing an app (in C++) which uses WM_LBUTTONDBLCLK. It's all working fine except but I don't always get the DBLCLK message. Quite often I get two WM_LBUTTONDOWN messages instead. I've looked at the mouse position - it doesn't move. I've looked at the time between the two WM_LBUTTONDOWN messages - it's well within the value return...

Make Webcontrols.Calendar's SelectionChanged Event Fire when clicked on currently SelectedDate

Hi I have come with following solution but I'm not sure if it's the best one. What I specially dislike is the way I have to apply the style in the DayRender event, any comments? To overcome that problem what I did was to store the selected date in the viewstate and then reset the selected date. To preserve the marker on the selected da...

Confusing Event Order in Java Swing Thread

hi, i've panel which contains a text field for entering number and a submit button sometimes new (updated) value can not be sent when i click the button (the previous value of the field is sent) in the debug mode, i see that sometimes AbstractButton.fireActionPerformed() is called (which gets the value of the field at that time ...

Propagation of events in a collection based project

I have a collection-based project in .NET 4. What I mean is that, I have a master collection, call it "System", which is made up of frames, which are each made up of cards, which are in turn made up of channels. So, it looks like System->Frame->Card->Channel. All these are represented as objects, and there is a Parent-Child relationship ...

jquery click() event runs repeatedly

Hi, I have a jQuery question: I have an "ADD" button that adds text to the database via AJAX call ($.post()...). The problem is, items are getting repeatedly added. For example: After page loads: User clicks "ADD" button: the first time, it adds an item. a seconds time, it adds an item and then adds it again (total 2 items) a thrid t...

How to pass an argument to event handler? python, tkinter programming

Hi friends., widget.bind('<Button-1>',callback) # binding def callback(self,event) #do something i need to pass an argument to callback() .the argument is a dictionary object. thanks in advance sag ...

trigger event after several ajax calls succeeded

I wonder which is the best approach to trigger an event after several (unordered) ajax calls finished. To make it a bit clearer, I would like to call a Method doSomethingGreat() which triggers several ajax calls, the order in which those succeed ins unnecessary. I just want to trigger an event 'SomethingGreatFinished' when all of those ...

ToggleButton binding

Hi, If i have a Collection bound to n togglebuttons in a stackpanel in a usercontrol....how can I update the underlying Collection with no code behind (including Checked and unchecked events) and complete update logic? Thanks, U. ...

Error when attempting to write to event log - Cannot open log for source 'SourceName'. You may not have write access.

We're currently trying to integrate existing classic ASP pages into our new method of logging to the event log. We're achieving this by calling a .NET assembly exposed as a COM object which does the actual logging to event log. This all works correctly, however when we try to write to the event log we get an error "Cannot open log for s...

Event not bubbling in some Browsers when clicked on Flash

Environment: Windows 7, Internet Explorer 8, Flash ActiveX 10.1.53.64, wmode=transparent Just wrote a small test page that you can load in IE and Firefox or any other Browser. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/...

Is there any way to prevent a WPF CheckBox from firing its Checked event?

I have a group of WPF CheckBoxes that have a Checked event handler that handles some logic when the user clicks on one of them. However, I also have a "Clear All" button that, when clicked, will clear all the checkboxes. If the user clicks on the "Clear All" button, I do NOT want the checkboxes to fire their Checked event. Is there a way...

Grab an event in an intermediary handler, hold it in a property, then dispatch it later and still get the .target?

Is it possible to grab an event, hold it in a class property, do some action, then, when that action is complete, dispatch an event and then retrieve the original event.target in the listener? I am trying to avoid using a custom event for now, as it is giving me massive amounts of heartburn when dispatching it from a loaded SWF. Here i...

Flash AS3 custom event should bubble up in "brother"MC

down vote Hi, this blogposts seem to be really old, but my question is fitting best in here. I am doing custom event dispatching on a MC construct like this main_MC/room_MC/button_MC main_MC/room2_MC I am dispatching a custom event from room_MC when receiving a button_MC.MOUSE.CLICK. It bubbles up to main_MC where I can do something ...

UITouch-Events with different views - no more events

Hi, i´ve created a custom-uiview-class. There i create my view and handle my touch-events. I´m look for a "touchesBegan"-event. If the tapcount > 1, i want to create an additional UIImageView which holds a UIImage (and fills complete the old view) where the user can zoom that image. So if the tapcount is only 1, i´m getting output in ...

Facebook query very slow

Hi i'm using this query for get next facebook events of a user: FB.Data.query("select eid,name,start_time,location,venue, pic_small,pic_big,description from event WHERE eid IN (SELECT eid FROM event_member WHERE uid={0}) AND start_time >= " + from + " ORDER BY start_time LIMIT 10", uid); But for users with many events thi...