在IE中调试模式对话框(showModalDialog) [英] Debug a modal dialog (showModalDialog) in IE

查看:1183
本文介绍了在IE中调试模式对话框(showModalDialog)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在由 showModalDialog()创建的模式对话框内的web应用程序进行调试(检查DOM,使用交互式JS控制台等) 。



我找不到使用标准IE-8开发者工具的方法; 对话框没有工具栏和通常的快捷键(F12)不起作用。






另一个SO问题(我遗憾地失去了链接)建议唯一的解决方案是(可能暂时)用老式的 window.open()替换 showModalDialog() >。如果是这种情况,是否有一种直接的方式来做到这一点?



警告:


  • 该应用程序关注传递dialogArguments和showModalDialog的返回值。
  • 我不能使用其他浏览器,FF + Firebug等。
    <


    $ b

    解决方案

    如果您打开地址栏,F12会显示开发者工具。 $ b


    转到工具/ Internet选项/安全性/(为您的
    网站选择正确的区域)/自定义级别在其他下在允许网站打开
    窗户没有地址或状态栏,选择禁用。

    来源: https://stackoverflow.com/a/10984858/79835


    I want to debug (examine DOM, use the interactive JS console, etc) part of a web application that is inside a modal dialog that was created by showModalDialog().

    I can't find a way to use the standard IE-8 developer tools for this; The dialog doesn't have a toolbar and the usual shortcut (F12) doesn't work.


    Another SO question (I unfortunately have lost the link to) suggested that the only solution is to (perhaps temporarily) replace showModalDialog() with an old-fashioned window.open(). If this is the case, is there a straightfoward way to do it?

    Caveats:

    • The app cares about passing dialogArguments and the return value of showModalDialog
    • I can't use other browsers, FF+Firebug, etc.

    解决方案

    F12 works to bring up the developer tools if you turn the address bar on.

    Go Tools / Internet options / Security / (pick the right zone for your site) / Custom Level Under "Miscellaneous" Under "Allow websites to open windows without address or status bars", choose "Disable".

    Source: https://stackoverflow.com/a/10984858/79835

    这篇关于在IE中调试模式对话框(showModalDialog)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆