脚本以前没有错误做过实验,刚刚安装好的XP系统访问没有问题,然后中午UpDate以后在访问就有问题了!做了两台电脑的实验!

解决方案 »

  1.   

    父页面调用的脚本!
    function getUser_Group(firstDeptId, idObj, nameObj, ch) {
    if (ch.length < 1)
    ch = ",";

    var gu = idObj.value;
    var nm = nameObj.value;     vReturnValue = 
    window.showModalDialog('common/memberSelect.jsp?show=user_Group&firstdepid=' + 
    firstDeptId + '&gu=' + gu + '&nm=' + nm ,'selectUser','dialogHeight:' + screen.height + '; dialogWidth:' + screen.width + ';dialogTop: 100px; dialogLeft: 100px; center: Yes; help: No; resizable: Yes; status: Yes;'); if (vReturnValue != null) {
    var strNm = "";
    var strID = "";
    for(var n = 0; n < vReturnValue.length; n++) {
    var getStr = vReturnValue[n].value;
    var begin = getStr.indexOf("__"); getNm = getStr.substring(begin+2);
    getID = getStr.substring(0,begin);
    if(getID.indexOf("_") > 0)
    getID = getID.substring(getID.indexOf("_") + 1); strID = strID + getID;
    strNm = strNm+getNm;
    if (n < vReturnValue.length - 1) {
    strID = strID + ",";
    strNm = strNm + ch;
    }
    }
    nameObj.value = strNm;
    idObj.value = strID;
    }
    }//子页面提交操作脚本是这个
    function formSubmit() {
    var i = document.form1;
        if (i.EntryList_1.options.length != 0) {
    <% if (isSimple) { %>
          //alert("length="+i.EntryList_1.options.length);
    if (i.EntryList_1.options.length > 1) {
           alert("不允许多选,只能选择一人。");
           return;
    }
    <% } %>

    for (var p = 0; p < i.EntryList_1.options.length; p++) {
    i.EntryList_1.options[p].selected="true";
    }
       }   selList = new Array(i.EntryList_1.options.length);
       for(var n = 0; n < i.EntryList_1.options.length; n++) {
           selList[n] = i.EntryList_1.options[n];
       }
       window.returnValue = selList;
       window.close();
    }
    提交完成应该是把我列表中显示的人员列在父页面中的列表中!!!现在提交完成后父页面是空的!显示“没有权限”错误