Search code examples
jqueryjquery-pluginsuser-interfaceiframefancybox

Fancybox iframe close button not hidden when showCloseButton is set to 'false'


I'm using Fancybox 1.3.4 with jQuery 1.6.2

When I call the following fancybox function to load an html page in an iframe, everything loads fine, and there are no errors:

$.fancybox({
    'width'             : '75%',
    'height'            : '75%',
    'autoScale'         : false,
    'transitionIn'      : 'none',
    'transitionOut'     : 'none',
    'type'              : 'iframe',
    'href'              : 'search.htm'
});



When I add the showCloseButton option everything loads fine, and there are no errors BUT the close button is stil shown:

$.fancybox({
    'width'             : '75%',
    'height'            : '75%',
    'autoScale'         : false,
    'transitionIn'      : 'none',
    'transitionOut'     : 'none',
    'type'              : 'iframe',
    'href'              : 'search.htm',
    'showCloseButton'   : 'false'
});

How can I get rid of the corner box?


Solution

  • Oops, saw the problem as soon as the StackOverflow syntax highlighting appeared. No quote marks on false

    $.fancybox({
        'width'             : '75%',
        'height'            : '75%',
        'autoScale'         : false,
        'transitionIn'      : 'none',
        'transitionOut'     : 'none',
        'type'              : 'iframe',
        'href'              : 'search.htm',
        'showCloseButton'   : false
    });