• Resolved blkedy

    (@blkedy)


    The popup doesn’t know what page we’re on because we’re using barba js for page transitions.

    A solution would be trigger the popup in js.

    I saw a thread to use something along the lines of:

    
    let popupObj = SGPBPopup.createPopupObjById(xxxx);
    popupObj.prepareOpen();
    

    But with that webpack does not know what SGPBPopup is.

    How do I import SGPBPopup to use in JS, is this possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @blkedy ,

    Thanks for sharing with us.

    A few clarifications if you don’t mind.

    We would like to have screenshots from the Display Rules, Events (and Conditions – if anything has been changed there as well) of the popup.
    Besides, please, send the URL where the popup is supposed to be opened.

    On the other hand, the system info file could be helpful as well. Check the tutorial below to see how it can be retrieved.

    How to Retrieve the “System Information” File

    Also, is it correct to assume that whenever the Barba.js plugin isn’t used, the popup loads on the page as it’s supposed to and only when using it the popup isn’t triggered?

    Looking forward to your reply.

    Thread Starter blkedy

    (@blkedy)

    Is there documentation on how to call methods from the plugin in our own javascript?

    Is there documentation on how to reference the plugins javascript in webpack?

    Sygnoos Support

    (@sygnoossupport)

    Dear @blkedy ,

    It’s generally possible to customize a popup opening/closing with custom JS codes if that’s what you meant to do.

    Please, check the article below.

    Customize your popup opening and closing with your own JS and CSS custom code

    If we, however, misunderstood you, please, let us know.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘trigger popup in javascript (page transition event)’ is closed to new replies.