events

Why does a book say DOM event flow has both Capturing and Bubbling? Then won't the event occur twice?

The book Professional Javascript by Zakas says that 1) IE uses event bubbling 2) Netscape uses event capturing 3) DOM event flow is first capturing and then bubbling So, won't the event handler be called twice? What is this DOM event flow, is it the DOM level 2 event handling? As I understands it, is the following true? a) IE 6, ...

WPF WebBrowser control: mouse wheel scrolling and Document.execCommand stops to work properly after I added event handlers

I have a WPF WebBrowser control. After I added several events handlers in this way: m_eventHelper = (HTMLDocumentEvents2_Event)Document; m_eventHelper.onclick += new HTMLDocumentEvents2_onclickEventHandler(OnMouseClick); m_eventHelper.onmousedown += new HTMLDocumentEvents2_onmousedownEventHandler(OnMouseLButtonDown); mouse wheel scro...

Adding content to fullcalendar event

I have a problem with adding content to the event. I need a list of a few things in the body of the event (for each new line.) Is it even possible? Another problem is that it doesn't show me at the top - end of the event, despite it's defined ... I'm querying events from database and final result looks like this: [{"id":305,"start":"2...

WPF control does not capture the press and hold event (right click) when IsManipulationEnabled is set

I'm starting to make some tests with a touch screen and I've found that if a UIControl has the "IsManipulationEnabled" attribute set to true then the MouseRightClick Events fired by the press and hold gesture (WIN7) is not captured. Am I doing something wrong? public MainWindow() { InitializeComponent(); WC_Rectangle...

JPanel does not generate MouseEvents when cursor is on child components

It is a bit strange for me but JPanel does not generate MouseEvents when cursor is on child components: JTextField and JToolBar but it generates MouseEvents when cursor is on JLabel. Could someone explaind me why? Is there any way to force JPanel to generate events even if mouse is on child components? ...

Monitoring Mongo for changes with Node.js

I'm using Node.js for some project work and I would like to monitor my Mongo database (collection) for changes, basically fire an event if something gets added. Anyone know if this is possible? I'm using the node-mongodb-native drivers. If it's not I'd also like any available pointers on pushing data from the server (run with node) to ...

Browser Helper Object Form Events

Why is it so hard to find information on browser helper objects? I'm trying to find how to get events from forms within Internet Explorer but get only so far as to get window events. I'll show my code if you need it. ...

jQuery Multiple Events

I know how to bind multiple events and all that stuff. What I want to do is have multiple events occur to trigger a function. Like $(this).click and $(this).mousemove triggers a function Is there a way to do this? Is it possible or am I just dreaming. ...

In Actionscript 3.0, if an event is dispatched by the member of an object, how can I access the object containing that member?

I'm trying to set up a menu. Because this menu can have a varying number of entries, I'm generating it instead of hard-coding it. The Menu object contains an Array of MenuEntry objects, and each MenuEntry has a framework.Button object which contains the text and box that actually gets drawn to the screen. I can add a MouseEvent.Click eve...

WPF how to pass events to sibling elements

I have read the post http://stackoverflow.com/questions/2982168/button-mousedown In continuation to that I want to ask 1 more question. My XAML is as follows : <Window.Resources> <Style TargetType="{x:Type ContentControl}"> <Setter Property="BorderThickness" Value="5" /> <Setter Property="Padding" Value="10" /> ...

Handling Mouse events on controls with MVVM pattern - best practice -

Hello my mvvm followers :D I found actually 2 ways to handle mouse events on controls with the mvvm pattern. Both ways are actually 1 way: MVVM Light Toolkit by http://mvvmlight.codeplex.com/ <i:Interaction.Triggers> <i:EventTrigger EventName="SelectionChanged"> <cmd:EventToCommand Command="{Binding SelectionC...

Can I set the selected item for a JList without having an event thrown to the listeners?

I am working on a viewer, which uses a JList to show thumbnails of the pages of a document. The user can open a page by selecting it through in the JList, or throught other mechanisms, like entering the number in a text box. When using the latter alternative, I want that the JList also selects the page. I do this using setSelectedIndex(...

How to pass parameters to the function called by ElapsedEventHandler?

How to pass parameters to the function called by ElapsedEventHandler? My code: private static void InitTimer(int Index) { keepAlive[Index] = new Timer(); keepAlive[Index].Interval = 3000; keepAlive[Index].Elapsed += new ElapsedEventHandler(keepAlive_Elapsed[, Index]); keepAlive[Index].Start(); } public static void keep...

Flext text link event doesn't fire until you've clicked it twice

Hi, I've got a canvas within which I have a list. The renderer for this list calls upon a "Text" field, with the "link" element of this field set to a function. The "htmlText" of the field is set dynamically to a mixture of words and links. Basically the function checks to see which tag within the htmlText has been clicked and perfor...

How to capture an event in a ListView?

I have a ListView that has a Button in the item template. Is there a way for me to identify which Item had it's button clicked from my OnClick event? I was able to do it with the code below but it seemed crufty. Is there a better way to do this? ((ListViewDataItem)((Button)sender).Parent.Parent) UPDATE: Was able to implement using ...

Basic question about ASP.NET mechanism

Hello How events relationship between functions occur ? For example: When we click submit button how CLR or IIS determine which function has to work ? I know how can relate functions with events but I dont know how background mechanism work.I don't know Is there reflection or another else. ...

PreviewMouseLeftButtonDown not firing

I have a ListBox, an IEnumerable is the data source. When a ListBoxItem is clicked, I want access to that object so I can grab some data and show another window. Here is my ListBox XAML `<ListBox Name="listBox1" Margin="0" Width="1010" Height="275" BorderThickness="0" BorderBrush="{x:Null}" Cursor="Arrow" HorizontalAlignment...

Enabling and Disabling Save button on a GWT page

The application I am working on has pages of setup data with lots of textboxes; each page having a save button. I have defined most of the pages as a *.ui.xml file and used the GWT 2.0 UI binding. I would like to add a save button which is disabled onload and is only enabled after a user modifies the data into one of the textboxes. I ...

Raising an event from inner class to be handled at outer class, How to Do ?

I have a class A, B class A { public class B { public event EventHandler handleClick; public void eventraising(object sender, EventArgs e) { if (handleClick != null) handleClick(this, e); } } //handle raised event...

Why does using threading.Event result in SIGTERM not being caught?

I have a threaded Python daemon. Like any good daemon, it wants to launch all of its worker threads, then wait around until it's told to terminate. The normal signal for termination is SIGTERM, and in most languages I'd hold to terminate by waiting on an event or mutex, so using threading.Event made sense to me. The problem is that Pytho...