Newer Version Available
The source Context Variable
The AJAX Toolkit provides a context variable, source, which allows you to pass in any context and get it back in the callback method. For an example of how to use source in an error handling context, see Error Handling with the AJAX Toolkit.