• Resolved octavoscott

    (@octavoscott)


    I have a javascript on one of the pages that I am pulling into a popup using this plugin. I’m have this on the page. https://www.jacklmoore.com/zoom/. A script to zoom in an image. It works fine on the actual page, but using your plugin, to pull that page into a popup stops the script from working. Any ideas?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter octavoscott

    (@octavoscott)

    I changed the script that I’m using. It seems that I can’t get any javascript to work when it’s on a page that is filtered through the insert page plugin. I’m trying to add a simple on click event to change the css of a div and it works on the site elsewhere, but not when used via insert pages. I am pulling pages into a popup with this plugin, fyi.

    Plugin Author Paul Ryan

    (@figureone)

    Do you conditionally enqueue the javascript based on what page you’re viewing? If so, it may not be loading for the page in the popup, because the context is the parent page.

    Alternatively, does your script use specific selectors that target an element in the DOM that’s in a different place when the page is loaded in a popup?

    Those are the only two things I can think of.

    Plugin Author Paul Ryan

    (@figureone)

    Closing due to inactivity. Please let us know if you have further input.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Javascript not loading’ is closed to new replies.