• Resolved lljb3

    (@lljb3)


    Is there a way to re-initialize the scripts used to load a video gallery on a site using AJAX?

    The page I’ve linked in question initializes scripts and works properly if you go directly to the page, but if you were to navigate to the page from the menu, then the gallery functionality does not work.

    I’ve also turned on the AJAX Theme setting under Compatibility to no avail.

    I figure the best route is to just re-init the scripts of this plugin but I’m not sure what I’m supposed call.

    I’m currently using SmoothState.js but I will be switching to Barba.js instead. Any help is appreciated. Thanks.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author embedplus

    (@embedplus)

    That compatibility option fixes most ajax themes, but yours seems to have a some unusual (but cool) events that fire. If you know what event you need to listen to, you can call these 3 functions in the following order each time the event fires, in order to re-initialize:

    window._EPADashboard_.loadYTAPI();
    window._EPADashboard_.apiInit();
    window._EPADashboard_.pageReady();

    -EmbedPlus Team

    Plugin Author embedplus

    (@embedplus)

    Should we close?

    Thread Starter lljb3

    (@lljb3)

    Yes, let’s close this for now. I will reopen if I have another issue with this. Thank you!

    Also to note, the first function didn’t work for me, so I used:

    window._EPADashboard_.embdyn();

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

The topic ‘PJAX Integration’ is closed to new replies.