(no subject)
May. 16th, 2012 12:02 pmAhaha, you can launch a fancybox from within a fancybox by targeting the parent
This should be in the existing fancybox, with the link
and both the iframe and the parent should have jquery and fancybox installed and bam, job done.
This should be in the existing fancybox, with the link
$(".btn_forgot").click(function() {
parent.$.fancybox({
href: $(this).attr('href'),
autoSize: false,
padding: 0,
scrolling: 'no',
width: 750,
height: 387,
fitToView: false,
openEffect: 'elastic',
type: 'iframe'
});
});
<a href="<?php echo base_url(); ?>index.php/member/forgottenpassword" class="btn_forgot fancybox.iframe">Forgotten your password?</a>
and both the iframe and the parent should have jquery and fancybox installed and bam, job done.