Go easy on me – I don’t spend a lot of time in javascript. Plus I’m having a hard time explaining my situation to be able to look for solutions that may already exist.
I work for a healthcare organization that uses a service called Healthwise to provide medical library content for our website. Healthwise provides their content via an API that outputs full HTML code, including CSS and Javascript. I have successfully connected to the API and can display content from it on a test server.
To get that content displayed within my production website, I have to feed it in via Javascript. This is where I’m running into problems. My Javascript pulls in the HTML and CSS just fine. But any Javascript from the API is not working, whether it’s a linked file or inline code.
I considered grabbing the Javascripts from the API and calling them directly from my Javascript. But the files and inline code all change depending on the content the API is serving. So short of downloading and calling EVERY script they have every time, which I know would be horrible practice, there’s no way for me to do that. How can I get my Javascript to accept and run the Javascript provided by the API?

