jQuery Lightbox Version 0.4

September 28th, 2007 34 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!

XBox 360 Warranty Replacement - The Outcome

September 24th, 2007 No Comments »

After much frustration with Microsoft, and the realization that they weren’t going to help with my faulty console, I took matters into my own hands.  Here’s what went down.

I’d read online that some people had some success with their consoles after removing the “X” clamps that held their heatsink’s down.  On the advice of a friend, I tried that method.  I bought a 3.5g tube of Arctic Silver,  8 M5 x 10 screws,  16 #10 nylon washers, and 16 5mm metal washers.  I disassembled the xbox,  removed the “X” clamps, and removed my heat sinks. I then spent the next 30 minutes gently cleaning the chips with some rubbing alcohol and q-tips.  If you try hard enough, you can get them back to their mirror finish.  Then, for good measure, I cleaned the heatsinks off as best I could.

Next was the fun part. I applied some Arctic silver to the chips, and re-attached the heatsinks using a combination of washers and bolts.  I’ll document what I did later on (I video taped most of it, I might put a video together)  but you can find all of the information online pretty easily.

In the end, I was left with what seems to be a fully functional Xbox again. Now that my case has been opened, and I’ve got no warranty left, i’m thinking about modding the case some how.  More on that later.

jQuery Lightbox Bug Fix

September 20th, 2007 1 Comment »

Quick update.  Apparently,  v0.3 had some debug code left in (console.log() is the culprit.)  I removed those lines, and uploaded the script again,  so everything should work normally.

I’m working on v0.4 which will have all the standard customization built back in for animation time, loading / close graphics, border, etc.

For now, you can grab a copy of jquery-lightbox-0.3.zip 

jQuery Lightbox in Drupal, via jLightbox

September 18th, 2007 2 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

jQuery Lightbox Version 0.3

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