I have external javascript on my page, for example. sort of:
<script src="http://foo.com/script.js" type="text/javascript"></script>
and UpdatePanel somewhere. The script writes some content and does it from within an anonymous javascript function in the js file. For example, the script has something like this:
(function(){document.write('content');})();
Whenever UpdatePanel is updated via asynchronous postback, everything that the script (or any javascript on my page has done, for that matter) is canceled. For regular javascript, I would just use:
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(myFunction)
repeat all this, but since the function in the source script file is anonymous and called by definition, I SOL! Any ideas?
Note: the external js source is from another domain, and its contents are out of my control.