Execution of Javascript failed: "Cannot read property 'xxx' of undefined" in Spotfire client

Execution of Javascript failed: "Cannot read property 'xxx' of undefined" in Spotfire client

book

Article ID: KB0070643

calendar_today

Updated On:

Products Versions
Spotfire Developer 7.11 and higher

Description

It has been observed when upgrading to 10.0 and higher, some of the JavaScript implemented in Spotfire Text Area may fail to execute and error out with the below stack trace:

Execution of Javascript failed:
Type: TypeError
Message: Cannot read property 'xxx' of undefined
Stacktrace: TypeError: Cannot read property 'xxx' of undefined

The same can also be seen logged in console under Developer Tools (Tools > Development > Developer ) of Spotfire Analyst.
User-added image


 

Resolution

This is commonly related to the use of jQuery and jQueryU in Text Areas. Refer to the below wiki article for instructions of how to use that properly:

How to include your own instances of jQuery and jQueryUI in Text Areas
https://community.spotfire.com/articles/spotfire/how-to-include-your-own-instances-of-jquery-and-jqueryui-in-text-areas

Issue/Introduction

Execution of Javascript failed: "Cannot read property 'xxx' of undefined" in Spotfire client

Additional Information

Best Practices for Writing Custom JavaScript Code in Spotfire Text Areas How to include your own instances of jQuery and jQueryUI in Text Areas

Attachments

Execution of Javascript failed: "Cannot read property 'xxx' of undefined" in Spotfire client get_app