events

Internet Explorer’s “Autocomplete” function does not trigger JavaScript Events

I have an .ASP page that uses the “onChange” event to trigger a database lookup of information. (After a Code is entered, the system validates the code and places the description next to it. I.E. GP1234 returns GP1234-Rubber Duck or GP1234-Invalid Code). The problem I am having is that my users that have the AutoComplete active get a lis...

Excel triggered macro

I am struggling to carry out the following. Any help would be greatly appreciated. The marco only relates to one excel worksheet. I have 50 rows of information, 11 columns wide (A - K) in each row of column A there sits an IF condition If the IF condition flags the word 'OK' I would like a macro to trigger, and carry out the followin...

slow hide event canceled by remove event in jquery

Hello, I have a question about how too keep one event perform an action without being canceled by the next line off code In this case I don't want the remove action cancel the hide behavior Maybe, this falls into the category off callbacks, but I am not sure if I can use it in this case the code beneath already resides in the callbac...

Flex canvas and mouse event

Hello flexers, This simple code shows a green canvas on a red canvas, i would like the Green canvas to let the mouse down event to be catch by the child behind him: the red Canvas. How can i do this ? <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete=...

Desinging an Application for xmodem Transfer Through Dial-up in Java

I want to desing an application to send/receive a file with xmodem (written in java, I found the source code at http://stackoverflow.com/questions/606074/implementation-of-x-modem-protocol-in-java). I've decided to modify this code. First I should dial a number on the client-side and listen on the server-side. My problem is that I don't ...

Serializing events.

Hi, I have class A, which exposes an event. an object of class B subscribed to the event. Both instances actually also hold a regular reference to eachother. I'd like to serialize A, and have both objects be transferred over the wire, to be reconstructed at the other end. This works fine, except that the event subscription is not retai...

WPF: How to attach mouse events to a viewmodel?

I am trying to use the MVVM pattern for the first time. So I have an ItemsControl filled with my viewmodel objects, displayed using DataTemplates; the objects are "nodes" and "edges" represented in DataTemplates with Thumb and Polyline objects, and I want to be able to detect clicks and drags on the ItemsControl in order to move the node...

Change dropdownlist CSS when clicked or hover ?

Hi! Inspired by http://stackoverflow.com/questions/624102/enable-a-currently-disabled-dropdown-list-when-clicking-the-dropdown-list I tried something and I added some grey background to disabled selection. The problem is that when I click on some selection (which radio button was disabled) the background of the dropdown list remains gr...

Watching Global Events created by a native process in a .NET process.

I have a global event created and set/reset in a native C++ process that are created like this: HANDLE hGlobalEvent = CreateEvent(NULL, TRUE, FALSE, _T("Global\\MyEvent")); Is there any way (even if it's with a library not written by MS) to register for one of these events in a .NET (C#) process so that I standard .NET events handlers...

Best-Practices: action enum usage for events.

Hello there, I find my self hard to design action enums for events. f.ex making calculation processor. so I should have enum like this ? : public enum CalculatorCoreActions { ProcessStarted, ProcessFinished, ProcessFailure, ProcessFailed, SubstractionStarded, SubstractionFinished, SubstractionFailure, ...

How to get tab in TabOpen event with Firefox FUEL?

I'm writing a firefox extension and really need to listen on TabOpen events and get some details about tab that was opened. But I can't figure out how do I get an actual tab from event object that my callback receives. Is it somewhere in event.data? Is there a way to inspect this object? Some code that I have tried so far but it doesn't...

Flex Double Click Behaviour, isn't it strange or it's just me ?

Hi all, When using double click enable on any component, sometimes i have trouble activating the double click. I realised that if I move between my fast paced single click it will NEVER fire a double click event. If however if I do not move the mouse between the clicks then the double click is fired. Before i start using timer to get ...

Set a different id for every new element in the callback off the load event

edited my original question The problem is the same for setting the id off a newly added element or if I use the argument noteid from the function. The result is that every element get's the same id if this function get's looped. How can I set a different id for every newly added element??? As it is now, the value in the submit event...

raising events in a static class

I have a windows form with a data grid bound to a datatable. On a button click, the data table is passed to a static class. private void btnSave_ItemClick(object sender, EventArgs e) { MyStaticClass.SaveData(DataTable dt); } internal static class MyStaticClass { internal static void SaveData(DataTable dt) { foreach(D...

C# to VB6 COM events ("object or class does not support the set of events")

Really pulling my hair out with this one... I have a C# project with an interface defined as: /* Externally Accessible API */ [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] public interface ISerial { [DispId(1)] bool Startup(); [DispId(2)] bool Shutdown(); [DispId(3)] bool UserInput_FloorButton(int flo...

Swing: Adding listener to a component and ALL its decoration?

Hello! Can I add a listener (let's say MouseAdapter) to a Swing component and all it's internal decoration components? So that when a JInternalFrame is moved by the mouse (by dragging its window title bar), it would give me following events: mousePressed event, mouseDragged event, mouseReleased event. Currently, I receive none of t...

Gridview server events ceased to fire.

There's the usual Gridview with template column <ItemTemplate> "lbOpen" Text='Select' runat="server" OnCommand="lbOpen_Command" CommandName="open" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "OrderID") %>' /> Unexpectedly and by unknown reason "lbOpen_Command" ceased to fire. After stop at page OnInit() breakpoi...

Events in Base Classes

Ok, so I have a base class which declares the event StatusTextChanged. My child class, of course cannot directly raise this event. So I wind up with something like this (for simplicity sake): Public MustInherit Class FooBase Public Event StatusTextChanged(ByVal StatusText As String) Protected Sub RaiseStatusTextChangedEvent(By...

WPF: Detect Animation or Cancel Timeline.Completed Event? How?

I'm moving 3d camera like this: Point3DAnimation pa; // Triggered by user click void MoveCamera(object sender, EventArgs e) { pa = new Point3DAnimation(myPoint3D, TimeSpan.FromMilliseconds(2000)); pa.Completed += new EventHandler(pa_Completed); Camera.BeginAnimation(PerspectiveCamera.PositionPr...

ASP.NET: Accessing data associated with the RepeaterItem on Command execution.

Hi guys, I want to access the data associated with the RepeaterItem in which an ItemCommand fired up. The scenario is, I have multiple RepeaterItems which Button controls in which the Command is set declaratively like this: <asp:Repeater ID="Repeater3" runat="server" DataSource='<%# ClientManager.GetClientEmployees(Eval("ClientID")) %>'...