I'm trying to determine the best way to pass javascript code that includes a link to a different javascript file through an xmlhttp request. For example, say I want to pass... <script> stuff </script> <script src="http://someserver.com/somescript.js></script> ...How would I pass that and execute it. Would an 'eval' be appropriate for this? Thanks for any thoughts...
Maybe with Ajax.Updater function from prototype.js library. Try using url=http://someserver.com/somescript.js, and adding evalScripts:true to the list of properties in the last argument of the object constructor.