Questions tagged [fancybox-2]

Version 2.0 of the 'fancybox' tool. It is a completely rewritten plugin with new features and updated graphics.

Refers to the version 2.0 of the tool.

More information here.

1193 questions
110
votes
11 answers

fancybox2 / fancybox causes page to to jump to the top

I have implemented fancybox2 on a dev site. When I engage the fancybox (click the link etc) the whole html shifts behind it - and goes to the top. I have it working fine in another demo, but when I drag the same code to this project it jumps to the…
sheriffderek
  • 8,848
  • 6
  • 43
  • 70
104
votes
4 answers

Fancybox doesn't work with jQuery v1.9.0 [ f.browser is undefined / Cannot read property 'msie' ]

Fancybox breaks with the new jQuery v1.9.0. It affects both, Fancybox v1.3.4 and below - and - v2.1.3 and below. The errors shown are : v1.3.4 : Timestamp: 15/01/2013 10:03:28 AM Error: TypeError: b.browser is undefined Source File:…
JFK
  • 40,963
  • 31
  • 133
  • 306
18
votes
5 answers

How can I get text content to resize correctly when using Fancybox 2?

I am creating a one-page website in HTML5 using the Unsemantic framework, linking to hidden divs that display in Fancybox 2 and am having trouble getting all the different types of content to size correctly. There are three divs - one containing…
tomdot
  • 551
  • 6
  • 20
15
votes
1 answer

Lightweight, mobile compatible, modern, free alternative to FancyBox 2

I am looking for an alternative to FancyBox 2. It should be lightweight, mobile friendly (use hardware accelerated css transitions), and free to use commercially (FancyBox isn't). Any good alternatives?
Tzach
  • 12,889
  • 11
  • 68
  • 115
15
votes
9 answers

how to prevent scrolling of page behind fancybox-2

We are using fancybox2 for displaying images. Everything works well, but when the larger image is displayed in the fancybox, the page behind scrolls to the top. After closing the fancybox the user has to scroll back downwards to the position, where…
tomsteg
  • 151
  • 1
  • 1
  • 5
13
votes
4 answers

How to destroy Fancybox?

I'm trying to destroy Fancybox. I haven't found any method to do it in documentation. How to destroy it after it was initialized? This doesn't work: $("a").unbind('fancybox').unbind('click'); Testing code: http://jsfiddle.net/martinba/yy3cw/2/ I…
Martin Ille
  • 6,747
  • 9
  • 44
  • 63
10
votes
2 answers

Fancybox stuck loading iframe in IE

I'm having problems loading a PDF in an iframe in IE using fancybox. When I click the link, I get the gif loader and it just spins forever. No errors in the console or on the page or anything like that. Problem occurs in all versions of IE. All…
Falantar014
  • 405
  • 2
  • 5
  • 20
9
votes
4 answers

Fancybox overlay issue on ipad/iphone

On ipad / iphone, the overlay appears over the top of media in fancybox, that is the whole page is filled with the overlay incuding the content of fancybox. Any ideas how I can fix this? Also, I have jwplayer working in fancybox playing videos…
IlludiumPu36
  • 4,196
  • 10
  • 61
  • 100
8
votes
1 answer

Making "Facebook Photo Viewer" with Fancybox 2

http://xinhsangchanh.com/demos/FancyBoxDemo.html This is my demo page show how to making "Facebook Photo Viewer" with Fancybox 2 jQuery & Fancybox 2
VnDevil
  • 1,321
  • 15
  • 13
8
votes
5 answers

How do I make fancybox href dynamic?

I have the following fancybox code: $('.fancybox').fancybox({ 'autoScale' : false, 'href' : $('.fancybox').attr('id'), 'type':'iframe', 'padding' : 0, 'closeClick' : false, //some…
absentx
  • 1,397
  • 4
  • 17
  • 31
7
votes
1 answer

jQuery Fancybox and YouTube embeds

I'm trying to get a YouTube embed to open up in a Fancybox. I've based it on the code on the Fancybox page — http://fancyapps.com/fancybox Here is what I have:
user1049944
7
votes
4 answers

Conflict between Pinterest and Fancybox

I have a page that has both Fancybox and a Pinterest pin button. Both seem to work as they should, but when I close the Fancybox overlay I see the following JavaScript error: Uncaught TypeError: Cannot read property 'data-pin-aha' of null My…
7
votes
4 answers

Unbind/Destroy fancybox 2 events

I am having a strange issue, I have code that pulls content via ajax and then binds Fancybox (2) to certain elements. The issue is that when I "refresh" this page I call the same function that pulls and binds Fancybox again. My normal approach that…
Nick
  • 93
  • 1
  • 1
  • 6
7
votes
1 answer

Fancybox multiple links to same gallery without duplication

So I have a gallery of images, and a few links to it. Something like that title link to first image link to second image
Feather236
  • 144
  • 1
  • 6
7
votes
1 answer

Does Fancybox mute Click events?

That's my question, and here's my example code. HTML: JS: var header = '
Brian Whitton
  • 364
  • 1
  • 10
1
2 3
79 80