M2vH / galleriffic

Automatically exported from code.google.com/p/galleriffic
0 stars 0 forks source link

IE #slideshow img object null #225

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
$(window).load(function () {
$img = $("#slideshow img");     
offsetX = $img.offset().left;
}); 

What is the expected output? What do you see instead?
I expect IE to allow me to reference the dynamically created image in 
#slideshow.

What version of the product are you using? On what operating system?
IE8 on Win7

Please provide any additional information below.
IE allows me to reference a normal image tag in the HTML, but it doesn't "see" 
the info of the #slideshow img.

Original issue reported on code.google.com by adamhunt...@gmail.com on 2 Jul 2011 at 3:12

Attachments:

GoogleCodeExporter commented 8 years ago
Better code to reproduce it with: 

    $(window).load(function () {
        var $img = $("#slideshow img");
        alert( $img.attr('src') ); // in IE, is "undefined" 
    });

Original comment by adamhunt...@gmail.com on 2 Jul 2011 at 3:18