父窗口相关代码
function funShowDialog(fileName, str_dialogWidth, str_dialogHeight, obj_Text, hid_value, ldObj, parentFieldName)
{
var path = fileName + "&check=" + hid_value;
var SValue = "";
//如果弹选窗为被动对象,且弹出网址中不包含hold_key参数则提示用户选择主动对象
if (funOpenWinIsBD(obj_Text.id.substring(8))) {
if (path.indexOf("hold_key=") == -1) {
alert("请先选择主动对象!");
return;
}
}
var newwindow = window.showModalDialog(path, "", ";dialogWidth:" + str_dialogWidth + "px;dialogHeight:" + str_dialogHeight + "px;center:1;scroll:0;help:0;status:0;resizable:yes");
var objHidden;
if (String(newwindow) != "undefined") {
var arrValue = newwindow.toString().split("|"); //value|text
if (obj_Text.value != "") {
//hold_single=0
if (GetQueryString('hold_single', path) == '0' && confirm("是否累加选择?")) {
obj_Text.value = obj_Text.value + ',' + arrValue[1];
objHidden = document.getElementById(obj_Text.id.substring(8));
objHidden.value = objHidden.value + ',' + arrValue[0];
} else {
obj_Text.value = arrValue[1];
objHidden = document.getElementById(obj_Text.id.substring(8));
objHidden.value = arrValue[0];
}
} else {
obj_Text.value = arrValue[1];
objHidden = document.getElementById(obj_Text.id.substring(8));
objHidden.value = arrValue[0];
}
子窗口相关代码
function funReturnValue(strValue)
{
window.returnValue = strValue;
window.close();
}
在父窗口是点击时候弹不出子窗口,在谷歌中弹不出来,在采纳百度上的一些关于解决谷歌兼容性的问题都没用,还是打不开