bitbonsai / facyBox

A jQuery-based, Facebook/Fancybox-style lightbox which can display images, divs, or entire remote pages. Based on fancybox.net and famspam.com/facebox

Home Page:http://bitbonsai.com/facybox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't get the facybox to close in IE

Terratuner opened this issue · comments

Hi,

I'm not so good with jquery, but I'm having trouble with closing the facybox in IE. (Have tested it in IE6 -> 9)

I use this function:
$('a[rel=closefacybox]').click(function(){
$(this).trigger('close.facybox');
});
The manual close function (or whatever the correct term is) works fine in Firefox and Chrome. Someone else out there experienced the same?

You can just call like this:

$('a[rel=closefacybox]').click(function(){
    $.facybox.close()
});

Strange... It still won't close.. I also tried to use a more direct selector, like so:
$('a#closefacybox[rel=closefacybox]').click(function(){
$.facybox.close();
});
But still doesn't work in any IE version.

Does it work if you test it?

Apprechiate your help!:-)

Can you give me the URL, so I can test that out with IE's developer toolbar?

Mauricio Wolff
: m@bitbonsai.com (mailto:m@bitbonsai.com)
: http://bitbonsai.com
: http://twitter.com/bitbonsai

On segunda-feira, 5 de setembro de 2011 at 08:15, Terratuner wrote:

Strange... It still won't close.. I also tried to use a more direct selector, like so:
$('a#closefacybox[rel=closefacybox]').click(function(){
$.facybox.close();
});
But still doesn't work in any IE version.

Does it work if you test it?

Apprechiate your help!:-)

Reply to this email directly or view it on GitHub:
#8 (comment)