Tuesday, 15 July 2014

fancybox - facnybox - close parent from child but keep child open -



fancybox - facnybox - close parent from child but keep child open -

i have searched thoroughly issue on site , google many hours , although cam quite resourceful can not find solution issue, if can done @ all, help in right direction cool!

i have window (main page) , link, opens fancybox (iframe) within window there link open fancybox (iframe) don't want 'frame in frame', looks silly, how can close first frame , maintain kid open?

there several links on 'main page' need this, having urls in script not work (well)

here's mean... www.kamgar.nl

this link in main page , open fancybox...

<a href="/about" class="pop_up" title="about">about</a>

this link in kid (above) , need open (in new fancybox) , close parent (above)

<a href="/message" class="message" title="message">message</a>

and script...

$(document).ready(function() { $(".pop_up").fancybox({ maxwidth : 700, maxheight : 1000, fittoview : false, afterload : function () { $("#content, #page").fadeout(100); }, afterclose : function () { $("#content, #page").fadein(10); }, width : '50%', height : '80%', autosize : false, closeclick : false, openeffect : 'fade', closeeffect : 'fade', scrolloutside: false, padding : '5', hideloading : true, title : false, nextclick : false, type : 'iframe', helpers : { title : { type : 'over'} } }); }); $(document).ready(function() { $(".message").fancybox({ maxwidth : 500, fittoview : false, afterload : function () { $("#content, #page").fadeout(100); }, afterclose : function () { $("#content, #page").fadein(10); }, width : '90%', height : 600, autosize : false, closeclick : false, openeffect : 'fade', closeeffect : 'fade', padding : '5', modal : false, hideloading : true, title : false, nextclick : false, type : 'iframe', helpers : { title : { type : 'over'} } }); });

i have found out since not possible do, found way around triggering hidden link open page beingness opened.

confusing know, page beingness called twice rather once: 1 time page page open 1 time again via fancybox within via hidden link.

if go site think you'll understand.

fancybox fancybox-2

No comments:

Post a Comment