In ajaxfileupload. the following code is found in js: [javascript] if (window. activeXObject) {variodocument. createElement (& amp; #39; & lt; iframeid & quot; & amp; #39; + frameId + & amp; #39; & quot; name & quot
Find the following code in ajaxfileupload. js:
[Javascript]
If (window. ActiveXObject ){
Var io = document. createElement ('');
If (typeof uri = 'boolean '){
Io. src = 'javascript: false ';
}
Else if (typeof uri = 'string '){
Io. src = uri;
}
}
Modify the above Code:
[Javascript]
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 ('');
If (typeof uri = 'boolean '){
Io. src = 'javascript: false ';
}
Else if (typeof uri = 'string '){
Io. src = uri;
}
}
}
In this way, ajaxFileUpload supports file upload in IE9.
Author: zyk906705975