找回密码
 加入
搜索
查看: 3387|回复: 2

[IE类操作] udf问题,找不到对象变量,请求协助!

[复制链接]
发表于 2010-12-20 10:02:28 | 显示全部楼层 |阅读模式
请求协助,找不到对象变量
截图

本弹出窗口源代码

<html>
<head>
<title>文件上传</title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<link href="../theme/Master.css" rel="stylesheet" type="text/css" />
<script src="../js/rnd.js"></script>
</head>
<base target="_self">
<body style="margin:20px 10px 10px 20px" >
<FORM METHOD="POST" NAME="upform" action="uploadfile_result_c.jsp?type=1&path=4" ENCTYPE="multipart/form-data" >
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td  align="center">
                        <table id="uploadTable" width="80%" border="0" cellpadding="0" cellspacing="0" class="table_blue">
                 <tr>
                  <th colspan="2">文件上传</th>
                 </tr>
                  <tr>
                  
                  <td colspan=2 height="25" align="center">单个文件最大上传5MB,总最大上传20M(doc/xls/txt/pdf/zip/wps/et)</td>
                 
                 </tr>
                  <tr height="25">
                    <td width="30%">选择上传文件[1]</td>
                    <td width="70%">
                                <input type="FILE" name="FILE1" size="30" style="border : 1px solid #008000;">
                                &nbsp;&nbsp;<input  type="button" value="新增附件" onclick="insertRow();" style="height:18px;border : 1px solid #008000;">
                                        </td>
                  </tr>         
             </table>
        </td>
      </tr>
      <tr>
        <td align="center">
                <input  type="button" class="ok" value="上 传" onclick="upload()"/>
             <input type="button" class="return" onClick="javascript:window.close();" value="取消" />
         </td>
       </tr>

</table>
</form>
</body>
<script language="javascript">
<!--
function upload() {
        var timestamp = timemark();
        var files=document.getElementsByName("FILE1");
        if(files[0].value==""){
                alert("请选择文件");
                return false;
        }
        document.upform.action="uploadfile_result_c.jsp?type=1&path=4&timemark="+timestamp;
        document.upform.submit();
}

function insertRow(){
        table=document.getElementById("uploadTable");
        index = table.rows.length;
        if(index<=5){
                nextRow = table.insertRow(index);
                cell0 = nextRow.insertCell(0);
                cell1 = nextRow.insertCell(1);
                cell0.innerHTML ="选择上传文件["+(index-1)+"]";
                cell1.innerHTML ="<input type=\"FILE\" name=\"FILE1\" size=30 style=\"border : 1px solid #008000;\"></span>";
        }
}
//-->
</script>
</html>

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2010-12-20 12:27:48 | 显示全部楼层
你想要做什么?

同时,可否给出你现行的代码?
 楼主| 发表于 2010-12-20 16:16:56 | 显示全部楼层
本帖最后由 arker 于 2010-12-20 16:39 编辑

父窗口相关源代码
<td colspan="3" class="tb_bg01" >
<input name="ext_filename" id="ext_filename" style="color:#DC143C;TEXT-DECORATION: underline;cursor:hand;" type="text" value="上传文档" readonly onclick="upload();">
</td>

利用以下代码弹出上述窗口
$o_form1 = _IEFormGetObjByName($oIE1, "archivesForm")              ;找到表单
$oQuery1 = _IEFormElementGetObjByName ($o_form1, "ext_filename")
_IEAction($oQuery1,"click")

用 _IEAttach ( "文件上传 -- 网页对话框" )   代码找不到弹出窗口的窗口变量。
这个窗口弹出,已经禁用了右键菜单。

目的是把
$oFilename="D:\jzbg\"& $shujv[2] & "的报告.doc"
这样一个文件写入上传对话框,进行批量上传。

谢谢!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-4-28 17:22 , Processed in 0.078339 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表