var XMLHttpRequestObject = createXMLHttpRequestObject(); function createXMLHttpRequestObject() { var XMLHttpRequestObject = false; try { XMLHttpRequestObject = new XMLHttpRequest(); } catch(e) { var aryXmlHttp = new Array( "MSXML2.XMLHTTP", "Microsoft.XMLHTTP", "MSXML2.XMLHTTP.6.0", "MSXML2.XMLHTTP.5.0", "MSXML2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0" ); for (var i=0; i"; //alert(objDiv.innerHTML); TdivID="t"+divID; objDiv=parent.opener.document.getElementById(TdivID); objDiv.value=XMLHttpRequestObject.responseText; top.window.close(); parent.window.close(); // 上傳結束後關閉視窗 // parent.opener.document.form1.toString(divID).value=XMLHttpRequestObject.responseText; // window.opener.objDiv.innerHTML = XMLHttpRequestObject.responseText; // window.opener.showDiv1.innerHTML = XMLHttpRequestObject.responseText; // alert("OK"); // form2.showDiv1.innerHTML = XMLHttpRequestObject.responseText; /*eval(XMLHttpRequestObject.responseText);*/ } else { var objDiv = parent.document.getElementById(divID); objDiv.innerHTML = "

檔案上傳中......

"; } } catch(e){} } try { XMLHttpRequestObject.send(null); } catch(e){} } } function errUpload(errMsg, divID) { try { var objDiv = parent.document.getElementById(divID); objDiv.innerHTML = ""+errMsg+""; } catch(e){} }