Top "Callback" questions

A callback is a piece of code (i.e. the address or reference of a function or method or a lambda expression) that is passed as an argument to other code, which is expected to call back (execute) the argument at some convenient time.

Sort a list of lists with a custom compare function

I know there are several questions named like this, but they don't seem to work for me. I have a …

python list sorting callback
How can I pass a class member function as a callback?

I'm using an API that requires me to pass a function pointer as a callback. I'm trying to use this …

c++ callback function-pointers c++03
How to pass a callback as a parameter into another function

I'm new to ajax and callback functions, please forgive me if i get the concepts all wrong. Problem: Could i …

javascript ajax callback call
jQuery: Handle fallback for failed AJAX Request

Can jQuery provide a fallback for failed AJAX calls? This is my try: function update() { var requestOK = false; $.getJSON(url, …

jquery ajax json callback wait
How to remove all callbacks from a Handler?

I have a Handler from my sub-Activity that was called by the main Activity. This Handler is used by sub-classes …

java android callback android-handler
back button callback in navigationController in iOS

I have pushed a view onto the navigation controller and when I press the back button it goes to the …

ios callback uinavigationcontroller uinavigationitem back
Determine what attributes were changed in Rails after_save callback?

I'm setting up an after_save callback in my model observer to send a notification only if the model's published …

ruby-on-rails ruby-on-rails-4 model callback observer-pattern
Aren't promises just callbacks?

I've been developing JavaScript for a few years and I don't understand the fuss about promises at all. It seems …

javascript callback promise q bluebird
How to perform Callbacks in Objective-C

How to perform call back functions in Objective-C? I would just like to see some completed examples and I should …

objective-c cocoa callback
How do I write a jquery function that accepts a callback as a parameter

I Have the following function. function ChangeDasPanel(controllerPath, postParams) { $.post(controllerPath, postParams, function(returnValue) { $('#DasSpace').hide("slide", { direction: "right" }, 1000, …

javascript jquery function callback