Hi guys,
I'm making this ajax call:
new Ajax.Request(url, {
method: 'get',
onSuccess: function(transport) {
this.contextReady = true;
},
onFailure: function(transport) {
this.contextReady = false;
}
});
from a JS object containig contextReady. The problem is that this within the OnSuccess is not the class but something else (e.g. a window).
How can I update the right this.contextReady?
Thanks for any hints!