event-handling Questions
3
For the last few years we have used our own RM Application to process events related to our applications. This works by polling a database table every few minutes, looking for any rows that have a ...
Hallow asked 1/12, 2014 at 10:54
8
Solved
In an application I'm working on, I have the requirement that a user must click & hold a component for a period time before a certain action occurs.
I'm currently using an OnLongClickListener ...
Aindrea asked 28/10, 2011 at 19:59
4
Solved
I have a JavaScript audio player with skip forward/back 10 second buttons. I do this by setting the currentTime of my audio element:
function Player(skipTime)
{
this.skipTime = skipTime;
this.wa...
Bifilar asked 2/9, 2018 at 14:32
4
Solved
I have the following Code
<script>
function delete(){
var e = document.getElementById('parent');
e.removeChild(e.children[0]);
}
</script>
<div id="parent">
<div i...
Rutan asked 11/7, 2020 at 8:11
4
Solved
Using jQuery I want to bind an existing function to a button. I've been through the documentation and have found the bind method but the examples on the jQuery site bind newly created functions whe...
Whitcomb asked 5/9, 2009 at 19:2
6
Solved
I have a button control, and I'd need to remove all the event handlers attached to its Click event.
How would that be possible?
Button button = GetButton();
button.Click.RemoveAllEventHandlers();...
Dipstick asked 26/7, 2011 at 9:37
2
Solved
I am listening to an event and want to call different methods. For example, I am listening to animation end event and the code is something like this:
this.inAnimationCallback = function() {
cons...
Smolder asked 10/6, 2015 at 10:52
6
I'll try to explain the problem with a simple code.
var fireClick = function() { alert('Wuala!!!') };
$('#clickme').click(fireclick);
$('#clickme').click(fireclick);
So now it will obviously al...
Jann asked 12/4, 2009 at 11:25
3
Solved
I have the following code which I got from somewhere to capture mouse events. I modified it and made an event handler so that I can subscribe to it. The mouse events are captured correctly. But it ...
Njord asked 23/7, 2012 at 5:58
2
I'm trying to tweak the sensitivity of a joystick which does not work correctly with SDL, using the EVIOCSABS call from input.h. I think that the fuzz and flat members of the input_absinfo struct a...
Excrete asked 19/4, 2013 at 17:42
9
Solved
Which is more widely supported: window.onload or document.onload?
Scrape asked 25/2, 2009 at 21:45
6
I have a jQuery onClick handler, writed with an anonymous function like that:
$("#selector").on("click" function(){
// do something
})
I would generalize the anonymous function extracting the l...
Calli asked 6/3, 2014 at 9:29
10
Can anyone please explain event delegation in JavaScript and how is it useful?
Kimsey asked 6/11, 2009 at 12:33
2
Solved
I have a custom NSView subclass with (for example) the following methods:
override func mouseDown(with event: NSEvent) { Swift.print("mouseDown") }
override func mouseDragged(with event: NSEvent) ...
Fear asked 22/11, 2016 at 14:13
19
Solved
I fear that there is something obviously wrong with my code, but I have come across a situation where the Form.Load event is not firing when I create and show my form.
The form is not subclassed ...
Presidentelect asked 9/11, 2010 at 2:16
5
Solved
I have a custom usercontrol and I want to do something relatively simple.
When ever a numeric up down in that usercontrol's value changes, have the main form update a display window.
This is not ...
Farouche asked 24/10, 2011 at 19:28
3
Solved
I want to implement the ability to navigate back and fourth in my webView by using the Event swipeWithEvent. However, I have no idea how I am suppose to use this.
I have one main webView, and two...
Nam asked 5/10, 2012 at 14:8
2
Solved
I have a simple shell script written in Node.js and I'm trying to do some cleanup before the process exits (⌃C). I've written the following code but for some reason the cleanup function doesn't com...
Agnes asked 24/1, 2018 at 22:57
9
I can catch a single-click on a TextBlock like this:
private void TextBlock_MouseDown(object sender, MouseButtonEventArgs e)
{
MessageBox.Show("you single-clicked");
}
I can catch a double-clic...
Rios asked 18/1, 2010 at 13:16
3
Solved
I have the following class, which has one public event called LengthChanged:
class Dimension
{
public int Length
{
get
{
return this.length;
}
set
{
if (this.length != value)
{
this.len...
Hunker asked 21/1, 2011 at 6:20
7
Solved
I'm trying to find the jQuery equivalent of this JavaScript method call:
document.addEventListener('click', select_element, true);
I've gotten as far as:
$(document).click(select_element);
bu...
Loveinamist asked 7/3, 2010 at 21:44
5
Solved
I want to detect the focus event of an element, but only if it was initiated by the user pressing the tab key. For example:
<input type="text" id="foo" />
<input type="text" id="detect" /...
Axum asked 22/4, 2013 at 10:16
7
Solved
I can add or remove an event handler for a DOM node. Is it possible to find out all the registered events handlers of a given DOM node? I am referring to straight Javascript meaning no frameworks o...
Pd asked 25/9, 2009 at 3:50
1
Solved
Is there an event for leaving the field or loosing focus in the Material UI TextField?
I need two events, one for entering and one for leaving the field. Entering the field can be handled by using...
Voltaism asked 9/2, 2020 at 13:8
1
Solved
I want to execute the lambda function locally , on SQS event which is on my AWS account. I have defined the required event but this not getting triggered.
How can this be achieved?
I am able to ...
Wife asked 20/12, 2019 at 21:5
© 2022 - 2024 — McMap. All rights reserved.