event-handling Questions
5
Solved
I'm trying to create a menu using a treeView. This is the first time I'm using treeView and have been reading up on it on several websites.
I'm having some problems when it comes to action event. ...
Bridging asked 3/4, 2013 at 15:52
6
I wish to listen to an 'esc' key event in order to call a method in a Vue component.
The docs shows this example:
<input v-on:keyup.enter="submit">
but i'm using a <div></div>,...
Crossindex asked 8/8, 2017 at 12:48
13
Solved
I understand the purpose of events, especially within the context of creating user interfaces. I think this is the prototype for creating an event:
public void EventName(object sender, EventArgs e...
Organizer asked 29/4, 2009 at 16:41
2
Solved
I'm building an app with Cordova. On one page, there is an EventListener that calls an async function. window.addEventListener("load", loadEdit(), false);
The function looks like this async functi...
Dyslexia asked 31/5, 2018 at 11:30
4
Solved
What order of precedence are events handled in JavaScript?
Here are the events in alphabetical order...
onabort - Loading of an image is
interrupted
onblur - An element loses focus
onchange - Th...
Tanganyika asked 11/11, 2008 at 21:47
2
Solved
I need a function to be called when the slider knob has been released.
onchange changes the value while I'm changing it. Is there a solution for this like
<input type="range" min="...
Aldos asked 5/3, 2014 at 13:25
11
Solved
I have the following asp.net textbox control.
<asp:TextBox ID="txtAdd" runat="server" />
After the user writes something in this textbox and presses the ENTER key, I want to run some code ...
Rhodesia asked 31/10, 2012 at 13:10
2
Solved
On my page, the user clicks on an element in order to edit it. To facilitate this, I assign the class editable to all such elements.
How should I listen for clicks on all these elements? Currently,...
Bemean asked 29/9, 2014 at 16:26
0
I understand the difference between useEffect and useLayoutEffect but I am curious how it is implemented.
I created this Sandbox which shows the order that things occur:
Log.js:
export default func...
Stove asked 27/8, 2021 at 1:17
10
Solved
It's been a long time since I've dabbled with C#, but I'm having a heck of a time getting my form_load to fire. This is the most simple thing I can't imagine why it won't fire! Any assistance would...
Tippet asked 4/3, 2011 at 18:22
7
Solved
How can I write the Javascript callback code that will be executed on any changes in the URL fragment identifier (anchor)?
For example from http://example.com#a to http://example.com#b
Armhole asked 29/1, 2010 at 12:39
1
Solved
I am currently building a React app with Material UI.
I'm trying to build a Select component with a dropdown, and as I'm writing the handleChange function, I am getting a warning that my function p...
Bwana asked 23/8, 2021 at 19:3
18
Solved
I have an EditText field with a Customer Text Watcher on it. In a piece of code I need to change the value in the EditText which I do using .setText("whatever").
The problem is as soon as I make t...
Chambliss asked 21/2, 2012 at 21:0
9
Solved
If I want a function to be executed, I prefer doing inline js:
<p id="element" onclick="doSomething();">Click me</p>
because it is easier to debug.
However, I hear people saying not...
Epistaxis asked 4/8, 2011 at 12:34
6
Solved
Hi i have a simple question. here is my code:
XmlDocument xmlData = new XmlDocument();
xmlData.Load("xml.xml");
/* Load announcements first */
XmlNodeList announcements = xmlData.GetElementsB...
Decarbonize asked 7/10, 2009 at 13:18
3
I am wondering how to catch event slide.bs.carousel (bootstrap 3 carousel) in Angular 2 and pass it to child component?
It's pretty simple in jQuery and I suppose in ng-2 too, but I cant't find si...
Brownlee asked 15/11, 2016 at 18:25
12
I have some radionButtons in groupBox and I need to do action what I could call "one of radiobuttons.checked changed" or find out from radiobutton what index is changed.
I've tryed to find it in l...
Iso asked 22/6, 2012 at 16:44
8
Solved
I would like to ensure that I only subscribe once in a particular class for an event on an instance.
For example I would like to be able to do the following:
if (*not already subscribed*)
{
memb...
Communication asked 15/12, 2008 at 5:10
6
Solved
I have a C# application that uses a Windows service that is not always on and I want to be able to send an email notification when the service starts and when it shuts down. I have the email script...
Agna asked 30/7, 2012 at 19:35
1
I have vue2 components that are added and removed with v-if. In some cases I communicate between them with $emit from the sender, and $on in the receiver.
I've been using this.$root.$emit to broadc...
Allahabad asked 27/6, 2021 at 0:9
7
Solved
I'm making a very simple application where you can click on square divs to change their color from white to black. However, I'm having trouble. I'd like to use the onClick function to allow a user ...
Dauphin asked 10/11, 2016 at 19:23
2
Solved
I know about EventInfo.AddEventHandler(...) method which can be used to attach handler to an event. But what should be done if i can not even define proper signature of the event handler, as in, i ...
Bloomer asked 25/6, 2010 at 18:22
8
Solved
I want a function of my choosing to run when a DOM element is added to the page. This is in the context of a browser extension, so the webpage runs independently of me and I cannot modify its sourc...
Lee asked 15/9, 2011 at 17:1
1
Solved
I have a simple example where a user starts to scroll on a touch screen, and then after one second, I want to disable scrolling. I thought event.preventDefault() would stop the scrolling but it doe...
Pruett asked 31/5, 2021 at 5:1
5
Solved
How can I achieve a Material checkbox so It won't get checked/unchecked by default (eg. calling preventDefault() on the event) and also get the checked value from the event?
It seems like I can on...
Donne asked 17/9, 2018 at 9:11
© 2022 - 2024 — McMap. All rights reserved.