Date Posted:
Product: TIBCO Spotfire®
Product: TIBCO Spotfire®
Problem:
HTML embed code not working from the "Menu > Share > Copy link or from embedded code" selection.
Solution:
In the Web Player, when you select "Menu > Share > Copy link or embed code", the resulting HTML code has embed code with a URL containing "Embed.aspx". When the code is added to an HTML page, the page does not render. Example:
This is due to the JavaScript API not being enabled on the Web Player.
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
<!-- 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.
Wiki: Extending TIBCO Spotfire > Web Integration with JavaScript
Doc: Manually editing the service configuration files
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)
Comments
0 comments
Article is closed for comments.