var ret=showModalDialog("zd_input.jsp",window,style="dialogHeight:300px; dialogWidth:586px; center: Yes;edge:sunken; ")
改成
var ret=showModalDialog("zd_input.jsp",window,"dialogHeight:300px; dialogWidth:586px; center: Yes;edge:sunken; ")
再试试
改成
var ret=showModalDialog("zd_input.jsp",window,"dialogHeight:300px; dialogWidth:586px; center: Yes;edge:sunken; ")
再试试
解决方案 »
- jquery 获取vml 的问题 很纠结
- 帮忙看看这段代码有什么问题
- JS脚本语言,如何定位在两个不同文本框中?
- ■■■■如何修改confirm消息框的"确定","取消"这两个字?
- 能推荐个功能强健的javascript ide工具么?
- 紧急求助,有没有哪个兄弟实现过javascript里的异步啊
- 能否直接用javaScript内置对象获得本机ip地址?
- 谁有Visual CHM4.0的注册码?散分了
- 在服务器端(Servlet调用javaBean)解析XML生成HTML返回给客户端,怎样使得这个HTML页面显示的时候是一个弹出的模态窗口,好象showModalDialo
- 如何设置动态ip
- 如何在HTML中引入代有script头尾的JS文件?
- 弹出窗体问题
showModalDialog语法是这样的
vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])如果去掉还报错,也有可能是zd_input.jsp中脚本错误
为什么用window.location和window.open都可以呢?
<script>
var vDialog=null;
function rdl_doDialog(){
vDialog=showModalDialog("rdl_showmodelessdialog_demo.html",window,"status:no;resizable:yes;dialogHeight:210px;dialogWidth:360px;unadorne:yes");
if (vDialog != null) vDialog.idDialogInput.value=idOpenerInput.value;
}
</script>
<input type=text id=idOpenerInput value="传递的文字"><br><br>
<input type=button onclick="rdl_doDialog();" value="建立对话框">
---- 对话框页面的代码 ----<script>
function window.onunload() {
dialogArguments.vDialog=null;
}
</script><input type=text id=idDialogInput><br><br>
<input type=button onclick="dialogArguments.idOpenerInput.value=idDialogInput.value;" value="传递文字">
<input type=button onclick="window.close();" value="关闭">
这个问题我也碰到过,我的原因是在弹出窗口中的javascript有问题,而且只在使用showModalDialog方式的时候才会产生问题,估计和showModalDialog的数据未刷新有关,我也正在摸索中。