• Resolved Microcap

    (@microcap)


    I currently have a popup in javascript that is dynamic content depending on variables passed into a PHP file. This is only good for desktop use and not responsive. I would like a modal type window that does not open a new tab, but overlays and is responsive. Is it possible to use this plugin manually (like adding rel=”pop-up-maker”) to load this php file and pass the parameters?

    Here is an example of the current code…..

    What would the code look like in Pop up maker to accomplish this task?

    <a href="openpopup('www.mysite.com/php/reviews100.php?Productnum=XXXXXX&MODEL=Product%20Name')">Click for Reviews</a>

    • This topic was modified 6 years, 10 months ago by Microcap.
    • This topic was modified 6 years, 10 months ago by Microcap.
Viewing 1 replies (of 1 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @microcap – Popup Maker popups by default are preloaded on the page and use the same post/page editor. I suggest making your own custom shortcode and simply inserting that into the popup’s content.

    That said it will be loaded hidden in the footer on initial page load, not loaded on demand.

    For that, you could check out our Remote Content extension which includes an AJAX method that you can point to your own function to render contents via PHP.

    Lastly, our popups are responsive, but if your content is not, then that won’t make any difference.

    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Manually coding a php file to pop-up with parameters passed.’ is closed to new replies.