I am trying to do the following:
function main(callback) {
$.ajax('server-side', function() {
this.callback.call("hello");
}.bind({ callback: callback });
}
main(function(response) {
alert(response);
});
Response is undefined, I would expect it to be "hello". Any ideas why?