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

Changing color of a grid box with javascript

I am trying to learn javascript and i made a grid with some boxes in it and i'm trying to change the color of the grid box when i click on it. I know i can use jquery i did it and worked but i want to do this with javascript only so this is my code…
Reşit Körsu
  • 578
  • 3
  • 8
  • 18
1
vote
0 answers

jQuery: how to still get a scrollable div when window mousewheel event is unbound

I have a lightbox and I want the webpage behind not to scroll on mouse wheel when that div is open, only the div content should remain scrollable. And when the div is gone, then the page can be scrollable again. But I'm stuck. I can bind/unbind my…
Bachir Messaouri
  • 754
  • 2
  • 8
  • 31
1
vote
1 answer

How to bind a nested property in a view with aspnet core

I am starting to learn ASP.NET Core, and I would like to know how to bind a nested property in the view. I have these two objects: public partial class Club { public Guid Id { get; set; } public string IdUser { get; set; } public string…
jolynice
  • 514
  • 1
  • 8
  • 25
1
vote
0 answers

boost::thread pool and boost::bind or boost::function

How can i get return value from a boost thread pool? i tried to attach a bound function to a boost::function: boost::function f0; //void cause the parameter passed is always the same. func = bind( static_cast(&MyClass::operator+), this, arg…
Sam
  • 11
  • 1
1
vote
1 answer

Binding a checker in SystemVerilog

I would like to bind a checker construct to a VHDL module (in QuestaSim) to ensure some verification properties, without having to declare and bind a more (complex) module/interface/agent structure. Without further ado I present you the example code…
1
vote
1 answer

Is there a way to have lexical `this` in methods using the ES6 shorthand method notation?

First question on SO and I hope I’m not duplicating anything; I’ve looked at other questions and think mine is different enough to warrant asking. Basically, is there a way to have the this that’s in the method body of a method written using the…
abigsmall
  • 67
  • 6
1
vote
2 answers

std::bind do not work with std::sort

why it works only if the second argument is greater than 3. And how can I fix it? if I do the same with copy_if it works! Task: Examine the effect of the functor std :: bind. Try using it to form the conditions of the standard functor std ::…
1
vote
1 answer

Boost::bind problem binding overloaded operator

I've a class with [] operator overloaded. I also have a thread to start... How can I bind [] to the thread? I tried this: threadpool.schedule( bind( static_cast< MyClass (MyClass::*)(const MyClass &arg )>( &MyClass::operator[]), arg ) ) but VS2008…
Sam
  • 11
  • 1
1
vote
1 answer

Is it possible to write a shim for a existing library that uses `document` and still keep it pristine?

I'm importing a library into a ReactNative project that uses document roughly 50 times. Because ReactNative, doesn't use a document, I will have to rewrite these lines in order for it to work in a ReactNative environment. The question is.. Is it…
Trip
  • 26,756
  • 46
  • 158
  • 277
1
vote
0 answers

Bind each row of NSTableView to separate property of object?

I have a main NSArrayController bound to an NSTableView with each row containing an instance of MyObject. MyObject has about 30 properties, but the NSTableView only has 5 columns (to show the most important properties). When a row (or more) is…
Trygve
  • 1,317
  • 10
  • 27
1
vote
2 answers

How to access "this" from a React component in a callback

I have a React component that renders a chart using Dygraphs. I want to hide the series when I click on it's label. createGraph() { this.g = new Dygraph( this.refs.graphdiv, this.state.options.data, { strokeWidth: 1, …
1
vote
2 answers

Angular2: Passing an object to bind event from parent to child

The binding works fine for title, subtitle, button.icon and button.name but not for button.action parent.component.html parent.component.ts export class…
erichmuller
  • 37
  • 1
  • 7
1
vote
3 answers

Update dom according to function return value

I am trying to make a list where you can only have one active element. The state updates just like it is supposed to, but the isActive function only activates at first and then doesn't when the state changes. Here is a working example of what I want…
Waltari
  • 1,052
  • 1
  • 30
  • 64
1
vote
1 answer

WPF bind GradientStopCollection

How to bind GradientStopCollection with some GradientStops in ViewModel
Koenig04
  • 25
  • 6
1
vote
2 answers

How can event handlers be dynamically moved to a different element with jQuery?

jQuery plugins make code much more reusable. I previously made a plugin that would open a dynamically created lightbox that pulled information from an IMG tag's attributes. This plugin registered a click event handler for the image. I recently made…
BrendonKoz
  • 463
  • 1
  • 6
  • 18
1 2 3
99
100