• Resolved mark0x

    (@mark0x)


    I have a script that adds some elements to a page (to play a popup video using Popup Builder). I’ve tried using the Click Event with the class but I think since they’re created dynamically after the page had loaded, the click event is not captured/won’t trigger the popup.

    Is there a way to trigger a popup manually that I can call in the click handler?

    Regards,
    Mark

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mark0x

    (@mark0x)

    I figured out that if I call SgpbEventListener.init() after the dynamically created elements exist, Popup Builder will then bind to the new elements and it works fine.

    Dear @mark0x,

    Happy you have figured it out!
    Let us know if you need further help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is there a way to trigger a popup programatically?’ is closed to new replies.