Questions tagged [bind]

This tag means different things in different contexts: consider using less ambiguous tags instead. Common meanings include: the bind function in socket programming; binding to naming contexts; the bind method in jQuery; BIND the DNS server (named), . For boost::bind in C++, use [boost-bind]. Do not use this tag just to say that you're binding something to something else.

  • In and , bind() is a system call that associates an IP address and port number with a socket.
  • In , Function.prototype.bind() is a method to attach a function to a fixed this value.
  • In , bind is a method to attach a handler to an event. This method was deprecated in jquery v3.0
  • In , 'bind' is a connect/authenticate step.
  • in , 'bind' is the process of associating an object with a name in a context.
  • in , 'bind' is the process of associating a remote object with a name in an RMI Registry.
  • In , 'bind' is the process of associating an exported object with a name in a COSNaming context.
  • In bind or binding refers to specifying the target of an inject request.
  • In , questions about the library's boost::bind function should use the tag instead and questions about the function std::bind should use the tag .
  • BIND, the Berkeley Internet Name Domain is the most commonly used DNS server software on the Internet. Questions about BIND are often off-topic for StackOverflow and may belong on SuperUser.com or unix.stackexchange.com.
  • In , "bind" often refers to the >>= operator. Questions about it should use the tag .

Do not use this tag just to indicate that you're binding something to something else — use tags that are related to the topic of your question.

4006 questions
10
votes
1 answer

Cross browser preventDefault() without jQuery

I wrote this bind method and am having an issue in my preventDefault() method to work in IE. The callback line never executes. Can someone provide assistance? Thanks! var preventDefault = function (event) { if (window.event) {…
Tommy
  • 131
  • 1
  • 4
9
votes
3 answers

c++0x std::function as a method argument

I'm attempting to pass an std::function via a method like so: class dispatch { public: deliver( std::function task ); }; This works as expected. However i wish to pass arguments to some of the methods supplied as the task but…
Ben Crowhurst
  • 8,204
  • 6
  • 48
  • 78
9
votes
2 answers

bind with INADDR_ANY

If I bind a socket to INADDR_ANY I know that it will accept incoming connections on any of IPs configured on the server. Lets say I have 1 IP configured when I make the bind() call and then a new IP gets configured. Will be bind() accept connections…
Manohar
  • 3,865
  • 11
  • 41
  • 56
9
votes
3 answers

How I can bind background color of ion-button in ionic 4

I need dynamic colored button in ionic4. This is my code, but not working Buttton
user11101724
9
votes
1 answer

How do I do a monadic bind to an async function?

Consider this basic implementation of the maybe monad: public class Maybe { private readonly T value; private Maybe(bool hasValue, T value) : this(hasValue) => this.value = value; private Maybe(bool hasValue) => HasValue =…
Good Night Nerd Pride
  • 8,245
  • 4
  • 49
  • 65
9
votes
1 answer

Setting up dkim setup dns zone syntax error on bind in ubuntu

I installed dkim. Now when I setup dns, I have a syntax error This is dns for dkim: 201704._domainkey.example.com IN TXT "v=DKIM1; h=rsa-sha256; k=rsa; s=email; p=blah blah;" root@example:~# named-checkzone example.com…
pedro
  • 447
  • 4
  • 15
9
votes
4 answers

Avoiding inline functions in React: How to bind functions with arguments?

I'm trying to follow the no-bind rule for React using the pattern that they have recommended with ES6 classes: class Foo extends React.Component { constructor() { super(); this._onClick = this._onClick.bind(this); } render() { …
TheRealFakeNews
  • 7,512
  • 16
  • 73
  • 114
9
votes
3 answers

Check state of button in tkinter

On a tkinter GUI I want to print different messages on a canvas depending on the state of a button I hover over. If the button itself is DISABLED, I want to display another message on the canvas than when the button is NORMAL. I have this (stripped)…
Joris Hilberink
  • 251
  • 1
  • 2
  • 8
9
votes
3 answers

Why is it necessary to use bind when working with ES6 and ReactJS?

Using ES5 development with ReactJS, a component can be stated as the following: var MyComponent = React.createClass({ alertSomething: function(event) { alert(event.target); }, render: function() { return (
Francisco Maria Calisto
  • 2,841
  • 4
  • 22
  • 54
9
votes
2 answers

How to bind yaml list to a java list in springboot?

I have a list in my yml file which i need to bind in my java springboot application, how do i go about it ? fruits: - Apple - Bannana Ideally i want something like @Value("${filters.siteID}") List siteIDs;
curious_cat
  • 886
  • 2
  • 11
  • 14
9
votes
5 answers

JavaScript `bind` method does not work as expected

The following controller works without problem. app.controller('foo', ['$scope',function ($scope) { $scope.delete = function(){ bar($scope); } }]); I tried to make it a little cleaner by using bind: …
Handsome Nerd
  • 17,114
  • 22
  • 95
  • 173
9
votes
1 answer

Using this within a promise in AngularJS

Is there a best-practice solution to be able to use within in promise this? In jQuery i can bind my object to use it in my promise/callback - but in angularJS? Are there best-practice solutions? The way "var service = this;" i don't prefer…
xyNNN
  • 492
  • 3
  • 21
9
votes
5 answers

jQuery bind and unbind event with parameters

I am trying to bind an event to a textbox that contains parameters. The following keep looks as if it should do it, but every time the page loads, it gets executed. jQuery(function(){ jQuery('#textbox').bind('click',…
Paul Knopf
  • 9,568
  • 23
  • 77
  • 142
9
votes
3 answers

How do I clear an address for Glassfish 4.0 with default settings?

I get the following error when I'm trying to start my glassfish server with default settings from netbeans IDE 7.3.1: java.net.BindException: Address already in use: bind Details at: http://ideone.com/wKbat3 What can I do? How do I clear the…
MciprianM
  • 513
  • 1
  • 7
  • 18
8
votes
5 answers

disable click event handler for a duration of time

I've already looked at similar questions but the answers provided involve buttons and not div elements. When I click the div element with id click, the click event handler is disabled by unbind() and sets a timer for 2 seconds. After 2 seconds, the…
user701510
  • 5,563
  • 17
  • 61
  • 86