一台 IIS 服务器中存在 JavaScript 问题,但另一台服务器中没有问题

发布于 2024-09-03 06:47:36 字数 329 浏览 4 评论 0原文

我有一个仅在一种环境中发生的问题。在此特定页面上,在元素上半部分的某个位置,创建并填充了一个数组。稍后在各种控件的 onfocus 事件处理程序中使用它。我使用Firebug调试页面,发现了问题。在我们的开发环境中,数组确实已创建并填充。在我们的暂存环境中,该脚本块不会被执行!我在实例化数组的地方放置了一个断点,它在暂存中从未被命中,但在开发中被命中。

我真的很困惑这两个环境的哪些方面可能会影响这一点?我们在暂存盒上使用 aptimize,但该特定网站已将其关闭。我比较了页面来源,它们是相同的!唯一的区别是内容位,因为它们由 CMS 提供服务。

有什么想法吗?我对此很困惑。

干杯, 丹妮.

I have a problem that only occurs in one environment. On this particular page, somewhere in the top half of the element, an array is created and populated. This is later used in the onfocus event handlers of various controls. I use Firebug to debug the page and discovered the problem. In our dev environment the array is indeed created and populated. In our staging environment this block of script is not executed! I put a break point where the array is instantiated and it's never hit in staging, but is hit in dev.

I'm really puzzled what aspects of the two environments can possibly affect this? We use aptimize on the staging box but it has been turned off for this particular website. I compared the page sources and they're identical! The only difference is bits of content since they are served by a CMS.

Any ideas please? I'm quite stuck on this.

Cheers,
Dany.

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

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

发布评论

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

评论(2

っ〆星空下的拥抱 2024-09-10 06:47:36

使用 Firebug 的“网络”选项卡并检查外部文件请求是否出现错误。可能是一个被调用但尚未正确配置的 httphandler。

Use the Net tab of Firebug and check for external file requests giving errors. Might be a httphandler that is called but has not been configured properly.

从﹋此江山别 2024-09-10 06:47:36

您有机会使用 IE8 进行测试吗?如果是这样,您可能需要默认关闭 Intranet 站点的兼容性视图。

Any chance you're testing with IE8? If so, you may need to turn compatibility view off by default for Intranet sites.

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