Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
57 views

Jquery form submit, prevent default, unbind -> then submit. What am I doing wrong?

Ok, so I've been scratching my head for the past 3 days. Can't figure out what I am doing wrong. I have the following html structure: <!DOCTYPE html> <html lang="en"> <head&...
cnapsys's user avatar
0 votes
1 answer
740 views

Remove shortcut for Jupyter

I use Jupyter lab on OSX with a Swiss-German keyboard layout; in this layout the '@' character is bound to the operation «Jump to line». How can I unbind this shortcut (globally)?
Urs-Martin's user avatar
0 votes
1 answer
63 views

jQuery: How to prevent item prices from being added to the total when they are unchecked?

I'm developing a custom checkout and have a bit of trouble with the jQuery. What I want is for each item that's checked to be added to the Subtotal and the Total values. Also, when an item is ...
Brian Francoeur's user avatar
0 votes
3 answers
61 views

jQuery scroll remove function after one use

I have a masthead that,on page load sits at the bottom of the viewport. On hover it scrolls to the top. $('.home #masthead').hover(function(){ $("body").scrollTo($(this), 1000); }); ...
Chris Pink's user avatar
  • 1,988
0 votes
0 answers
169 views

What is the correct way to deep clone / unbind a object in Vuex

I'm constantly getting the "[vuex] do not mutate vuex store state outside mutation handlers." error on my application. When I use a getter inside a component, I solve it destructuring the ...
Lucas Gabardo's user avatar
1 vote
1 answer
126 views

javascript unbind event not unbinding even though it fired

I have some code that when called inside an object, binds an element on the page to a click. When I press a start button again, the elements are updated and I'm adding an event listener for click ...
Nathan Leggatt's user avatar
1 vote
1 answer
208 views

Deactivate the drag-and-drop feature

def drag_and_drop(self): """ Method allowing to drag and drop a pawn """ if self.game.onOff.get() == 1: self._drag_data = {"x": 0, "...
chessguy's user avatar
  • 165
0 votes
2 answers
52 views

Submit form after unbinding

$("#qwerq").submit(function (e){ e.preventDefault(); var check=0; if($("#firstName").val() == "") { check=1; } if(check!=1){ $("#qwerq").unbind("submit") ; ...
VATSAL PATHAK's user avatar
0 votes
2 answers
127 views

jquery: unbind a specific function leaving the other one

I have a simple question: i have two different functions binded to click event: $("#selector").click(function one() { // stuff }); $("#selector").click(function two() { // other stuff }); I want ...
DuchSuvaa's user avatar
  • 676
-2 votes
1 answer
60 views

remove all events attached to a selector, immediately add a new [closed]

$('.home') .unbind('click') .attr('onclick', '') .each(function() { this.onclick = null; }); I have found the above jQuery works, but I would like to immediately add a new function ...
Lieutenant Dan's user avatar
0 votes
1 answer
387 views

Service onCreate() is not being called

I have a activty A and after a button click I am starting another activity B in which I am starting a service using bindService as below: Intent intent = new Intent(context, RadioService.class); ...
bhaskar's user avatar
  • 1,080
1 vote
1 answer
58 views

Jquery: remove eventhandler(e.g. 'cklick'), but keep other eventhandlers (for 'click') [duplicate]

if have a small jsfiddle example: https://jsfiddle.net/skmqjwt7/ I have multiple eventlisteners. All listening the same event (button.a click in the fiddle example). Now I want to disconnect one ...
maSu's user avatar
  • 13
0 votes
1 answer
131 views

How to unbind an onload event on an external SVG after it was initially completed?

I have a rather complex and special issue. I have a div container which is initially hidden (display: none) and which is shown when a user clicks a button (using the jQuery function show()). Within ...
JoeBe's user avatar
  • 1,290
0 votes
0 answers
946 views

How to unbind views in Kotlin/Android?

How do you unbind a view in Kotlin for Android, and/or properly dispose of view elements for fragments and custom views in onDestroy/onDestroyView? In Java/Android, you might do your cleanup in ...
jtompkj's user avatar
  • 93
0 votes
1 answer
391 views

jQuery unbind with document.on?

My button is firing twice. Other SO posts say to unbind the click function from the document. The problem is that the HTML elements are being dynamically appended to the document, so i need to call: ...
bagofmilk's user avatar
  • 1,550
0 votes
0 answers
270 views

Python : How replace double click in Treeview

I have a problem to replace the double click. I have a treeview and when I click it open a node. I want to replace by another function but he keep the open/close node. I have do many test but without ...
Attila49's user avatar
0 votes
1 answer
3k views

How do I unbind a Logitech G910 MR key

I have been having an issue with my F14 key ( M1G7 on Logitech G910 keyboard ) and even though I rebind the key, and do everything to try and locate where the keypresses are coming from, I can't find ...
Acecool's user avatar
  • 754
1 vote
3 answers
2k views

jQuery unbind and bind keypress

I have textbox with javacript function using keypress. <input type="text" id="statusSheet"/> JS $('#statusSheet').keypress(function (e) { if(e.which ==13) { $('#statusSheet')....
HiDayurie Dave's user avatar
0 votes
1 answer
40 views

How to restart the Jquery events, to avoid the repetition of each one of them?

I have an index page that contains the following events. <div id="sub_page"></div> $(document).ready(function () { $("a.menu_navegacion_abrircaja").on('click', function (ev) { ...
Carmen Cisterna Chamblas's user avatar
0 votes
1 answer
112 views

jquery unbind multiple events by namespace assigned to a single element

I know I can write a delegated function like this: $("table").on("click.customNS", "td", function(){ //do something }); And then to unbind, just: $("table").off(".customNS"); So how would it ...
Avelino Paredes's user avatar
0 votes
1 answer
16 views

Preventing to stack clicks with .unbind and setTimeOut, doesn't work on mobile

i have this issue where i wanted to prevent the user to start clicking the hamburger menu and making it go crazy by using unbind and setTimeOut. It works perfectly on desktop, but not on mobile. I ...
Oxyd_'s user avatar
  • 1
3 votes
1 answer
3k views

unbinding a function to a button in kivy

Consider the following code: from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.button import Button class First(BoxLayout): def __init__(self, **kwargs): ...
juztcode's user avatar
  • 1,335
1 vote
1 answer
48 views

Can I unbind an "on" update function?

Is it possible to unbind a .on "update" function? Example: price_slider_element.noUiSlider.on('update', function( values, handle ) { // Code });
Michael's user avatar
  • 443
0 votes
0 answers
118 views

How to use bind and unbind function instead of on click function on class using jquery?

Here, I have a very small module. In which I have a timeline and slideshow. In my timeline, Everything works fine. But when I going to the slideshow. It also works fine using on click function on the ...
HELP's user avatar
  • 117
0 votes
2 answers
231 views

How can I use bind and unbind with this?

I have two click functions, one function is for adding vacation in a list, the other function is for removing vacation from the list. When I add vacation to the list, I don't want to be able to click ...
Tony's user avatar
  • 115
-1 votes
1 answer
137 views

How to bind and unbind click event from two different functions?

I have two click functions, on function is for adding vacation in a list, the other function is for removing vacation from the list. When I add vacation to the list, I dont want to be able to click on ...
Tony's user avatar
  • 115
1 vote
1 answer
456 views

bind after unbind window Jquery

I'm creating a page with two section where I load content .load() into #container by clicking on the titles. <div id=dogs>[dogs]</div> <div id=cats>[cats]</div> <div id=#...
joe's user avatar
  • 69
0 votes
1 answer
26 views

unbind(scroll) stop all codes working with scroll method jquery

I'm working with an scroll method to show an alert (sql code execution) only onces after scrolling down. $(window).scroll(function(){ if($(this).scrollTop()>200){ alert("Sql executed"...
joe's user avatar
  • 69
1 vote
3 answers
104 views

js .off() is not working on <tr> elements

I have a table with <tr> having ew <input> elements with onchange event declared at design time but filled dynamically from database. The HTML of the <td > looks like this:- <td ...
Raky's user avatar
  • 888
2 votes
1 answer
284 views

How to remove a Binding without clearing the current value?

Say I have a TextBlock namedtextBlock1 whose TextProperty is bound with another TextBox To unbind the TextProperty, I have to do this: textBlock1.ClearValue(TextBlock.TextProperty); But doing that, ...
Muzib's user avatar
  • 2,571
0 votes
2 answers
283 views

jquery- empty working only once

I have two simple lists where items go from one to the other when you click on an item. To accomplish that I use empty and append to clear from one list and add it to the other. But unfortunately it ...
Claudio's user avatar
  • 3,824
0 votes
0 answers
406 views

How to preserve data in DataGridView after unbinding it?

I need to unbind the datasource from datagridview in order to add rows programmatically, but i'm unable to keep the data preserved in the datagridview after unbinding it. any solution? here is the ...
Z odiaq's user avatar
1 vote
0 answers
57 views

jQuery - How can I bind events to an element and prevent them from conflicting such that they do not undo one another?

I am working on a timeline, and I have ran into an interesting problem which does not appear to be possible to resolve by combining the events into a single task. Please see the mark up below. My ...
Eric M's user avatar
  • 23
0 votes
1 answer
730 views

Remove or override hover text in javascript

I use a follower counter script on my blog and I was experimenting to see if I could hide it so only I knew it was there. (You have to keep it in the description for it to work.) I can't read ...
Fuure's user avatar
  • 125
1 vote
1 answer
109 views

Trying to unbind click event and attach new event

I am trying to unbind the click event and attach another click event after the button is clicked once. <small id="selectall_agriculture" onclick="refineSearch.testing('agriculture')">(select ...
Chris Atwood's user avatar
2 votes
3 answers
3k views

Ace Editor Unbinding and Re-initiating

I have 2 ace editors in the same interface. Contents are loaded dynamically into the ace editors - on click. I want to empty the editor in order to clear the screen. But, when I do this, subsequent ...
Jsp's user avatar
  • 176
3 votes
2 answers
2k views

How can I unbind every single binding from a Tkinter root window

So I have an app in Tkinter that has a lot of buttons in the first screen and when you press one you pass into a new "Window" (basically destroying all widgets and drawing the ones that are needed for ...
nikosdcs's user avatar
0 votes
2 answers
35 views

Alert popping up incrementally on updating data

I've a dynamic button to edit some data for an object. Now, once the data is updated successfully, I'm throwing an alert to the user, stating that it was successfully done. However, when the user ...
Sunny's user avatar
  • 922
1 vote
1 answer
46 views

Unbind the dynamically created edit button

I've a dynamic button to edit some data for an object. Now, once the data is updated successfully, I'm throwing an alert to the user, stating that it was successfully done. However, when the user ...
Sunny's user avatar
  • 922
2 votes
1 answer
209 views

How to set jquery unbind as toggle

Following is my script to show and hide content on click of a div. I also want to disable other div elements until the first div is clicked again. $('.leader-pic-wrapper').click(function(){ var $...
Stacy J's user avatar
  • 2,781
1 vote
2 answers
13k views

JavaScript .on("keyup")

There's an input text fires a function on "onkeyup" event. When that function fires I'm binding a "keyup" event with .on("keyup") method to get the last pressed key to find out if it was ...
Ümit Aparı's user avatar
0 votes
1 answer
1k views

Jquery unbind() not working for contact form

I am building my first contact form. I am trying to unbind my function given no error message. Code is below - for whatever reason I keep getting the follow error message in my dev console : ...
BorangeOrange1337's user avatar
-1 votes
1 answer
424 views

jQuery - undo prevent default

I have multiple checkbox and one of them had to be checked. Everything is running fine for the first time when clicking submit the "flag" is true and the preventDefault() working. But "unbind" not ...
Anup Surin's user avatar
0 votes
0 answers
35 views

Bulk unbind an XML tag

I need to perform a bulk unbind of tags from about 1000 html files, where I need to remove all P tags which are contained within an LI item: <div> <img src="a.png" /> </div> <...
user3284148's user avatar
1 vote
1 answer
3k views

Remove a circle object from a Google Map

I have checked multiple similar posts on SO but haven't yet found the answer. I have a Google map app that when you Zoom in the marker changes from an icon to a circle. It works great. The Marker ...
Pete Helgren's user avatar
0 votes
1 answer
4k views

python unbinding/disable key binding after click and resume it later

I'm trying to unbind/disable key once it's clicked, and resume its function after 2s. But I can't figure out the code for the unbinding. The bind is on window. Here's the code that I tried so far: ...
key's user avatar
  • 63
0 votes
0 answers
134 views

unbind all handler using plain/vanilla javascript [duplicate]

How will you remove all events handlers (of a type eg : all handlers for 'click') using only plain javascript ? [No Jquery/framework suggestion please] https://plainjs.com/javascript/events/binding-...
frenchone's user avatar
  • 1,597
0 votes
0 answers
766 views

Multiple dynamic onclick buttons triggering multiple times

I have several buttons that are generated dynamically. To handle the click events on those buttons I've been using: $(document).on('click', '.button-class', function() { // code here }); The ...
Thomas Charlesworth's user avatar
1 vote
1 answer
1k views

How to off (Jquery) bind or unbind specific event from any element

I want to know how to bind or unbind specific event from any element. $(document).ready(function(){ $("#div2").on("click",function(){ $("#div1").on("click",function(){ console.log("...
Maharshi's user avatar
  • 1,198
1 vote
1 answer
588 views

Unbind hashchange event

is it possible to unbind the hashchange event? I am binding it like this: jQuery(window).on('hashchange', function() { alert("ok"); }); and unbinding like this: jQuery(...
AlesSvetina's user avatar

1
2 3 4 5
8