Thanks, I was puzzling over whether I was missing something, since the callback itself can run arbitrary code.
I actually use this technique with BOSS to store the original search query parameters since they're not always possible to recover from the results object, eg:
var callback = 'YBOSS.setLastQuery(\''+quotedQuery+'\');YBOSS.retrieved';
I actually use this technique with BOSS to store the original search query parameters since they're not always possible to recover from the results object, eg:
var callback = 'YBOSS.setLastQuery(\''+quotedQuery+'\');YBOSS.retrieved';