In my javascript I have this function:
$(document).ready(function() {
var no_of_galleries = $('.gallery').length;
for ( var i = 1 ; i < no_of_galleries ; i++ ) {
$("a[rel=photo_open" + i + "]").fancybox();
}
});
I tried everything But I can’t make it open in parent. I’m calling this file with iframe, and I want to open images in parent not in the iframe.
If ther eis a solution please tell me, if not tell me what do I need to change in the fancybox file so it will open in parent.
Solved It!
Change the following:
line 351 from ‘height’ : $(document).height() to ‘height’ : $(window.parent.document).height()
line 1039 from $(‘body’).append( to window.parent.$(‘body’).append(
lines 674 to 677 from
to
IT really works!! I’ve tested it