events

Upload to a document library

Hi, Is there a programmatic way to differentiate between an addition of a New document and the Upload of a document in a Document Library? (Moss 2007) I want to make a document upload raise an ItemAdded event only after some required fields have been filled, by default it is raised as soon as the upload itself is done by browsing to the...

modem call in c++

I'm trying to make a modem call in one end, and in the other end the program answers the call. It doesn't seem to detect the carrier. Am I doing anything wrong? Am I missing something? int main(int argc, char** argv) { ParseArgs(argc,argv); SerialPort* port = SerialPort::New(); if(!port) Error(ErrorNoMemory,"Can't create port"); i...

GWT MouseWheelHandler not working in Firefox

I'm trying to make a TextBox that will change value when someone scrolls the mouse wheel over it. Specifically, my goal is for the number in the text box to increase when i scroll up, and decrease when i scroll down. However, I'm having trouble figuring out the MouseWheelHandler. I simplified my code to just change the value to "UP" or "...

Flex Differnece between Complete and UploadCompleteData events for class Filereference

When I upload a file using a Flex application, what is the difference between complete and uploadcompletedata events? In which cases one of them will be dispatched and the other one won't? ...

Is there a System event when processes are created?

Is there any event when a new process is created. I'm writing a c# application that checks for certain processes, but I don't want to write an infinite loop to iterate through all known processes continuously. Instead, I rather check each process that is created or iterate through all current processes triggered by an event. Any sugge...

Itemclick event in datagrid.

Hi, The problem can be summarized as when clicking an item in datagrid, the text area shows the value of the item, but here the compoents are separate and hence events need to be dispatched. My mxml component file : <?xml version="1.0" encoding="utf-8"?> <mx:DataGrid xmlns:mx="http://www.adobe.com/2006/mxml" itemClick="itemClickEvent(...

How to write a "Preview"-type event that can cancel a main event?

Hi, Let's say I have an event. Let's call it DoStuff. Before DoStuff happens, I'm trying to use another event, PreviewDoStuff, to check if I need to prevent DoStuff from being called. The problem I'm facing with this is that I'm unable to get any kind of value back from the PreviewDoStuff, like a return code or anything due to how event...

Disguise opener.location.reload() as new post event? Popup should reload parent without "This page cannot be refreshed without resending information" Message

Hi, i have following problem. I have a parent site withs forms. And i have links which open a popup via open.window. I want to reload the parent site with opener.location.reload(); in the Jquery .unload event. This works fine till the user submits the form on the parent site and then closes the popup. I get the usual "This page cannot...

Java Exception handling within "events"

I would like to get a second opinion on how to handle Exceptions within "events" (key input, screen update etc). In this case I have control over the event-sender. So a module is set to handle an event (it implements a listener interface, and is registered against an event sender): public void DefaultSet ( CardData oldDefault, CardDat...

How can i check if a JavaScript-Eventhandler has been set?

Hallo, i've got a JavaScript-function that sets the "onclick"-event of some HTML-Nodes - even if that "onclick"-event has been set before. How can i check if that event has already been set, so i can extend my function to set the event only on HTML-Nodes where it has not already been set ? ...

Best way to get the name of a button that called an event?

In the following code (inspired by this snippet), I use a single event handler buttonClick to change the title of the window. Currently, I need to evaluate if the Id of the event corresponds to the Id of the button. If I decide to add 50 buttons instead of 2, this method could become cumbersome. Is there a better way to do this? import ...

Propagating events from one Form to another Form in C#

How can I click a Button in one form and update text in a TextBox in another form? ...

AS3 Textbox Change Event Not Firing

I built a quiz game with a cartoon question bubble. The bubble is re sized to the length of the question. I want to a change event on the dynamic textbox to call a function that changes the size of the question bubble. However, the change event is never called when my textbox value is modified dynamically from code. question_txt.add...

Silverlight click event registered a second time before first event completed

I have a button which launches a "modal dialog" - it just creates a transparent grid covering everything, with the "dialog" created on top of that. However I have a strange issue - if I double/triple click the button really fast (or add some delay in the event code), the button click event is executed multiple times, creating multiple o...

What's the reason of using the Object type instead of an actual type for events?

I am talking about the common signature for events: Event ( object, args ); and why not: Event ( ImageProcessor, args ); Is #1 incurs a performance cost too, along with being unclear? ...

How can I fire functions once an image has been loaded using jQuery?

I am writing a simple image replacement script on a site I am working on and having a bit of trouble. The code I have at the moment consists of: $(function() { // When a thumbnail is clicked $(".zoom_thumbs a").click(function() { // Get large image attributes var largeImg = $(this).attr("href"); var largeTitle = $(thi...

Add an event to a class method?

OK, I've tried but I just don't get it. I have two classes logger and class1. I have a method called logger.Write(string) and method called class1.Execute(). Now in my application I want to have logger.Write(class1.ToString()) run when class1.Execute() is called. I presume you need to add delegates and events, but I just can't get my...

Is it possilbe to use attributes to automatically raise an event on a property change

I find myself writing this code a lot: private int _operationalPlan; public int OperationalPlan { get { return _operationalPlan; } set { _operationalPlan = value; RaisePropertyChanged(); } } private void RaisePropertyChanged() { ...

event.pageX - Use JQuery Event in a function not bound through JQuery?

I have a table, and when the user clicks on each cell, some details should appear in a small popup div that appears where the user clicked. I'm using JQuery, but not to bind the function to the onclick event. function detailPopup(cell, event, groupName, groupID, ...) { var newDiv = document.createElement("div"); newDiv.id = "detai...

Does Pythoncard have an on change event?

I want to do some validation whenever the value of a textfield changes. I don't see an on change event mentioned in the documentation though. ...