I've got a fancybox which loads inline content. The content is rendered on the page as the website is loaded and on document ready the fancybox is shown. The HTML and javascript to do this is as following;
HTML:
<div style="display: none">
<div id="cookieContainer">
<div class="splash">
<!-- Some more content here -->
<div class="buttons">
<a href="javascript:parent.jQuery.fancybox.open({href : '<%=UrlRewriter.GetUrlForSystemName("MyPage")%>'})" class="cookie_button settings">Instellingen</a>
<a href="javascript:void(0);" class="cookie_button accept">Accepteren</a>
</div>
</div>
</div>
</div>
JAVASCRIPT:
$(document).ready(function(){
$("a#myUrl").fancybox({
'closeClick': false,
'modal': false,
'closeBtn': false,
'width': '400px',
'height': '200px',
'autoSize': false,
'padding': 10,
'margin': 0
});
$('a#myUrl').trigger('click');
});
The fancybox contains two hyperlinks. One which executes some javascript (the button with the class 'cookie_button accept') and another one which should send the user to an specific url inside the currently active fancybox.
I've already tried various options from the Fancybox website, but none of them are giving me the desired result. One of the examples (the one with the iFrame) has the functionality I want, however this one navigates from an fancybox with the type 'iFrame' to another one with the same type. What i'm trying to do here is to navigate from an fancybox of the type 'inline' to an fancybox of the type 'iFrame'. Is this even possible? Or are there other ways to achieve this?