开发者

Avoid closing Jquery's FancyBox

I am using fanxybox 1.2.6 but it's getting closed despite o开发者_StackOverflow中文版f mentionig onContentClick:false

Here is the code:

$("#"+vari).fancybox({'hideOnContentClick':false }).trigger('click');

Kindly help me out

p.s: The window is loading content from other URL(via Iframe)


You don't need the single quotes either side of the option name. Also, I've had issues in the past with the overlay fighting with the content, so if removing the quotes doesn't work, you might want to try adding hideOnOverlayClick:false.

$("#"+vari).fancybox({ 
    hideOnContentClick:false,
    hideOnOverlayClick:false
 }).trigger('click');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜