To avoid having your scripts be dependent on the jQuery and jQueryUI instances included with a particular version of TIBCO Spotfire, you need to include your own instances with your scripts.

Javascript Code

Add this to the text area javascript library, by clicking on the javascipt button on the editor

If adding this code for the first time, click "New"

Name the script "jQuery and jQueryUI" and paste the following into the script portion:

// Install jQuery.
jQuery code goes here ...

// Install jQueryUI of a version that is compatible with the 
// jQuery version installed above.
jQueryUI code goes here ...

// Assign a global variable so that jQuery can be accessed 
// by other scripts later.
// Use the noConflict mechanism to restore any exising 
// jQuery object in scope. This avoids conflicts with any 
// version of jQuery that might be used by Spotfire.
window.CustomJQuery = window.$.noConflict(true);

From here you can browse to the jQuery code site:

jQuery: https://code.jquery.com/jquery/

jQuery UI: https://code.jquery.com/ui/

Open the min type of the versions you want and copy and paste the code into the javascript, for example we selected jQuery 3.4.1 and jQuery UI 1.12,1


  • No labels