May. 16th, 2012

theaeblackthorn: (Default)
Ahaha, you can launch a fancybox from within a fancybox by targeting the parent


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.

Profile

theaeblackthorn: (Default)
theaeblackthorn

February 2013

S M T W T F S
     12
3 456789
10111213141516
17181920212223
2425262728  

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 27th, 2017 12:35 am
Powered by Dreamwidth Studios