events

Can JavaScript listen for state changes from a QuickTime object embedded in a web page?

I'm attempting to control a QuickTime object that I have embedded into a webpage using JavaScript, and want to listen to and react to the DOM events that the object throws. Apple has published a tutorial on the matter that doesn't seem to work at all. The code that I made using their documentation is as follows: $(document).ready( funct...

wpf mvvm datagrid selectedrow

Hi, after some google around, I just figured out that there is no one that is using 100% MvvM pattern to get the ToolKit DataGrid events ! Is that impossible or what ? I see too much people using the code-behind... How can I get the SelectedRow or dblClick events using mvvm ? cheers ...

How to send Event to Control in Iphone?

For example, if i'd like to imitate UIControlEventTouchUpInside for Button1, when Button2 was clicked? The reason why it isn't enough to addTarget: action:@selector() forControlEvents - is that it's necessary to get default highlight for example (glow effect) ...

Is it a recommended practice to raise all the events asynchronously if...

Is it a recommended practice to raise all the events asynchronously if the class (event raising object) does NOT interested on how the parameters of the events are manipulated by the client objects (receivers of the events)?! Please guide me? ...

I want to be able to use .toggle() but binded to the keydown element - jQuery

I've seen thejQElement.toggle(fn1, fn2, fn3, fn4) would do the trick in case I wanted to click the element. I want it to sequencially fire the events on the tab keydown event. Thanks ...

how can I differentiate the if the click event was triggered using the mouse or the enter key jquery

I have an event handler for the click event on an anchor. The event is fired both by clicking on the anchor and by the enter key when the anchor has the focus. I wanted to know if the event was triggered by a click o by the enter key. Thanks! ...

Is there a comprehensive list of the NHibernate event listeners and when they actually fire?

So I am looking for a nice list of NHibernate events that actually describes when they are fired, in a typical scenario (not just a list). IE something like PreUpdateEventListener - Fires when an object that is already persistent is changing I currently just rifle through the source and try to figure it out, but it's kinda pai...

jQuery capture all changes to named input on a form

I'm trying to determine when any of a set of named input/select/radio/checked/hidden fields in a form change. In particular, I'd like to capture when any changes are made to fields matching jQuery's selector $("form :input"), and where that input is has a name attribute. However, the form isn't static i.e. some of the fields are dynami...

Events with QGraphicsItemGroup

In my application I want to use QGraphicsItemGroup for grouping items into one item. I played with it a little and not sure using it because when I want to catch events, events are merged together but I want to handle specific event with specific child. How can I achieve this? ...

ctrl+click or shift+click not always firing the onclick event

Hi, I recently discovered that different browsers handle the onclick event differently when the control of shift key is pressed. Same thing for following links with the middle mouse button. <a href="http://www.example.com/" onclick="alert('onclick');">go to example.com</a> Onclick browser support table Mouse Keyboard C...

click event in jQuery question

I have 2 click event functions that are practically identical... one works and the other doesn't. // click event on buddy in #chatpanel $('#chatpanel a.buddy').click(function() { // if a chat window is already active, close it and deactivate $('#mainpanel li[class="active-buddy-tab"]').removeClass('active-buddy-tab').addClass('b...

Can I interrupt javascript code and then continue on a keystroke?

I am porting an old game from C to Javascript. I have run into an issue with display code where I would like to have the main game code call display methods without having to worry about how those status messages are displayed. In the original code, if the message is too long, the program just waits for the player to toggle through the...

Visual Studio 2010 on seleccion change event in add-in.

Is it possible to subscribe to selection change event in visual studio 2010 add in, or any other way to detect that event? this is what i need to do: User click anywhere in a c# code file. I need to know where the user is: Property,Function,Class,Delegate,etc. Ideas? thanks. ...

How come the Actionscript 3 ENTER_FRAME event is crazy nuts?

So, I've been toying around with Flash, browsing through the documentation, and all that, and noticed that the ENTER_FRAME event seems to defy my expectation of a deterministic universe. Take the following example: (new MovieClip()).addEventListener(Event.ENTER_FRAME, function(ev) {trace("Test");}); Notice this anonymous MovieCl...

ScrollBall press events while screen is off on an Android device.

I'm writing a quick music player for myself on my Nexus One and really want to add the feature of being able to switch to the next song without removing it from it's case, ie. by pressing the scrollball through the sleeve. I've scoured many resources and... Haven't found a decently easy way to listen to key press events while the scr...

When designing an event, is it a good idea to prevent listeners from being added twice?

I am creating an event-based API where a user can subscribe to an event by adding listener objects (as is common in Java or C#). When the event is raised, all subscribed listeners are invoked with the event information. I initially decided to prevent adding an event listener more than once. If a listener is added that already exists...

Event type can't be Action<> ?

Hello everybody this works public event Func<int,int> createEvents; but why not this ? public event Action<int> createEvents; ...

Why are my event listeners firing more than once?

In my Flash project I have a movieclip that has 2 keyframes. Both frames contain 1 movieclip each. frame 1 - Landing frame 2 - Game The flow of the application is simple: User arrives on landing page (frame 1) User clicks "start game" button User is brought to the game page (frame 2) When the game is over, the user can press a "play ...

jquery change not working incase of dynamic value change

In jQuery how can I track onchange event if the value of textbox is changing dynamically from some other event. I tried this but its not working: $("#txtbox").change(function(){ alert("change"); }); ...

Event Listener in PHP

Hi, I want my web server to notify me through a php page when an event occurs at another TCP server, to which the PHP page has successfully connected via a socket. The event is like the TCP server wants to send a message to the web server, etc. Is there any way to accomplish this and/or any references on how to do it? Thank You! ...