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
2 answers

stopPropagation function reading not defined

I have a page with a lot of e.stopPropagation so what I decided I would do was to create a function. here is code function stopProp(name) { if($(e.target).hasClass(name)) { e.stopPropagation(); } } Though each time in console it does not…
EasyBB
  • 6,176
  • 9
  • 47
  • 77
0
votes
5 answers

How to prevent/stop event bubbling/propagation on page load in asp.net

I would like to know if I can prevent the event bubbling / propagation on the page load based on condition like: protected override void OnLoad(EventArgs e) { // If the user press F5 from the browser if (IsRefresh) { // Here I…
Ahmed Magdy
  • 5,956
  • 8
  • 43
  • 75
0
votes
1 answer

jQuery Propagation issue with collapse element

I have some jQ logic that relies on Bootstrap's .collapse events 'shown' and 'hidden' and inside of one of the collapsible elements is a table that has collapsible rows. When a row in the sub-collapse is shown or hidden it is firing the parent Div's…
DavidScherer
  • 863
  • 1
  • 14
  • 26
0
votes
1 answer

Function to display values stopped working when I added this stopPropagation function

I am styling a few MultiSelect elements with unordered () HTML lists, but when I added the most recent function (to close the container when another element is clicked) another one of the functions stopped working - the one which displays the values…
Chaya Cooper
  • 2,566
  • 2
  • 38
  • 67
0
votes
3 answers

JQuery stopPropagation on .live() when handlers already exist and are bound

I'm aware that live calls bubble up through the doccument and that is why I'm having issues. Unfortunately I'm using third party libraries that bind elements and would like to create a case in which a click event isn't bubbled up to those…
Pomme.Verte
  • 1,782
  • 1
  • 15
  • 32
0
votes
1 answer

StopPropogation - not working to disable parent anchor tags

I am currently trying to change the color of a child element on click. The parent element links to another page. I was hoping stopPropogation would work, but it isn't. The following is my jQuery code: $('.child').click(function(){ …
jstacks
  • 2,437
  • 8
  • 32
  • 48
0
votes
1 answer

Have div within a fixed div catch mouse clicks?

I'm using a slightly modified version of this modal window: http://blog.avtex.com/2012/01/26/cross-browser-css-only-modal-box/ One of the modifications I've made is to add onclick="history.back(-1)" to the overlay and vertical-offset divs in order…
David
  • 1,175
  • 1
  • 16
  • 29
0
votes
1 answer

Can't get fancybox link working inside toggle down box

Here is my problem. I have some custom jquery written to toggle down a login form on my site. I then added some code I found here to close that box if you click off it. The problem comes in because I have a link to a fancybox inside this div…
Sean
  • 344
  • 2
  • 12
0
votes
2 answers

How do I stop resize function from firing after a css value has changed?

I'm trying to stop a resize function from firing after a css value has changed via a CSS media query. This doesn't work ... I want "there IS a toggle" to appear only once. how do I kill it? $(window).bind('resize', function(event) { if…
Lauren
  • 255
  • 4
  • 13
0
votes
3 answers

stop propagation if I type repeatingly

I'm building a custom search engine for a website and the search is done via AJAX on keyup event, so when you start typing ( if you type more than two characters and after the string is trimmed ) an AJAX call to the server is done. It works…
Roland
  • 9,321
  • 17
  • 79
  • 135
0
votes
1 answer

Prevent underlying button click JQuery Mobile

Hi I have a autocomplete on my homepage on my mobile site. When I enter text, some of the autocomplete entries will appear on top of a button. When I click on the entry that hovers above the button, the button event is invoked. Is it possible to…
HansElsen
  • 1,639
  • 5
  • 27
  • 47
0
votes
1 answer

jQuery stop propagation for all children of body using the on() event

I have a script that is disabling the scrolling of the body element when I have a popup box showing, however I do not want to disable scrolling for the popup box, (or any other scrollbars other than the main body one), I have established what I want…
Dylan Cross
  • 5,918
  • 22
  • 77
  • 118
0
votes
2 answers

Confusion regarding event bubbling and stopPropagation and then permitting bubbling

My menus work like this: each menu item (e.g., Menu Item One below) is in a in a table nested inside ANOTHER . That outer has some onclick event handler (here called "processMenuClick()").
user1693404
  • 173
  • 1
  • 12
0
votes
1 answer

Hiding menu by clicking any where in the page

I have this code but it seems that it always fire the event attached to 'html', because when i click on the .optTrigger then menu shows, and click on it again, it does that flickering thing, it hides the menu for a second and shows it again, so i…
Rafael Adel
  • 7,673
  • 25
  • 77
  • 118
0
votes
5 answers

How to stop function propagation after first click with jQuery

I have some click function... whole action is fine but if i fastly doubleclick at call button some elements generates two times. Can you tell me how to stop function propagation after first click? Much thx for help, and this is my…
Lukas
  • 7,384
  • 20
  • 72
  • 127