Posted on December 4th, 2007 | No Comments »
A group of people have been submitting issues / fixes via comments and email. Since I don’t get a chance to work on this package very often, I figured the best thing to do would be to open it up to the community.
Last week, I set up a google code project for jQuery Lightbox. I can have an issue tracker, other developers, download management, and full on community SVN for everyone to use. I’ll still post updates to the package on here, but hopefully we can get everyone using it to move over there, and keep it up to date.
You can access the project at http://code.google.com/p/jquery-lightbox/
Cheers!
Posted on September 28th, 2007 | 33 Comments »
NOTE: This is an older release. Version 0.5 has been released, and it acts better as a true jQuery plugin. It is recommended that you download Version 0.5 to get all of the new improvements.
New in this release:
- Added loading/close images as variables
- Added resize speed variable
- Migrated resize event into one animation, instead of two
- Removed stray console.log() calls
- Fixed updateImageList so more images can be added via AJAX calls
I believe all the bugs in this release should be fixed. It should operate fine in place of the original lightbox.js without any real problems. I’d appreciate if you could leave a comment with notes of any problems you have, so this can be cleared up quickly.
Come and get it!
jquery-lightbox-0.4.zip
Cheers!
Posted on September 18th, 2007 | No Comments »
Daniel Kudwien took the time to package v0.2 of jQuery Lightbox as a Drupal module. You can check it out at http://drupal.org/project/jlightbox
Posted on September 17th, 2007 | 15 Comments »
NOTE: jQuery Lightbox v0.3 is a very old release. I’ve recently released version 0.5 and highly suggest you download that release as it fixes many bugs that exist in v0.3 as well as introduces a host of new features.
Nearly 50 days after the last release, jQuery Lightbox has made it to v0.3, a stable version which should be ready to be used anywhere you’d like. There haven’t been any major changes to the codebase, mainly just bug fixes. Here’s a brief list of issues that have been addressed:
- Overlay image wasn’t properly resizing with the browser window.Fixed by changing the width of #overlay from a pixel width, to simply 100%
- Clicking close would generate scrollbars in Firefox V2.0.0.5Fixed by modifying the style associated with the close button.
- Clicking the “Next” and “Previous” buttons could render the lightbox in a constant state of loading.Issue diagnosed as jQuery firing multiple instances of the .click() method on mouse down. Workaround was to introduce an “in progress” variable to all transitions, preventing multiple requests to load an image. I’m not 100% happy with this method, but it works well for now.
- Browsing through images of similar sizes could cause the lightbox to not show a new image.Fixed by removing conditional resizing of the lightbox. Now hDiff and wDiff are disregarded attempts to resize the box. A horizontal and a vertical resize are requested on each image load. This should have no negative effects on image galleries.
- Several other small bug fixes surrounding CSS.
With this, jQuery Lightbox should now act as a fully functional lightbox replacement. The next steps in the process will be to rewrite portions of the code with jQuery’s “Write less, do more” philosophy. On top of that, there have been several requests to add “Slideshow” functionality.
I don’t think a slideshow will ever make it into the codebase, unfortunately. This script was written to be a lightbox replacement, and I think it does that rather well. Writing a script to work alongside of this could be done in a few simple lines of jQuery, and I may even provide them somewhere in the future, but they won’t be in the main lightbox.js codebase.
As always, comments are welcome, and encouraged. Please let me know any experience you may have with this, as the drive is on now to really get this written as some solid jQuery code.
Cheers!
Download jquery-lightbox-0.3.zip
Posted on August 3rd, 2007 | 1 Comment »
It’s been a few days, and several people have downloaded the jQuery Lightbox. I’ve already received some feed back, and have isolated a few issues. The current bugs all seem to revolve around clicking the “Next” and “Previous” buttons. Clicking these buttons often shuffles the activeImage array. I currently see two possible solutions to this issue:
- Determine which jQuery click() event is creating the shuffle, and fix it
- Modify the script so that the image set is circular, in which getting to the end of the gallery brings you back to the beginning.
I think this is the only bug that could stop adoption of this script, at the moment. Hopefully i’ll get it wiped out this weekend.