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; ")
再试试

解决方案 »

  1.   

    去掉style=
    showModalDialog语法是这样的
    vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])如果去掉还报错,也有可能是zd_input.jsp中脚本错误
      

  2.   

    把style去掉后还是不行呀,我改用其他的页面都提示这个错误,晕倒。
    为什么用window.location和window.open都可以呢?
      

  3.   

    var ret=showModalDialog("zd_input.jsp",window,"")先试试
      

  4.   

    var ret=showModalDialog("zd_input.jsp",window,"dialogHeight:300px;  dialogWidth:586px; center: Yes;edge:sunken; ")
      

  5.   

    http://www.csdn.net/Develop/read_article.asp?id=15113
      

  6.   

    这是一个使用例子,希望能启发你:
    <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="关闭">
      

  7.   

    错误发生在zd_input.jsp中的第9行,楼主可以给出zd_input.jsp的代码吗?我真得很佩服楼上的,连错误都没看到,就可以说的这么天花乱坠。
    这个问题我也碰到过,我的原因是在弹出窗口中的javascript有问题,而且只在使用showModalDialog方式的时候才会产生问题,估计和showModalDialog的数据未刷新有关,我也正在摸索中。
      

  8.   

    出错不在showModalDialog中。检查zd_input.jsp,看看是否有window.opener之类不能用在dialog中的代码。