Jump to content

On Page Load JavaScript No Longer Working In Spotfire 10


Sean Tabor

Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...