Project

General

Profile

bug #3564

Updated by Andreas Kohlbecker almost 3 years ago

In Chrome the Image Metadata in the lightbox is not loaded if you are using the "previous" and "next" button. When the overlay initially opens the metadata always appears. In InternetExplorer it seems not to be working at all.  


  


 this is also documented in the source code of ahah-content.js 

 

 ~~~ 
 
 // for Chrome and >=IE9(???) 
         
         //     - Chrome: this only works for the first image in a lighbox gallery FIXME (need lightbox with callback!) 
         
         jQuery("body").bind('overflowchanged', function(event){ 
                 
                 window.setTimeout( 
                         
                         function() { 
                             
                             jQuery('#jquery-lightbox').ahahContent(); 
                         
                         }, 
                         
                         2000 // milli seconds 
                 
                 ); 
         
         }); 
 
 ~~~ 

 

 JQuery has some functions witch could be helpful in order to solve this issue: _the .live() method is deprecated. Use .on() to attach event handlers. Users of older versions of jQuery should use .delegate() in preference to .live()._  


  


 Alternatively we could use a better light box plugin (#3565 (choose better jquery lighbox plugin)) which offers even callbacks. 
 

Back