For 7.5 and higher: Manually edit the Web Player service configuration files per the following documented steps:
Doc: Manually editing the service configuration files
In Step 3 of the above referenced process ("3. Edit the exported configuration files in a text editor or XML editor"), edit the config file "Spotfire.Dxp.Worker.Web.config" by changing the following line so that it reads as follows:
<!-- Set to true to enable the client Java Script API --> <!-- Property domain can be used to restrict access to the Spotfire Server from a mashup. Can be a comma separated list. --> <javaScriptApi enabled="true" domain="" />
For 7.0 and lower: Enable the JavaScript API in the web.config file on the Web Player.
1). Open the Spotfire Web Player's web.config file in an editor.
2). Change the following line so that it reads as follows:
<!-- line to the Mashup before the Web Player Api is called. --> <javaScriptApi enabled="true" />
3). Save the web.config file.
4). Restart the Web Player application pool or restart IIS.
5). Click on the refresh button to reload the analysis. The visualization will not load automatically unless you explicitly click this button.
See the attached example file (Filename: embeddedTest.html)