I have 2 fancyboxes and am trying to open the second from the first (either by button or by closing the first)..
Here is what I found as a workaround,
fancyBox version: 2
$("#first_fancybox_link").fancybox({
afterClose:function(){
$("#second_fancybox_link").fancybox({
helpers: {
overlay : null
},
afterShow:function(){
$.fancybox.helpers.overlay.open({parent: $('body')});
}
}).trigger('click');
}
}).trigger('click');