Hi guys,
I'm making this ajax call:
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).Code:new Ajax.Request(url, { method: 'get', onSuccess: function(transport) { this.contextReady = true; }, onFailure: function(transport) { this.contextReady = false; } });
How can I update the right this.contextReady?
Thanks for any hints!


Reply With Quote

Bookmarks