Questions tagged [event-capturing]
51 questions
2
votes
2 answers
Detect intermediate node with javascript bubbling/capturing
I need to capture an anchor node with an image inside using event delegation.
document.addEventListener(
'click',
function(event) {
console.log(event.target);
return true;
},
false
);

Maks Sherstobitow
- 95
- 1
- 8
2
votes
1 answer
Do all events in Javascript capture and bubble?
I am working on a project where I bind one eventListener to an

zhirzh
- 3,273
- 3
- 25
- 30
2
votes
1 answer
In JavaScript event handling DOM Level 2, why does the target get the "bubbling" first, and then "capturing"?
As I understand it, the DOM Level 2 event handling works in the following order:
capturing from the top HTML element all the way to before target
the target itself
bubbling all the way back the top HTML element
example is at:…

nonopolarity
- 146,324
- 131
- 460
- 740
2
votes
2 answers
The weird event capturing in IE
I just test same code on IE10 and Chrome Browser.
jsfilddle link
`
I put two different tags which are input and button in two different div…

SiruBomber
- 23
- 3
2
votes
0 answers
Android: Capture event when orientation change from portrait to reversePortait
My application supports portrait mode only including the upside down view. Hence I've got the following in the menifest:
android:screenOrientation="sensorPortait"
Also the following to capture orientation change…

StarDust
- 846
- 1
- 13
- 26
1
vote
2 answers
Capturing user events (button clicks etc) from another Windows application
I'm looking to write a .Net Windows application that will capture how a user uses another running application.
The simplest form of this would be recording which buttons were clicked or menu items were opened. Capturing the button text or menu text…

Elliot Williams
- 563
- 5
- 11
1
vote
0 answers
Is there a solution so I can catch the event handler of clearing entire content of a column in VBA for excel?
Is there a solution so I can catch the event handler of clearing entire content of a column in VBA for excel? I mean is clearing, not Deleting a column.
Thank you

Mahdi Keivanloo
- 11
- 2
1
vote
2 answers
How to set Focus on Input using Tab Key Press in Next Table Cell
Following are scenarios I m implementing using JQuery in HTML
When a user double click on table cell it should a new input inside
the Double Clicked Cell [Done]
When a user KeyPress [Tab] and it should move to next Cell [Done]
In Case of 2…

Amit Prajapati
- 13
- 1
- 5
1
vote
2 answers
How to prevent events from acting in nested divs when using React Hooks
I have nested div elements. Outside there should be events to move and to click. I want to enable a nested element to act as a button and to prevent the event from outside to act. In the example when we click on the red part, both events are…

user
- 117
- 9
1
vote
1 answer
Trigger textbox bubble event on date change
$(document).ready(function () {
var lblupdate = $(".lblupdate");
for (var i = 0; i < lblupdate.length; i++) {
lblupdate[i].addEventListener('click', OnLabelClick);
}
});
…

Ankita
- 1,416
- 4
- 17
- 42
1
vote
2 answers
Event bubbling and capture on a root element with nested elements
I am trying to capture the id on each card from the root element. However, every time I click on a nested element I get empty string. However, I want the id from the wrapping card while listening on the root element cards. I want to handle both…

Rick
- 1,035
- 10
- 18
1
vote
1 answer
Javascript Events addEventListener Last Parameter
Q) My point is that whenever i put the last parameter of addEventListener either true or false in both situation the target of event (e.target) remain same i.e img , in the code below you can see i put the last parameter true which means capturing…

Haseeb Jumani
- 65
- 1
- 6
1
vote
1 answer
React Synthetic Events Bubble Capture with Components
I am researching React Events at the moment and I have noticed an unusual issue regarding event bubble and Capture.
If I have a nested group of div tags, all with their own onClick/onClickCapture, then this works as expected. Events trigger…

Garry Taylor
- 940
- 8
- 19
1
vote
1 answer
AngularJS 2 Change Detection is Bubbling / Capturing?
I am trying to figure out, whether what is called Change Detection in AngularJS 2, actually corresponds to picking up events from the Capturing Phase and Bubbling Phase in ReactJS. Is that so? Could anybody provide an AngularJS 2 example?
ReactJS…

Socrates
- 8,724
- 25
- 66
- 113
1
vote
1 answer
Why can't I prevent form submission inside a handler for the submit event in jQuery?
Suppose I have a form with id 'edit-resource' that will appear later in a modal dialog.
I attach a listener to the document like so, such that it will capture the event no matter how many times the modal form is posted back and…

Triynko
- 18,766
- 21
- 107
- 173