events

asynchronous Inter thread communication

Hi, I'm making a cross plateform program that embbed a small RARP server (implemented with winpcap/pcap) and runs 2 TCP IP servers. I have to use C++. So i will have at least 4 threads, the main one wich countain the controller, 2 TCP/IP async socket, and the RARP server. I planned to use c++ BOOST Asio and Thread, because i need to r...

Generating a keypress event in wxWidgets programatically

Hi, I'm looking for a way to programatically generate keypress events in a C++ wxWidgets app, for testing a control that I had written. Are there ways to do this? Thanks a lot for the help! Sahas ...

Actionscript 3: Why override custom event...and when to override it?

Hi guys.. I always have a question about override custom event. I am not sure why or what do to inside override function. I searched google but didn't get too many feedbacks. I appreciate if someone can light me up. Thanks. EDIT: My projects seem work fine even though I use my custom event without override. Anyone could explain it? ...

Listen to all javascript events

Is it possible to listen to all javascript events? I'm trying to guess if there's an event triggered after the DOM is modified by an AJAX request. ...

Ridiculously high latency for iPhone accelerometer and touch events

I'm working on an iPhone game using OpenGL ES. I recently updated my iPhone 3G to iOS4, and ever since the update, when I've been play-testing my app I've been getting very high latency on my accelerometer and touch events -- my phone will often respond a second later than it should, which makes the game unplayable. This doesn't occur al...

Event handlers the event handler is not invoked on clicking the button

Reasons why reason the event handler is not invoked on clicking the button ...

Asp.net js script with jquery problem

Hello! At my asp.net project I use telerik asp.net ajax controls set. so at my masterpage I have. <telerik:RadScriptManager ID="RadScriptManager1" runat="server"/> Also I would like use some jquery functions: <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> <div class="pnlFind" style="display...

Why does hiding the child form also hide the parent form?

I have three forms: A, B and C. Upon a button being clicked, A displays B. Similarly, B displays C. Both using the ShowDialog() method. However when I use the Hide() method (inside a Button Click event) on form C to close it, form B also closes. Why would this be? As far as I can see, it shouldn't be doing this. I certainly didn't wri...

Continuing to hide HTML input fields when page refreshes?

On a HTML page there is a filter section consistenting of various drop-downs and textboxes. When the 'type_of_report' drop-down is selected the 'onchange' event will hide all the non-relevant inputs for that 'type_of_report'. The filter criteria is preserved via GET (which I retrieve via PHP $_GET). The problem is that when I submit t...

BulletedList onClick not firing

Ugh, this is driving me mad Im trying to build up a dynamic menu from a bulletedList, most menu items are plain links however the log out button needs to perform some cleanup code. I cant for the life of me get the BullettedLists onclick event to fire. The BulletedList is inside a user control (if that makes a difference) Any ideas? ...

Asynchronous Listening on class that launched asynchronous process

SOLVED VERSION Ok so here it is. I am not even sure how to properly ask the question. I am creating a form that pops up within a program asynchronously so that it doesn't interfere with the main program. Within this form, I want to display data that comes from the "base class", in this example, it's the Metronome class. The Metronome c...

Android touch events

I want to be able to touch (and hold) the screen, and have an event be triggered by this. This is what I have so far. class Player extends SurfaceView implements SurfaceHolder.Callback { public boolean onTouchEvent(MotionEvent event) { return true; } } Unfortunately this only recognizes when the touch is 'movin...

jQuery: Firing an AJAX event local to the element that is loading data

I've been playing around with subscribing elements to AJAX events in jQuery. I have an element that I am using to load AJAX response's. This element is only displayed IF there is data pertinent to the current context of the program. So, I thought it would be nice and easy to .show() whenever an AJAX request has completed on it and hide...

asp.net perform action after child controls databound complete

hi all, I have a usercontrol that acts as a container to hold more usercontrols within it. I need to perform certain access checks once all of the child controls have databound. I was hoping I could attach to a usercontrol.databound event but there does not seem to be one. What other options do I have to do something on the parent u...

GWT Custom events - Registering receiver with event senders

Hi there. I am using a lot of custom GWT events which 100's of objects need to register to receive. Is there anyway I could automatically register types of classes with each other. Or is there simply no way around it, the event handler manger needs the references to all the objects wanting to receive events. Would I be better off impleme...

Using Reactive Extension for certain KeyPress sequences?

I am new .. or more precisely.. never used RX so I was wondering whether I can use it for this situation: I want to add a sort of Resharper Live Templates functionality to my app that allows users to enter short sequences of characters followed by a [Tab] and my app would replace the previously typed characters with the elsewhere specifi...

Javascript/Jquery Single event target delegation

Dear experts, I realized event.target redundancy could cause a lot of problems in the future when they are binded with another event in the next level. For example, when i have an Div element inside another. <div id='div1'> <div id='div2> </div> </div> I use the follow Jquery code to bind an event. $('div').bind('click', func...

Should my class subscribe to its own public events?

I am using C# 3.0. Following the standard event pattern I have: public event EventHandler<EventArgs> SomeEventHappens; protected virtual void OnSomeEventHappens(EventArgs e) { if (SomeEventHappens != null) { SomeEventHappens(this, e); } } private object _someProperty; publi...

Can't block keys using event listener

<body id="body" runat="server" onkeydown="return showKeyCode(event)"> Now whenever I hit a key, IE8 (or in comp mode) throws an exception directing to a problem in line x, which happens to be my body tag. How can I prevent that ? The JS code to my knowledge should be with IE comp. (works in Chrome) Moreover the code doesn't work in IE ...

How to fire a event for Array push? [Flash]

How would I go about as to addEventListener for a array object. I'm trying to avoid running a timer every x milliseconds to check for new elements in array object, rather trying to make a event fire when new elements are detected to process them and remove them. Is it possible with Arrays? maybe ArrayCollections? either is fine. P.S.>...