你是否正在寻找关于showmodaldialog的内容?让我把最直接的东西奉献给你:
继了解了上篇文章()后对以前showmodaldialog脚本做相关改进。
父页面
if(window.ActiveXObject){ //IE
$("#choose_entp").click(function(){
var returnValue = window.showmodaldialog("SelectEntpInfo.do?mod_code=${af.map.mod_code}&xxx=" + Math.random(), window, "dialogWidth:630px;status:no;dialogHeight:440px");
if(returnValue != null ){
setValue(returnValue.id,returnValue.name);
}
});
}else{ //非IE
$("#choose_entp").click(function(){
window.open("SelectEntpInfo.do?mod_code=${af.map.mod_code}&xxx=" + Math.random(), 'newwindow','height=440,width=630,top=150,left=300,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no');
});
}
function setValue(id,name){
$("#entp_id").val(id);
$("#entp_name").val(name);
}
子页面处理:
以上就是关于showmodaldialog的全部内容,相信你一定会非常满意。
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-6855-1.html
批发价可低至3块钱
直接撞它