Skip to Main Content
Spotfire Ideas Portal
Status Will not implement
Product Spotfire
Categories API
Created by Guest
Created on Mar 10, 2017

Provide a callback in the Spotfire Javascript API to register Clicks on a template in a mashup

We currently have an application that does a mashup with Web Player v7.0.  We add a callback to the mashup HTML to register clicks on the template.  This allows us to timeout a user to that has left the page open with no interaction.  Moving the application to Spotfire v7.5 and higher, we lost the ability to do this.  Our customers have requirements to close the template because of the secure nature of the data and HIPAA requirements.  Adding a callback for clicks to the API will give this functionality back to our customers.  Without it, they will not be able to move to the newer versions of Spotfire.

  • Attach files
  • Admin
    Magnus Rylander
    Mar 14, 2017

    The ability to use cross-site scripting was removed in 7.5. We have no plans to implement this idea, since we believe the requested functionality can be achieved with a combination of the worker host setting checkInactivityInterval in combination with the onClosed callback i JavaScript API.

    spotfire.webPlayer.Application.prototype.onClosed = function(callback) 
        /// <summary>Event raised when the analysis has closed.</summary>
        /// <param name="callback" type="function">The event handler with the following signature: function(analysisPath, document) {}.</param>