Questions tagged [stoppropagation]

stopPropagation is a method of the event object that prevents further propagation of the current event.

stopPropagation is a method of the event object that prevents further propagation of the current event. This prevents ancestors of the current node from receiving the event.

392 questions
0
votes
1 answer

stopPropagation dilemma?

First, example js code: $(function(){ $('body').click(function(){alert('body clicked');}); $('body').on('click','.post-header',function(e){ e.stopPropagation(); …
ilcognito
  • 37
  • 7
0
votes
0 answers

Higher z-index div doesn't hide lower z-index click events: event propagation issue

I've read, and read, but I'm still missing something. I have an click event that displays a div +----------------------------------------------------+ | | | [ Click Here ] [ Another Click…
Mayo
  • 369
  • 1
  • 10
  • 24
0
votes
1 answer

How to listen children's events when children stop propagation

I need to watch children's events in Document level, but if the children stop propagation by using method stopPropagation(), I cannot listen those events occur in children. Can someone know a better way to do this? EDIT: now I want to create an…
nailiebreak
  • 73
  • 1
  • 8
0
votes
1 answer

Stop propagation: bubble down?

Im not sure this is a propagation issue as much as a design flaw and I have read that propagation issues are all ways a bubble up but here it goes. I have a table edit grid. Each cell contains two main blocks: Editing div(contains a form to edit the…
Al Ex Tsm
  • 2,042
  • 2
  • 29
  • 47
0
votes
3 answers

Angular On click stop propagation event

How Do I make a call to Angular function in my jQuery code? I tried the f $(document).on('click', '.myBtn', function(e) { angular.element($(".someClass")).scope().clearBtnItems(); e.stopPropagation(); …
Smitha
  • 6,110
  • 24
  • 90
  • 161
0
votes
0 answers

stopPropagation prevents ajax success callback function from being called

I have a button inside a div
and a jquery functions which run on-click event: $("[data-details-rid]").on('click', function (event) { var request_id =…
dsb
  • 2,347
  • 5
  • 26
  • 43
0
votes
4 answers

JQuery how to stop event propagation

I'm looking to stop the event from propagating so that every time I click "done", the alert only shows up once. Here is my code: $('body').on('click', '#product', function () { var x = "hi"; $('#done').click(function () { alert(x); …
NotToBrag
  • 655
  • 1
  • 16
  • 36
0
votes
1 answer

jQuery propagation issue with navigation arrows

Clicking a big image of a trailer (top left) on my page opens a lightbox with a larger version of the image. Then, clicking anywhere closes it with this code: $(document).on('click', function() { $('#fab_gray').remove(); }); However I want to…
drake035
  • 3,955
  • 41
  • 119
  • 229
0
votes
1 answer

The event is not stop the firing in jquery

I have used the return false preventDefault stoppropogation but the the of them not stoping the condition to execute further when data is 1 $(document).on('click','.lunch_out',function(e){ //lunch out var object = this; …
Raja Manickam
  • 1,743
  • 4
  • 20
  • 28
0
votes
1 answer

event.stopPropagation Firefox

I have a JavaScript function that needs to stop bubbling. The code as I have it looks like this. function clickedOrderSample(element, product, color, entry_id) { var cname ; cname = element.className ; event.stopPropagation ?…
0
votes
2 answers

Set jQuery CSS Variable Only Once

This addresses my issue somewhat, but not entirely: Optimizing code to define variables only once, code only works when the vars are in change function and for the code outside change I redefine? It's a pretty elementary requirement -- I want to get…
jimiayler
  • 674
  • 2
  • 11
  • 27
0
votes
1 answer

Java Positive flow and negative flow exception handling

I am writing a Java code to fetch the object information by passing the object id. My case will be like this: 1. Its not necessary that all Object ID's have information which means returns null. 2. But If the ID has a information, then I will…
Rajyalakshmi S
  • 173
  • 1
  • 4
  • 16
0
votes
2 answers

Add key eventlistener to last generated input field and stop it after typing

When I click a Button, a form of an unspecific number of input fields will be generated in my dom plus an empty input Field. I want to add something like a keypress event to the last generated empty input field. When I start typing, into the last…
user_name
  • 129
  • 7
0
votes
1 answer

Why doesn't stopImmediatePropagation work in this fiddle?

I am trying to prevent another event from occurring by using stopImmediatePropagation(). The event is tied to the same element I am using to bind to stopImmediatePropagation(). The scenario is that I am using a library (tour.js) for a web tour.…
Will Hua
  • 1,729
  • 2
  • 23
  • 33
0
votes
1 answer

stopPropogration with .toggle() and jQuery

Looking to add stopPropogation to the following dropdown menu. $(document).ready(function() {$('.js nav #nav-ads').toggle( function() { $('.dropdown-js').fadeIn(); $('.js nav #nav-ads…
Danny
  • 51
  • 8