js 关于showModalDialog()问题 本帖最后由 net_lover 于 2013-12-22 18:19:00 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你可以这么测试B 页面<script>var iCustomerID ="ok"oWinD = showModalDialog("servicedesk/selectSettleEmployee.html",window,"center=yes;dialogWidth=560px;dialogHeight=260px;status=no;resizable=yes;help=no;scroll=no;");</script>selectSettleEmployee.html里面写<script>var parentWindow = window.dialogArguments; alert(parentWindow.iCustomerID)</script> B 页面<script>var iCustomerID =$("#id").val();function a(){ oWinD = showModalDialog("servicedesk/selectSettleEmployee.html(c页 面)",window,"center=yes;dialogWidth=560px;dialogHeight=260px;status=no;resizable=yes;help=no;scroll=no;"); }</script>C页面:<script>var parentWindow = window.dialogArguments; function onLoad(){ parentWindow.iCustomerID 报错了}//俩级页面一样的代码没报错</script> alert(parentWindow)这个没报错(object) alert(parentWindow.iCustomerID)报错,和三级页面有关系么? 求教 这段代码在chrome不能执行,别的浏览器都可以 extjs splitbutton 如何让menu响应文本点击 jquery设置 div宽度 为什么这个文字不会走动的? css浮动 为什么页面会刷新?--在线等,马上给分 弹出窗口&窗口内容居中 如何在一个frame载入的页面中通过select控件的onchange事件来改变另外一个frame载入的页面 如何用javascript填加表单 我想做这样一个效果,请大家帮忙支招. 请高手帮忙看下这段代码
B 页面
<script>
var iCustomerID ="ok"
oWinD = showModalDialog("servicedesk/selectSettleEmployee.html",window,"center=yes;dialogWidth=560px;dialogHeight=260px;status=no;resizable=yes;help=no;scroll=no;");
</script>
selectSettleEmployee.html里面写
<script>
var parentWindow = window.dialogArguments;
alert(parentWindow.iCustomerID)
</script>
<script>
var iCustomerID =$("#id").val();
function a(){
oWinD = showModalDialog("servicedesk/selectSettleEmployee.html(c页 面)",window,"center=yes;dialogWidth=560px;dialogHeight=260px;status=no;resizable=yes;help=no;scroll=no;");
}
</script>C页面:
<script>var parentWindow = window.dialogArguments;
function onLoad(){ parentWindow.iCustomerID 报错了
}
//俩级页面一样的代码没报错
</script>