cancel
Showing results for 
Search instead for 
Did you mean: 

widget events firing too soon when embedded with sisense.js

antho686
8 - Cloud Apps
8 - Cloud Apps

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
Sisense Team Member
Sisense Team Member

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
8 - Cloud Apps
8 - Cloud Apps

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

Ophir_Buchman
Sisense Team Member
Sisense Team Member

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

Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Developers Group:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

The Legal Stuff

Have a question about the Sisense Community?

Email [email protected]