IE 8/jQuery UI 对话框未初始化,除非在本地主机上调用时

发布于 2024-10-01 01:05:11 字数 385 浏览 0 评论 0原文

我有几页设计相当简单。 div 包含一个 iframe 或一些基本表单元素(一个文本框和一个带有按钮的选择)。当我通过 http://localhost/myapp 处理此问题时,一切都可以完美地工作 IE 8、FF、Chrome - 这一切作品。但是,当我切换到我的计算机名称或服务器的 FQDN 时,它仅停止在 IE 8 中初始化对话框。我可以在窗口中看到一个快速错误图标弹出,但在我尝试调试它之前它就消失了。该代码位于 try/catch 中,并且不会引发任何错误。我尝试确保计算机名称/FQDN 是“可信”或“内联网”,但没有区别。再说一次 - 当任何东西调用时,在 FF/Chrome 上都能完美工作 - 只是 IE 8 不行。有什么想法吗?

I have a couple of pages with a rather simple design. A div contains an iframe or some basic form elements (a textbox and a select with a button). When I'm working on this via http://localhost/myapp everything works perfectly IE 8, FF, Chrome - it all works. However, when I switch to my machine name OR FQDN of the server it stops initializing the dialog in IE 8 only. I can see a quick error icon popup in the window, but it goes away before I can try and debug it. The code is in a try/catch and no errors are thrown there. I've tried making sure the machine name/fqdn is "trusted" or "intranet" but no difference. Again - works PERFECT on FF/Chrome when called by anything - just not IE 8. Thoughts?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冷清清 2024-10-08 01:05:11

显然 - 对话框 init 的最后一个参数上的额外逗号导致了此错误。下次我会放慢速度并使用 JSLint。

Apparently - the extra comma on the last parameter of the dialog init causes this error. Next time, I'll slow down and use JSLint.

我为君王 2024-10-08 01:05:11

在 IE 11 中也有类似的问题:当使用 localhost 寻址时,站点可以工作,但不能通过计算机名称来寻址。在开发人员控制台中,我注意到一条消息,指出 Intranet 站点正在兼容模式下运行。显然这是 IE 的默认设置。

关闭设置(工具 -> 兼容性视图设置 -> 在兼容性视图中显示 Intranet 站点 -> 取消选中),初始化顺利进行。

Had a similar problem in IE 11: the site worked when addressed as localhost, but not by machine name. In the developer console I noticed a message that intranet sites are running in compatibility mode. Apparently that is a default setting for IE.

Turned the setting off (Tools -> Compatibility View Settings -> Display intranet sites in Compatibility View -> uncheck) and the initialization went through fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文