Lightbox 2 is a JQuery-script developed by Lokesh Dhakar used to display images in an overlaying box. It can also be used to make galleries and can be found at www.LokeshDhakar.com/projects/lightbox2
Questions tagged [lightbox2]
452 questions
2
votes
3 answers
Drupal Form can't access javascript function (errors "not a function")
using drupal with lightbox2 to open a form. this form is from a custom module.
the module has a setting: 'onsubmit' => 'return form_submission(this);' and that appears to be working correctly.
I've included the functions.js in the theme.info file…

eriksays
- 130
- 1
- 6
2
votes
3 answers
PHP & Lightbox (href in for loop links to last file of lightbox set)
EDITED: Debugged some of the code but issue persists:
The issue i'm having with the following code is that the link always takes me to the last image in the set. I've tried reversing the array of photo's but it had no effect. Any help would be…

phunksta
- 33
- 5
2
votes
3 answers
How to use Lightbox under MVC
I am a big fan of the Lightbox2 library, and have used it in the past just not on an MVC project. In the past I remember that Lightbox2 was picky about the paths it scripts, css, and images resided in. I remember specifically have to put everything…

Jason Whitehorn
- 13,585
- 9
- 54
- 68
2
votes
4 answers
Rails add a lightbox to an application
Rails 4.
Hi I d'like to add an lightbox to my application. I have follow the step-by-step instructions for Lightbox but my photo gallery doesn't respond at all
I have called (:all : application) the file necessary in my application.html.erb. My view…

Papouche Guinslyzinho
- 5,277
- 14
- 58
- 101
2
votes
1 answer
How to call lightbox from outstanding link?
Does somebody know, how to call a lightbox from an custom link?
Example:
$('#price1 a').lightBox(); //in the header
Now I want to click a custom link somewhere on the page.
Link to lightBox
And images in a div…

Jooj
- 687
- 4
- 15
- 32
2
votes
0 answers
set max width and height in percentages of screen size for lightbox image
I am using Lightbox v2.51 by Lokesh Dhakar. Is there a way to set max height and width value according to users screen resolution? I want to have the images fill most of the screen area.
Thanks.

Joe St Onge
- 31
- 1
- 1
2
votes
5 answers
What is the logic of Lightbox 2 on where to position the popup?
What is the logic of Lightbox 2 on where to position the popup?
It seems that when using Firefox or Chrome it shows up in different places on different pages. Is there any setting to have it show at the same height on every page for consistency? …

leora
- 188,729
- 360
- 878
- 1,366
2
votes
3 answers
Using LightBox in ASP.NET master pages
I am using LightBox v2.0.4 with master pages on a web site and am having problems with the loading.gif and closelabel.gif images appearing. I have content pages residing in folders that are 3 layers in from the root, their master page is 2 layers in…

Wayne E. Pfeffer
- 245
- 1
- 7
- 15
2
votes
1 answer
How Can I get ChillBox (a LightBox clone) to work on an offline webapp using cache.manifest?
I am building a web app for an iPad (designed so my boss can show information at meetings).
So far I have everything working, except for one thing- I am using an application cache to allow the app to work offline (cache.manifest), and for some…

taijaCG
- 46
- 3
2
votes
2 answers
Adding Lightbox Attribute to CQ5 Image Anchor
I need to add rel="lightbox" to the anchor tag when you select a target image using either Image or TextImage component. The anchor tag is automatically generated by CQ, but I am unable to find where this happens, or more importantly, if there is a…

justacoder
- 2,684
- 6
- 47
- 78
2
votes
1 answer
How to fix fatal error in magento causing wsod?
I'm using Magento Community Edition 1.7.0.2.
LightBox2 stopped working after clearing js/css cache via cache management.
I receive the following error:
PHP Fatal error: Call to a member function addItem() on a non-object in…

Joshua34
- 394
- 2
- 10
2
votes
1 answer
Lightbox2, wrong count because of additional text link?
I'm using Lightbox2 in a fairly standard implementation: click on an image in a series (all with rel="lightbox[gallery]") and it opens in the Lighbox with the next/prev arrows pointing to the next and previous image in the series. I also have a text…

Sam
- 2,152
- 6
- 31
- 44
2
votes
0 answers
displaying images contained inside individual gallery
I am using a lightbox gallery and I managed to integrate it into my web site.
Please have a look at a file: https://gist.github.com/2517910
As you could see from the file I've added two galleries- each gallery has five pictures.
The current behavior…

Dantes
- 2,791
- 6
- 26
- 34
2
votes
3 answers
How do I pass dynamic URLs into a Lightbox 2 instance, rather than using its hardcoded `this.URL`?
I'm working with Lightbox 2, as it meets nearly every one of my requirements and appears to be the most recently updated, low profile, quality 'Lightbox' jQuery plugin I have come across. The only issue I have with it is that two of the images…

Bryson
- 1,186
- 2
- 13
- 26
1
vote
0 answers
I need a Lightbox to display multiple images at once (in one zoom area)
Can anyone tell me if there is a Lightbox (or similar) which is able to display several images at once, i.e 5 images shown overlayed together on one 'zoom'. More specifically, I need to display one main 'background' image with several divs (each…

Mark_54
- 1,273
- 4
- 15
- 21