Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I had a similar issue, but it was loading the 2 iframes on a page where I was sliding a panel forward and back - on the last "page" of the panel, I would open an iframe in Colorbox. If the user navigated back to the previous page and then back to the last panel, the iframe would be shown twice in Colorbox. Note that the user never actually leaves the HTML page they have loaded in memory, it was just using Javascript/CSS to show/hide different portions of the panel as the user progressed.</p> <p>My issue I narrow down to an issue with some AJAX I was doing through jQuery using the .load() function - it was firing twice, and the callback function was where the Colorbox was opened. By fixing the .load() to keep it from firing twice, it eliminated my issue with the double iframes showing in Colorbox.</p> <p>Now...as to why the Colorbox would show the iframe twice, still a little fuzzy, but my guess without doing a lot of looking into the Colorbox code, is that the iframe object is appended to the colorbox twice, once for each Colorbox call, rather than checked to see if the iframe already exists on the second call or just replacing it. I haven't had a chance to go back and dive into the Colorbox code to see if that is intentional or if it is a bug.</p> <p>I hope that helps you decipher why your code isn't working, but feel free to post some of the code where you have the trouble. I didn't see the colorbox link straightaway on your link, so couldn't see if this was an issue or not.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload