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.

Pass extra parameters to an event handler?

Let's say I want to pass some extra data when assigning an event handler. Consider the following code: private void …

c# events callback
How to run a callback function on a jQuery trigger("click")?

I need to trigger a custom event in the callback of a trigger call, but I can't get it to …

javascript jquery events triggers callback
How do I pass an extra parameter to the callback function in Javascript .filter() method?

I want to compare each string in an Array with a given string. My current implementation is: function startsWith(element) { …

javascript callback scope
Difference between a Postback and a Callback

I keep on hearing this words 'callback' and 'postback' tossed around. What is the difference between two ? Is postback very …

asp.net javascript postback callback
any() function in Python with a callback

The Python standard library defines an any() function that Return True if any element of the iterable is true. If …

python functional-programming callback any
How to "await" for a callback to return?

When using a simple callback such as in the example below: test() { api.on( 'someEvent', function( response ) { return response; }); } How …

javascript asynchronous callback async-await ecmascript-2017
PHP: How to use a class function as a callback

I have a class with methods which I want to use as callbacks. How to pass them as arguments? Class …

php oop callback
Parallel Python: What is a callback?

In Parallel Python it has something in the submit function called a callback (documentation) however it doesn't seem to explain …

python callback parallel-python
Facebook "Like" button callback

I am interested in implementing the facebook "Like" button, but I would like to know what user is clicking on …

javascript facebook button callback facebook-like
Can you wait for javascript callback?

I'm trying to use the jQuery alerts dialog library from http://abeautifulsite.net/notebook/87 instead of the default alerts (which …

javascript jquery dialog callback confirm