画像タグを動的に作成しており、画像の読み込みイベントで画像の高さと幅が必要です。
I have following code
var foreImage = $('<img/>')
.load(function () {
alert( this.height + ' ' + this.width );
}).attr("src", imageUrl);
上記のコードは firefox と chrome で動作しますが、IE 8 では失敗します。理由はありますか?
画像タグを動的に作成しており、画像の読み込みイベントで画像の高さと幅が必要です。
I have following code
var foreImage = $('<img/>')
.load(function () {
alert( this.height + ' ' + this.width );
}).attr("src", imageUrl);
上記のコードは firefox と chrome で動作しますが、IE 8 では失敗します。理由はありますか?