Questions tagged [dynamic-rebinding]
24 questions
106
votes
10 answers
How can I change the variable to which a C++ reference refers?
If I have this:
int a = 2;
int b = 4;
int &ref = a;
How can I make ref refer to b after this code?

Taru
- 2,562
- 4
- 22
- 30
5
votes
3 answers
When should one use the temporarily-rebind-a-special-var idiom in Clojure?
I've noticed that some libraries such as clojure-twitter use special vars (the ones intended for dynamic binding that are surrounded by asterisks) for oauth authentication. You save your authentication in a var and then use (with-oauth myauth ..). I…

Rayne
- 31,473
- 17
- 86
- 101
4
votes
2 answers
How to dynamically rebind JQuery Objects
I am making a module for the Joomla! page of a client that uses Ajax to render different queries to the database. The result of these queries is that I regenerate the entire HTML code of the different DIVs. Within my jQuery Object I have a function…

Alberto
- 151
- 1
- 8
2
votes
2 answers
How do I maintain (or reapply) jQuery binds on new elements after using jQuery "clone()"?
I have a form with which I use jQuery ".clone()" to add new rows. Everything looks great, however I have a binding problem. Basically, on initialization, I use the jQuery ".datepicker()" function for one field (based on class). If I use…

humble_coder
- 2,777
- 7
- 34
- 46
2
votes
1 answer
Unity rebinded Keys names are wrong on azerty keyboard
So I have a working rebinder script, but the problem is when I want to display the rebinded keys names.
I am using the new unity input system
The code below returns the right names for a qwerty keyboard, but not for a azerty keyborad !
However, the…

Nathan Barraud
- 21
- 4
2
votes
2 answers
jQuery-AJAX to rebind dropdown list to results from stored procedure
I have a dropdown list of peoples names that is quite long. As many as 2,000 names. I would like to make it easier to find the name the user is interested in by limiting the dropdown list to a subset of names at a time. I have done this by creating…

webworm
- 10,587
- 33
- 120
- 217
2
votes
1 answer
Override local bindings from closure in Clojure?
I am interested in if it is possible to redefine or override the bindings that are the result of a closure when programming in Clojure?
For example I can do the following just fine:
(defn triple-adder-fn [a b] (fn [x] (+ x a b)))
(def triple-adder…

Kasuko
- 166
- 7
2
votes
2 answers
rebinning a list of numbers in python
I've a question about rebinning a list of numbers, with a desired bin-width. It's basically what a frequency histogram does, but I don't want the plot, just the bin number and the number of occurrences for each bin.
So far I've already written some…

urgeo
- 645
- 1
- 9
- 19
2
votes
1 answer
Can not rebind scroll event?
I want to rebind window scroll event in ajax call
$(window).scroll(function(){
column_height = $("#first_column").height();
screenTop = $(window).scrollTop();
window_height =…
user503853
1
vote
2 answers
jquery rebinding event
I am trying to rebind the keydown event on focusout. Not really sure how what to pass to the keydown when rebinding. I tried passing this, but had no luck.
Anyone? Thanks
$('input.text').bind({
click : function(e) {
…

slik
- 5,001
- 6
- 34
- 40
1
vote
2 answers
jQuery: button not working in html returned by ajaxForm - how to rebind?
Trying to get a button working (jQuery UI chrome and jQuery functionality) in a second form that is in the html returned by ajaxForm that has been called on a first form. The button works in the first form - the jQuery UI chrome is visible and the…

netefficacy
- 163
- 3
- 13
1
vote
3 answers
Reapply JS to dynamic generated content
What is the best way to reapply JS to dynamic generated content? I said "reapply JS" and not "rebind events" because a meant "reapply JS that bind events and also changes the dom", what I have done so far is something like this:
main.js:
function…

lucaswxp
- 2,031
- 5
- 23
- 34
0
votes
1 answer
Rebind to asp:Listbox on postback
When a postback occurs on my page, changes are made in my database and I want those changes to be reflected in my ListBox. It has a datasource that is set up in the .aspx side of things (DataSource = "myDataSource"). Right now, on a postback, these…

Hani Honey
- 2,101
- 11
- 48
- 76
0
votes
0 answers
How to use the rebind of Unity?
I have followed multiple tutorial to do a rebind interface for ma game.
However, It is not working.
To check if it worked, I made this script:
I am using the rebind UI asset from the Input system package.
Here is an exemple of the button to…

Iupyou
- 21
- 6
0
votes
0 answers
Unity new input system wrong displayName with AZERTY keyboards
I have made a rebind system with the new input system, and it is working well. My only issue is that the name of the rebinded control is displayed as if I was using a qwerty keyboard even when I am actually using a azerty one.
I am using this to…

Nathan Barraud
- 21
- 4