antho686
05-28-2022Data Storage
widget events firing too soon when embedded with sisense.js
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 ?
Hi antho686
Try using this script from my article to figure out what events are triggered and when:
Also, you might consider adding a "debugger" to your JS code and debug the widget object at the time the event is trigerred