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

After first click, If ajax is done, on second click e.stopPropagation

When some div is clicked, a div is appended and ajax loads some data inside the newly created div, problem is that when a second click occurs on the div that causes the append, another div is created which is the duplicate of the previous div which…
user3109875
  • 828
  • 12
  • 35
0
votes
1 answer

stopPropagation not working in this instance

Okay so a simple thing that I don't know how to search for, wasn't able to get an answer anywhere... Basically, I'm using XML to populate a list. What happens is when clicking on the first tier li, it adds all the different suburbs to the child ul.…
Hiriji
  • 69
  • 1
  • 9
0
votes
3 answers

stopPropagation() not working for audio element in Firefox

I have an HTML5 audio element embedded in an anchor tag. I know it's a bit weird, but it actually makes a lot of sense in my specific use case. I have the problem that, whenever I click the play button, a click event is fired on the parent element…
Jules Colle
  • 11,227
  • 8
  • 60
  • 67
0
votes
2 answers

Can't stop propagation of event in Jquery

I'm a bit confused. I have list of what are names with a checkbox next to them. The list is constructed dynamically in after doing a post to the backend. Problem is whenever I click on the checkbox it immediately gets unchecked. The reason I know…
Ebbs
  • 1,030
  • 3
  • 20
  • 38
0
votes
1 answer

Stop propagation not working as intended. Jquery

I have some jquery code that hides a div when scroll position does not equal 0. This works well however whenever I scroll up and down at the top of the page very fast, or use a go to top of page link, the events seem to bubble up, making the div…
mpn
  • 1,000
  • 1
  • 13
  • 33
0
votes
0 answers

cursor stoppropagagtion on child elements

So, I'm using the following to make a container div link to another website: $("#container").click(function(e) { var senderElement = e.target; //check if sender is the DIV element window.location = 'http://domain.com'; return…
vulgarbulgar
  • 845
  • 1
  • 13
  • 28
0
votes
0 answers

jQuery event.stopPropogation is causing page to change

I can navigate to the page fine and all of the other AJAX jQuery stuff is working. I have a div on the page in a collapseable set. In the header of each collapsible element I have a few spans which control the layout in the div header of each…
BostonMacOSX
  • 1,369
  • 2
  • 17
  • 38
0
votes
1 answer

Prevent accordion header from bubbling down a click onto a checkbox in BigCommerce options?

we have a bit of quirk while using a checkbox inside an accordion for BigCommerce product options. We are a bit stumped and are unsure how to tackle this. Basically we need to preserve the default state of checkboxii regardless of its parent…
dhaupin
  • 1,613
  • 2
  • 21
  • 24
0
votes
0 answers

I'm having trouble with my event propagation function in firefox

I have a master function that I have to disable my event propagation: project.disabledEventPropagation = function (e) { if (!e) e = window.event; if (e.stopPropagation) { e.stopPropagation(); } else { …
DannyD
  • 2,732
  • 16
  • 51
  • 73
0
votes
2 answers

jQuery stop event bubbling on input blur method?

I'm having a problem with jQuery and hoping for your help. I've been searching for a long time for a solution, but came up with nothing. I have a input field, and when I click (focus) on it, some div, with a specific ID appears in DOM, and when I…
Lado Lomidze
  • 1,503
  • 5
  • 19
  • 32
0
votes
3 answers

jQuery - .slideUp() not works after event.stopPropagation();

I have a problem with event.stopPropagation (), in my code: (! When put. Show () after this event works perfectly, however, as put. SlideUp () does not work! What I truly want is when the user click the search bar and the same body and the chat is…
Igor
  • 3,573
  • 4
  • 33
  • 55
0
votes
1 answer

stopPropagation not working on draggable resizble div

I have a div which is draggable and resizable. On double click I want to use stopPropagation to make the contents of the div to be selectable. But for some reason the stopPropagation is not working. can anybody please have a look at my code and see…
Barry Watts
  • 784
  • 2
  • 14
  • 43
0
votes
1 answer

Chrome not allowing tab prevendefault

I have a form on which user can tab and jump to different elements. i was to stop the tab when it reaches a special anchor tag. this is the code which work in firefox $('.next-tab').keypress(function(e){ var code = (e.keyCode ? e.keyCode…
Iori
  • 660
  • 1
  • 10
  • 19
0
votes
1 answer

jQuery draggable working in jsfiddle but not on webserver

I have a draggable div with a nested resizable div and then nested inside this I have a div that is editable with nicedit. it all works wonderfully within jsfiddle but when I run it on my webserver the stopPropagation(); stops the draggable and…