WordPress.org

Ready to get started?Download WordPress

Forums

WordPress PopUp
Popup issue with WP Super Cache (8 posts)

  1. yaniv691
    Member
    Posted 2 months ago #

    Hi,

    I'm using the popover plugin on my blog, which also has WP Super Cache installed. After having popup timing issues (it didn't respect the cookie) with the "Footer Load" setting, I switched to "External Load", which as I saw is best for use with caching systems. Now I have an even bigger issue - I have a form with some PHP code called via AJAX when the hits submit - this doesn't happen with External Load! When the use hits submit, nothing happens, and also nothing relevant is shown in the console.

    Can can I get the popover plugin to play nice with WP Super Cache, including the on-submit, AJAX of course?

    Thanks,
    Yaniv

    https://wordpress.org/plugins/wordpress-popup/

  2. David
    WPMU DEV Support Staff
    Posted 2 months ago #

    Hi Yaniv,

    Greetings and thanks for posting! :)

    Could I ask what the code is that you're using?

    You mentioned AJAX but the plugin doesn't provide a way to add JavaScript. Did you have a custom method calling that code in the page?

    Is that code actually getting added to the page?

    Also, could you provide a link so we can see what's being done?

    Thanks,
    David

  3. yaniv691
    Member
    Posted 2 months ago #

    The popup has an HTML form with a submit button. When clicked, some JS (on a separate JS file) does some AJAX. The click event is binded with jQuery.

    The is exactly what's not happening i "External Load" mode.

    Unfortunately I can't provide a link to the site that has the issue because it's on a development site.
    I can provide a link to the production site, on which the popup is running on "Page Footer" mode.
    http://www.ravellosystems.com/blog/using-red-hat-satellite-bootstrap-environments-ravello-aws-ec2/

    The code running the AJAX code for the submit can be found in ravello.js (look for it in the page source, it's in the head).

  4. David
    WPMU DEV Support Staff
    Posted 2 months ago #

    Hi @yaniv691,

    Thanks for clarifying that and providing those details. It seems the issue has to do with the external load method loading the popover code after the page is loaded through AJAX.

    That I see, you'd have to somehow load that ravello.js with that method as well and I don't see a way except to edit the plugin's core files.

    If you wish to give something a try, you could try copying and pasting the code from ravello.js onto the end of the popover's main JavaScript file at:
    \plugins\wordpress-popup\popoverincludes\js\popover-load.js

    Is that something you'd be wiling to try out?

    -David

  5. yaniv691
    Member
    Posted 2 months ago #

    Hi David,

    I tried this out - I copied the JS relevant to the popover button click to the popup core JS file you stated. I did this on our development site:
    http://site-sitedev41113bpi-pwii0f84.srv.ravcloud.com/blog/wp-content/plugins/wordpress-popup/popoverincludes/js/popover-load.js

    But this didn't fix the issue... What am I missing?

  6. David
    WPMU DEV Support Staff
    Posted 2 months ago #

    Hi @yaniv691,

    Thanks for giving that a try, it seems likely the only way to go about this would be through some custom code.

    I'd love to look more into this though if you wouldn't mind sending through an admin login. I could then post back here with a solution.

    If that works for you, simply submit details through here:
    http://premium.wpmudev.org/contact/

    Just select "I have another question", then in the Subject, include "ATTN: David" with a link to this thread in the message.

    How does that sound? :)

    Cheers,
    David

  7. yaniv691
    Member
    Posted 1 month ago #

    Hi David,

    Thanks for your reply. Infortunately, I cannot give you access to the admin. Is there any other way of handling this?

    Thanks,
    Yaniv

  8. David
    WPMU DEV Support Staff
    Posted 1 month ago #

    Hi @yaniv691,

    Hope you're well today! :)

    Hmm, if there's any feasible way you can think of to provide all the code and configuration involved (WP Cache has quite a lot of configuration options), I'll gladly see how I can replicate that to get it sorted.

    Admin and FTP access would be optimal given everything involved, being very specific regarding WP Cache, Pop up, your custom JavaScript code and the interaction involved between them.

    If there's some way you can think of that I could replicate that scenario, I'll be happy to look into that.

    Cheers,
    David

Reply

You must log in to post.

About this Plugin

About this Topic