父页面代码:
new_page_title//查询信息
function doQuery_new(){
var inputValue = $("#inputValue").val();
alert("doQuery");
}
//新增信息
function doOpen_new(){
var dlg = new Dialog("son_Dialog");
dlg.Width = 450;
dlg.Height = 150;
dlg.Title = "son_Dialog";
//URL为子页面路径
dlg.URL = "/smsadmgr/data/black/sonDialog.jsp";
dlg.ShowMessageRow = false;
dlg.parentWindow = window;
dlg.OKEvent = function(){dlg.getIFrame().doSubmit()};
dlg.show();
dlg.OKButton.value ="刷新";
}
border="0">
手机号码:子窗口代码:
son_pagestyle="text-align: center; margin-left: 3px; margin-right: 3px">
手机号码:maxlength="50" value="" style="width: 100px" />*
证件号码 :maxlength="50" value="" style="width: 100px" />*
function fillPhone(){
document.getElementById("BL_PHONENUM").value="加载填充";
//$("#BL_PHONENUM").val("加载填充");
}
function doSubmit(){
var inputValue=document.getElementById("ZJ_NUM").value;
if(inputValue==""){
alert("证件号码不能为空");
return;
}
alert(inputValue);
var dlg = parent.Dialog.getInstance("son_Dialog");
var pframe = dlg.parentWindow;
pframe.doQuery();
dlg.close();
}