Re: WOComponent children
Re: WOComponent children
- Subject: Re: WOComponent children
- From: Mike Schrag <email@hidden>
- Date: Wed, 16 Jan 2008 19:54:33 -0500
document.write('<script type="text/_javascript_" src=""color: #000000">+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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden