jquery ajaxFileUploadプラグインIE 9でのバグ修正
ajaxfileupload.jsで次のコードが見つかりました.
上のコードを次のように変更します.
これによりajaxFileUploadはIE 9でファイルのアップロードをサポートします.修正後のajaxFileUpload.jsダウンロードアドレスは次のとおりです.http://download.csdn.net/detail/zyk906705975/5001353
if(window.ActiveXObject) {
var io = document.createElement('<iframe id="' + frameId + '" name="' + frameId + '" />');
if(typeof uri== 'boolean'){
io.src = 'javascript:false';
}
else if(typeof uri== 'string'){
io.src = uri;
}
}
上のコードを次のように変更します.
if(window.ActiveXObject) {
if(jQuery.browser.version=="9.0") {
io = document.createElement('iframe');
io.id = frameId;
io.name = frameId;
} else if(jQuery.browser.version=="6.0"||jQuery.browser.version=="7.0"||jQuery.browser.version=="8.0") {
var io = document.createElement('<iframe id="' + frameId + '" name="' + frameId + '" />');
if(typeof uri== 'boolean'){
io.src = 'javascript:false';
}
else if(typeof uri== 'string'){
io.src = uri;
}
}
}
これによりajaxFileUploadはIE 9でファイルのアップロードをサポートします.修正後のajaxFileUpload.jsダウンロードアドレスは次のとおりです.http://download.csdn.net/detail/zyk906705975/5001353