• edbit

    (@edbit)


    Hi,

    I’m using your plug-in to design 3 popups to act as “channels” during a live event, in the page you can select any of the 3 channels (Tech, Humand and Classic).

    I want to put buttons inside the popup channels to “switch” to the other channel. I have placed 2 buttons inside Classic Channel with the id of the other pop-ups but when I click over them nothing happens.

    It’s possible to switch to other pop up? or to aoutmatically close and open the other popup? Can you please help me with that ?

    Thank you.

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

Viewing 1 replies (of 1 total)
  • ausyed

    (@ausyed)

    Hello @edbit,

    I assume you would like to close one popup by opening a new one from a button. The following code sets a navigation Popup that can be triggered by any of the “Show Navigation” buttons. When a navigation item is selected from the Popup, the page scrolls to that place or a new popup is triggered and the Popup closes automatically. You have to work around with the # value in href as per your requirements.

    <script>
    DiviArea.addAction(‘init_area’, function(area) {
    area.get(‘a[href^=”#”]’).click(function() {
    DiviArea.hide(area);
    return true;
    });
    });
    </script>

    Feel free to get back to me, in-case of any query.

    Regards,
    Syed

Viewing 1 replies (of 1 total)
  • The topic ‘Close or Switch to another popup inside a popup’ is closed to new replies.