HTML embed code not working from the "Menu > Share > Copy link or from embedded code" selection.

HTML embed code not working from the "Menu > Share > Copy link or from embedded code" selection.

book

Article ID: KB0082582

calendar_today

Updated On:

Products Versions
Spotfire Web Player All Versions

Description

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:
User-added image
This is due to the JavaScript API not being enabled on the Web Player.

Issue/Introduction

HTML embed code not working from the "Menu > Share > Copy link or from embedded code" selection.

Resolution

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)

Additional Information

Wiki: Extending TIBCO Spotfire > Web Integration with JavaScript Doc: Manually editing the service configuration files

Attachments

HTML embed code not working from the "Menu > Share > Copy link or from embedded code" selection. get_app