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
4
votes
1 answer

Fancybox with size to viewport but also with maximum width

I use Fancybox2 (fancybox.net) on my website. When the ligthbox is shown I want it to size according to the screen width of the browser, so it's good to view on both mobile and desktop. However, on the desktop I want the box to have a maximum width…
Adam
  • 6,041
  • 36
  • 120
  • 208
4
votes
1 answer

Fancybox-2 on mobile - prevent scrolling of the page behind popup

I cannot find the same issue online after over a day's searching, so I am here with tail-between-legs. Not sure what code is relevant to this issue - can provide - otherwise see link below I am working on a image gallery for a portfolio site. Using…
user3058342
  • 41
  • 1
  • 2
4
votes
1 answer

fancybox 2: put thumbnails within a parent div

Ok so I've recently added 'fancyBox' to my site and its great. However I want to place the tumbnails (whose functionality is part of the thumbnails helper, thus in a separate .js file) just under the gallery images. I first tried to change the divs…
Edward G-Jones
  • 575
  • 3
  • 11
  • 24
4
votes
1 answer

After open Fancybox-2, send the focus in fancybox window

For accessibility, I try to send the focus in the Fancybox window once it is opened. I add a tabindex to 0 on the container of the Fancybox and I send the focus on it. This doesn't work. afterLoad: function() { …
Steven Mouret
  • 5,730
  • 1
  • 18
  • 21
4
votes
2 answers

JQuery Fancybox not working

I've followed the directions, but Fancybox isn't working right. I think I need some extra eyes to tell me what I am doing wrong. Any Ideas? HTML The code:

neuquen
  • 3,991
  • 15
  • 58
  • 78

4
votes
1 answer

dynamically change facebook og image in a fancybox share button

The goal : I would like to have a share button in my fancybox that share the image I'm looking at with the correct image name in the Facebook sharer. I would like that when a user click on this in Facebook, he arrives on an opened Fancybox with the…
JeremRama
  • 41
  • 1
  • 4
4
votes
1 answer

Fancybox 2 Open Iframe version from code

I see this example : http://jsfiddle.net/STgGM/ on the FancyApps page, but I need to do similar, but with an iframe! When I replace the image path with a URL it does not do anything, no errors or anything. $.fancybox.open([ { href :…
box86rowh
  • 3,415
  • 2
  • 26
  • 37
4
votes
1 answer

Fancybox - Implementing afterClose callback

My javascript syntax is rookie-level, but I'm learning :> I'm using Fancybox 2.1.4 to reveal an inline
. Traditionally, the
would be set to style="display:none" and Fancybox will change that to block when activated, and back…
Dave Bar
  • 75
  • 1
  • 1
  • 6
4
votes
4 answers

Calling Knockout.js viewModel function from JQuery onclick

Pretty new to knockout.js, I'm a C#'er but my new job involves a LOT more front end in addition to back-end so finally got round to this. Anyway, I've encountered (what I think is) an unusual scenario where I want to call a viewModel method from a…
richardterris
  • 303
  • 2
  • 4
  • 13
4
votes
1 answer

Can you explain $.fancybox.open( [group], [options] ) params and if I can add youtube link as href?

I'm reading documentation: http://fancyapps.com/fancybox/#docs and the $.fancybox.open( [group], [options] ) and open explanation is good, but I'm wondering if I can use a link to a youtube video in the group array? I'm attempting to play a youtube…
gabemartinez
  • 43
  • 1
  • 3
  • 5
4
votes
2 answers

Adding a title to fancy box

Hi you probably think this is a dumb question but I am trying to get titles added to fancy box 2. I know very little about javascript but have this at the bottom of my html