http://expert.csdn.net/Expert/FAQ/FAQ_Index.asp?id=2014

解决方案 »

  1.   

    在showModalDialog对话框里的form里:
    <form target=meizz>在父网页里(建立一个隐藏的浮动帧):
    <iframe name=meizz width=0 height=0 frameborder=0 style="display: none"></iframe>这样在showModalDialog里提交就不会出现新的网页了。
      

  2.   

    我用的是jsp,不是asp。
     按emu(ston)的方法,window.showModalDialog(...)会打开一个很小的窗口,而且窗口没有jsp产生出来的东西。
    按meizz(梅花雨) 的方法,点提交会没有反应。
      

  3.   

    我改为以下代码,可以实现,问题是怎么对话框那么小,我已经设定了大小的:
    window.showModalDialog("tmp_hm.jsp?hmt="+hmt+"&t1="+t1+"&t2="+t2+"&t3="+t3+"&t4="+t4,"poplist","center:yes;help:no;dialogWidth=1024px;dialogHeight=768px;status:no");
    然后在tmp_hm.jsp中:
    <%
    String hmt=request.getParameter("hmt");
    String t1=request.getParameter("t1");
    String t2=request.getParameter("t2");
    String t3=request.getParameter("t3");
    String t4=request.getParameter("t4");
    %>
     <frameset  rows=  "0,*">    
     <frame sre="about:blank">
     <frame  src="hm.jsp?hmt=<%=hmt%>&t1=<%=t1%>&t2=<%=t2%>&t3=<%=t3%>&t4=<%=t4%>">  
     </frameset> 
    在hm.jsp中:
    <form name="form1" method="post"  action="" target="_self">
    我将大小设为1024*768,但是窗口很小,怎么回事,以前大小是正确的啊。
      

  4.   

    呵呵,说明一下,首先,是孟子的方法不是emu的方法;其次,孟子用的是IE6,你用的是IE5,所以<html></html>标记不能省略,看看下面:xx.htm  
    ====================  
     
    <html> 
     <frameset  rows=  "0,*  "  >  
     <frame  src=  "about:blank  "  >  
     <frame  src=  "xxx.asp  "  >  
     </frameset  >  
    </html>