Je chargement d'une image dans une étiquette vierge et continuer à obtenir les éléments suivants IE 7 Erreur: reader.load -> l'image de chargement d'erreur: http://localhost/uploads/239-4/SCAN_0001.jpgIE 7 l'image jQuery charge bug
Je suis en jQuery 1.7.1 et ce qui suit pour charger l'image:
prop.image.attr('src', 'http://localhost/uploads/239-4/SCAN_0001.jpg').load(function(e) {
if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
alert('foobar x.x');
}
else { alert('image loaded yay \o/'); } });