首页 新闻 会员 周边

如何查看showModalDialog的源文件

0
悬赏园豆:50 [已关闭问题]
<P>我用showModalDialog开了一个“窗口”,请问如何才能查看这个"窗口"的源文件。<BR><BR>我的目的是找出该“窗口”的js代码的错误。</P>
问题补充: 一语惊醒梦中人。 可是我用window.open就一切正常,用showModalDialog就异常。 <asp:LinkButton ID="linkTimeEntry" OnClientClick="return s();" runat="server">TimeEntity</asp:LinkButton> </strong> <script language="javascript" type="text/javascript"> function s() { //window.open('team_member/input_time.aspx','tempWinope'); // self.showModalDialog('team_member/input_time.aspx','tempWinope','dialogWidth:700px;dialogHeight:550px;help:0;status:0;resizable:yes'); return false; } </script>
simhare的主页 simhare | 初学一级 | 园豆:7
提问于:2008-08-28 11:26
< >
分享
其他回答(1)
0
把showModalDialog临时改成window.open,调试中使用window.open比较好,等发布时再换成showModalDialog
丁学 | 园豆:18730 (专家六级) | 2008-08-28 12:32
0
下面有我个人调试过的代码: 希望对你有帮助: #1 URL路径我加了 "./文件夹/文件名" <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>无标题页</title> <script type="text/javascript" language="javascript"> function s() { window.open("./aaa/Default2.aspx"); } </script> <script type="text/javascript" language="javascript"> function show() { self.showModalDialog('./aaa/Default2.aspx','tempWinope','dialogWidth:700px;dialogHeight:550px;help:0;status:0;resizable:yes'); } </script> </head> <body> <form id="form1" runat="server"> <div> <asp:LinkButton ID="LinkButton1" runat="server" onclientclick="s()">window.open</asp:LinkButton> <br /> <br /> <br /> <br /> <asp:LinkButton ID="LinkButton2" runat="server" onclientclick="show()">LinkButton</asp:LinkButton> <br /> </div> </form> </body> </html>
程序员老李 | 园豆:790 (小虾三级) | 2008-08-28 14:06
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册