cancel
Showing results for 
Search instead for 
Did you mean: 

widget events firing too soon when embedded with sisense.js

antho686
7 - Data Storage
7 - Data Storage

I've added script to a blox widget on domready event that  attaches a mouseover event to every blox slides. When the widget is embedded in an iFrame, the domready finds the slides. But when I am embedding the widget using sisense.v1.js, no slides are found. I suspect that the domready events fires before the blox widget has actually rendered the slides into the dom. maybe I'm wrong, maybe it has something to do with embedding inside a angular 10 app ?

1 ACCEPTED SOLUTION

Ophir_Buchman
12 - Data Integration
12 - Data Integration

Hi @antho686 

Try using this script from my article to figure out what events are triggered and when:

https://community.sisense.com/t5/build-analytics/widget-events-figure-out-the-events-taking-place-in...

Also, you might consider adding a "debugger" to your JS code and debug the widget object at the time the event is trigerred

View solution in original post

2 REPLIES 2

antho686
7 - Data Storage
7 - Data Storage

even if I embed the widget in the ngAfterViewInit(), the widget's script cannot find the blox slides when the script runs.

Ophir_Buchman
12 - Data Integration
12 - Data Integration

Hi @antho686 

Try using this script from my article to figure out what events are triggered and when:

https://community.sisense.com/t5/build-analytics/widget-events-figure-out-the-events-taking-place-in...

Also, you might consider adding a "debugger" to your JS code and debug the widget object at the time the event is trigerred