Internet Explorer 8 でポップアップの画像を読み込むのに苦労しています。「画像の読み込みに失敗しました」というメッセージが返される理由がわかりません。いつも。
最初はキャッシングの問題だと思っていましたが、そうではなかったようで、今では何が原因なのかわかりません...
var img = $("<img />").attr('src', imageSource)
.load(function() {
if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
$("#imagePopup .content").html('Image failed to load.');
}
else {
$("#imagePopup .content").html(img);
}
});