theaeblackthorn: (Default)
[personal profile] theaeblackthorn
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.
From:
Anonymous( )Anonymous This account has disabled anonymous posting.
OpenID( )OpenID You can comment on this post while signed in with an account from many other sites, once you have confirmed your email address. Sign in using OpenID.
User
Account name:
Password:
If you don't have an account you can create one now.
Subject:
HTML doesn't work in the subject.

Message:

 
Notice: This account is set to log the IP addresses of everyone who comments.
Links will be displayed as unclickable URLs to help prevent spam.

Profile

theaeblackthorn: (Default)
theaeblackthorn

February 2013

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

Most Popular Tags

Style Credit

Expand Cut Tags

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