events

Send keyboard and mouse events to Flash Movie

Hi, I'm looking for a way to "inject" some events into a flash movie running on a browser. I know about ActionScript's ExternalInterface.addCallback function, however I'm trying to achieve this with any "random" flash from the web. Eg. send a "SPACE" keyboard event to a youtube video. ...

JSF invoke backing bean method and reRender components on ENTER key

Hi, I have a datatable with as search fields. I want a method on the backing bean to be invoked when ENTER key is pressed, as well as the DataTable to be re-rendered. My approach so far only works in IE 6, and 7, not in FF. This is the inputText: <h:inputText value="#{applicantProductListBean.applicantNameFilterValue}" id="applican...

System Event Handling using Java

Hi, I want to handle the system events through java program. For example, if I want to insert a disc in dvd drive, I would click the eject option from a drop down box. I'll then handle that event and show the status as "Eject event generated". How to do that one ? Which api is preferable ? Please help me. I am using Ubuntu8 version o...

text selection AND bubbling

this is the problem: I'm using javascript and JQuery (not UI) to drag nested objects in my web page. to disable the text selecting I have to return FALSE from the mousedown handler, but this disable also the event bubbling. But I need event bubbling... What can I do?? thanks ...

Which is the event listener after doSave() in Symfony?

Hi, I've been looking at this event-listeners page http://www.doctrine-project.org/documentation/manual/1_1/pl/event-listeners and I'm not sure which is the listener I have to use to make a change after the doSave() method in the BaseModelForm.class.php. // PlaceForm.class.php protected function doSave ( $con = null ) { ... parent:...

How to provide a dynamic property?

I am using a class with a string property on it. I am looking for some sort of event notification when somebody reads the value of this property, so that I can provide the property dynamically. For example, usually somebody would do: string foo = someClass.Property; And it returns whatever string value is currently assigned to Propert...

jQuery how to execute event only on the inner element

Is there is a smooth way to only let the inner element of a listitem do something? I read something here that using live complicates things. Summation: I have list elements that can contain a elements with a certain class. The inner a elements are bound to a live click event handler. The list items themselves have also a click event h...

Making a "click-out" event in C#

Is there any simple way to make a method that gets called whenever the user clicks out (or changes focus in some other way) from a text box in C#? I'm not really familiar with the way events are handled in C# - I rely on double-clicking a control to automatically generate the btn_Button_Click method. Thanks! ...

Loading listboxes inside tabitems - which event to use?

Lets say I have an application which comprises one window. Inside the window is a tabcontrol, with three tabitems. Inside each tabitem is a usercontrol. In one tab I have Add color. In the next tab I have add Fruit. In the third tab I have relationships, where the user can add links between the fruit and the colors. This relationship is...

Combining jQuery Sortable and Drop Event

Basically I have a draggable list which is connected with a sortable list. Works great except I need some sort of Drop event which I can use to change the list item after its dropped into the sortable list. This works with .draggable -> .droppable but is there a fix for draggable -> .sortable? ...

onclick message handling on a webpage button

I have a button on a webpage that has the following added programmatically to its “Attributes” property. btnDeleteNode.Attributes.Add("onclick", "if(confirm('delete this node?')){}else{return false}"); This works fine but now I need to check to see if the user has selected a node in a tree before asking if they want to delete it. If a...

Is there a "texbox content changed" DOM event?

Every time I need to write a piece of JavaScript which monitors an input box, I usually end up doing something like: $("#field").keyup(myHandler).keydown(myHandler).change(myHandler); It’s not perfect, but it usually works in most cases, and so I move on. I just happen to have a little bit of time to investigate this properly. Probabl...

ASP.NET MVC: Event when a view is requested.

Are any events raised when a controller requests a view or partial view? Similar to FindView/FindPartialView on the IViewEngine interface. I need to know what views are requested, but dont want to have to write my own view engine. Any suggestions? ...

Unable to receive grab event by using GRAB_EVENT_MASK?

I added an AWTEventListener to process grab event. So this listener just use sun.awt.SunToolkit.GRAB_EVENT_MASK mark. But This listener can not capture UngrabEvent. The tricky thing is, when a JComboBox popuped its menulist, it can capture this event. I use the following code for testing. Start the program, click on the empty area of the...

jquery how to catch enter key and change event to tab

I want a jquery solution, I must be close, what needs to be done? $('html').bind('keypress', function(e) { if(e.keyCode == 13) { return e.keyCode = 9; //set event key to tab } }); I can return false and it prevents the enter key from being pressed, I thought I could just change the keyCode to 9 to make it tab ...

What is the syntax to subscribe to an object's static event in PowerShell?

Register-ObjectEvent looks for a object instance in the required parameter InputObject. What is the syntax for an object's static (Shared) event? UPDATE: Correct syntax for TimeChanged: $systemEvents = [Microsoft.Win32.SystemEvents] $timeChanged = Register-ObjectEvent -InputObject $systemEvents -EventName 'TimeChanged' -Action { Write-...

Toggle (click) and bind event (on document)

Hi, I have a button <a> that should toggle a drop-down Then it should also bind (once) a click event to the document that when clicked it should slide it up. I started with this HTML and JS... Any suggestions how to make this work? HTML <a class="a" href="#">continue shopping</a> <div class="b"> <a href="#">contin...

Problem with StandardOutput stream in async mode.

Hi everyone. I have a program that launches command line processes in async mode, using BeginOutputReadLine. My problem is that the .Exited event is triggered when there is still some .OutputDataReceived events being triggered. What I do in my .Exited event must happen only once all my .OutputDataReceived events are done, or I'll be mis...

Will GC collect an object with function pointers?

Hi everyone, just a quick question. First of all, let me verify that I have the correct meaning of a function pointer. In the case of C#, a function pointer is basically just an event function am i right? second, consider the following snippet: public FormAnimator(Form form) { this.m_Form = form; this.m_Form.Load += ne...

javascript eventlistener problem

Hi, I have a script where Im trying to add an eventlistener to a link, and it watches for when a user clicks the link. when the link gets clicked it calls the function 'hi'. im having trouble because the function 'hi' gets called even when the link isnt clicked. same result on IE and FF. heres my code maybe someone can help: function hi...