[学习笔记]window.showModalDialog窗口跳转取值

/主页面
    var params="&viewUID=PerformanceEvaSettingSelectConpayView&mode=preview&conpayobj="+obj;
        var url=$contextPath()+"/bpmengine/view/framedialog.jsp?xpage="+$contextPath()+"/bpmengine/view/listview.jsp&xtitle="+params;
        var items=window.showModalDialog(url,window,"dialogWidth:"+1000+"px;dialogHeight:"+800+"px;directories:yes;scrollbars:yes;Resizable:yes;status:no;help:no");
        onSelectedItemsConpany(items,1);

//子页面获取主页面的某个值
dynaview.addOnLoad(onload11);

function onload11(){
    var vwin=window.dialogArguments;
    var ids=vwin.document.getElementById("f_PES_SelCompany").value;
    $byId("f_PESSCDS_PostDepartmentName").value=ids;
}

你可能感兴趣的:([学习笔记]window.showModalDialog窗口跳转取值)