[jQuery] Problem with layer after 2.6 upgrade

[jQuery] Problem with layer after 2.6 upgrade


Hi,
I just upgraded from jquery 1.1.3 to 1.2.6 and now have the following
problem in IE 7. (Due to the random nature of the problem I am only 95% sure
that it does not also appear in IE 6.)
We have a function where upon clicking a small picture, a large picture is
shown in a floating layer. Sometimes, but not always, the dragging and
closing of the layer now does not work. It seems pretty random, I can't find
any pattern. Sometimes it's immediate. Sometimes I can open and close the
same enlargement twice and then on the third time it won't work. Sometimes I
spend five minutes clicking all the enlargements on the page open and closed
before one of them stops working.
The code is nothing more than this - $BILDID is passed in from my php:
$(document).ready(function()
{
    $('#imagelayer$BILDID').Draggable(
            {
                zIndex:     20,
                ghosting:    false,
                opacity:     0.7,
                handle:    '#imagelayerheader$BILDID'
            }
        );    
                        
    $("a[rel='imgclick$BILDID']").click(function(e)
    {
        var layer = $("#imagelayer$BILDID");
        showlayer(layer[0],e);
        return false;
    });
    
    $("a[rel='imageclose$BILDID']").click(function()
    {
        $("#imagelayer$BILDID").fadeOut('slow');
        return false;
    });    
});
It almost seems like somehow the onclick of the imageclose / drag header div
is being unbound but I can't see how that would be happening.
Any help is greatly appreciated.
Thanks,
Cynthia
--
View this message in context: http://www.nabble.com/Problem-with-layer-after-2.6-upgrade-tp20186531s27240p20186531.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.