document.write('<script type="text/javascript" src="'+libraryName +'"></script>');
So document.write clobbers the document that you're in if it evals outside of onload, but it appears to actually look pretty good if I instead load the javascript file as an Ajax.Request with an evalScripts: true. There are some semantics that are different with this in terms of order of evaluation, but it looks hopeful. It might be the case that to make it generally work reliably that it will require a synchronous request so the js loads prior to your component trying to render anything that might touch the js scope.

ms
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to