Well, it's more of a hack than a fix ;-)

The hacked lightbox.js file is now only good for a page that has that
specific form field in that specific form name. Otherwise it would throw a
js error.

I'm sure I could come up with a much nicer way of passing in form fields
(I'd prefer IDs) to hide/show without restricting the file's use but I'm
rather busy cleaning up someone else's amassed hacks... SO STOP INSTANT
MESSAGING ME!! hehe


..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

 

 


-----Original Message-----
From: Will Tomlinson [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 9:00 PM
To: CF-Talk
Subject: Bobby solves another problem....

Here's Bobby Hartsfield's fix. Works like a champ! Thanks Bobby! You da
man!! 

Go straight into the lightbox.js file. 

Line 209/210 should look like this:

document.addtocartform.optionID.style.display='none';
objCaption.style.display = 'block';

addtocartform is obviously your form name while optionID is your select menu
name. 

When the image viewer pops up, the select goes to la la land. 

Then line 251 is the hidelightbox function. 

function hideLightbox()
{
        // get objects
        objOverlay = document.getElementById('overlay');
        objLightbox = document.getElementById('lightbox');

        // hide lightbox and overlay
        objOverlay.style.display = 'none';
        objLightbox.style.display = 'none';
        document.addtocartform.optionID.style.display='block';
        
        // disable keypress listener
        document.onkeypress = '';
}

Look where we told it to bring back the select from la la land when the
viewer goes away. Works great in FF and IE (did I mention I hate IE?)



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251335
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to