Sean Tabor Posted January 15, 2020 Share Posted January 15, 2020 Hi, Upon upgrading from Spotfire 7.10 to 10, the following JavaScript no longer triggers (clicks) the desired action control upon page load (i.e. to clearthe marking onthe page automatically everytime you navigate to it, where the action control resets the marking upon being clicked): HTML JS $('#triggerActionControl a').click() Does anyone have a fix for this in Spotfire 10 I have tried various combinations of JavaScript/JQuery without any success so far. Any help would be much appreciated! Thanks Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted January 15, 2020 Share Posted January 15, 2020 Change your JS to below and it should work, $('#triggerActionControl input').click() Link to comment Share on other sites More sharing options...
Rayees Wani Posted January 16, 2020 Share Posted January 16, 2020 Consider following the guidelines from the below wiki article: How to include your own instances of jQuery and jQueryUI in Text Areas https://community.spotfire.com/wiki/how-include-your-own-instances-jquery-a... Link to comment Share on other sites More sharing options...
Sean Tabor Posted January 16, 2020 Author Share Posted January 16, 2020 Hi Wani, Thank you for your comment; the link you have provided is very useful for setting up JQuery widgets (I used it to create a popup :) ) but it does not provide any insight towards triggering an action control using JQuery/JS in Spotfire 10 unfortunately. Additionally, from recent experience, the JQuery widgets do not appear to be compatible with action controls either :( Link to comment Share on other sites More sharing options...
Sean Tabor Posted January 16, 2020 Author Share Posted January 16, 2020 Hi Shandilya, Thank you for your comment but I'm afraid this does not work :( UPDATE: Hi Shandilya,It turns out that this does work (apologies!) but, as discovered here, it only works when the action control is a button (I was using a link). As I wanted to use an existing link, and didn't want to add this button to the page, I hid the button using the following: HTML: <span id="triggerActionControl" style="display: none"> <SpotfireControl id="b352aff0e82247c58199b4h288f7eb46" /></span>JS:$("#triggerActionControl input").click(); Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now