• Resolved Jason Ryan

    (@viablethought)


    Hello –

    Making some changes on one of our client sites that is using this plugin, but we just ran into an issue where the widget is loading a 2nd time within a an iframe popup element:

    https://screencast.com/t/RXX1VNhBcq

    Is there a way to to target it and exclude it from being initialized a second time once it has already been loaded?

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jason Ryan

    (@viablethought)

    In addition, I have found within the Developer Docs that you can remove an instance of the web widget using the following:

    zE(function() { zE.hide(); });

    However, I am having some trouble targeting the Parent iframe and executing that code from within the Parent to remove the Support widget.

    Any insight would be appreciated.

    Thread Starter Jason Ryan

    (@viablethought)

    Nevermind, I figured it out:

    jQuery(function($) {
        $('.iframe-selector').on('load', function() {
            $(this).contents().find('iframe').remove();
        });
    });
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘2nd Button loads within iframe popup’ is closed to new replies.