Windows的增强安全性可以打破jQueryUI的datepicker吗? [英] Can Windows' enhanced security break jQueryUI's datepicker?

查看:89
本文介绍了Windows的增强安全性可以打破jQueryUI的datepicker吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试调试由几个月前离开公司的人开发的ASP.NET + jQuery + jQueryUI Web应用程序时遇到了一个奇怪的问题。

I'm experiencing a weird problem trying to debug an ASP.NET + jQuery + jQueryUI web application developed by someone who left the company a couple of months ago.

问题:

要开发我们使用Windows Server 2008 R2虚拟机或Windows Server 2003 R2虚拟机,它们都共享由所有开发人员通过终端服务并由我们的IT部门控制。

To develop we use a Windows Server 2008 R2 virtual machine or a Windows Server 2003 R2 virtual machine, both of them shared through Terminal Services by all the developers and controlled by our IT department.

他们都配备了Internet Explorer 8并且具有增强的安全性。

Both of them comes with Internet Explorer 8 and have enhanced security on.

当我尝试调试应用程序或尝试在测试站点上导航时,某些JavaScripts函数无效。

When I try to debug the application, or try to navigate it on the test site, certain JavaScripts function are not working.

它们是jQueryUI的datepicker:日历打开,但是当我点击日期时没有任何事情发生。

One of them is jQueryUI's datepicker: the calendar opens, but when I click on a date nothing happens.

我已经添加了两个 http:// localhost 和Internet Explorer的可信站点中的测试站点,但无济于事;如果我从受信任的站点列表中删除它们(因此它们在互联网区域中运行),则不会执行JavaScript。

I already added both http://localhost and the test site in Internet Explorer's trusted sites, but to no avail; if I remove them from the trusted sites list (so they are run in the internet zone) no JavaScript get executed.

问题:

这个问题可能是由Windows增强的安全性造成的吗?

Could this problems be caused by Windows' enhanced security?

如果没有,我可以尝试缩小范围罪魁祸首?

If not, what can I try to narrow down the culprit?

我知道IT团队应该解决这类问题,但是他们并不关心它,而我却陷入了困境中重现只有在Internet Explorer中发生的一些错误(这种阻止JavaScript的东西阻止我甚至无法到达bug),而且我无法回复我们的用户抱歉,但我们不会解决问题因为它不会关心我们。

I know this kind of problem should be addressed by the IT team, but they don't care much about it, and I'm stuck as I can't reproduce a couple of bugs happening only in Internet Explorer (this JavaScript blocking thing is preventing me from even reaching the bug), and I can't reply to our user "sorry but we won't fix the problem 'cause IT don't care about us".

是的,我可以向我的经理上报这个问题,但你知道官僚主义是怎样的,这需要几天甚至几周的时间。邮件得到这个排序。所以我想如果我可以缩小这个问题,也许我可以为自己省去一些空洞的争论。

Yes, I can escalate this issue with my manager, but you know how bureaucracy is, it would take days or even weeks of e-mails to get this sorted. So I thought if I can narrow down the issue maybe I can save myself some empty arguing.

一个例子:

我制作了一个简单的HTML页面来重现问题:

I've made a simple HTML page to reproduce the problem:

<!DOCTYPE html>
<html>
    <head>
        <link href="jquery-ui.css" rel="stylesheet" />
        <script src="jquery.min.js"></script>
        <script src="jquery-ui.min.js"></script>
        <script>
            $(document).ready(function () {
                $("#dynamicText").text("Some dynamic text."); // <-- Works.
                $("#date").datepicker(); // <-- Does NOT work.
                $("#button").button(); // <-- Works.
                $("#button").click(function (event) {
                    event.preventDefault(); // <-- Works.
                    alert("You clicked the button."); // <-- Works.
                });
            });
        </script>
        <title>Test</title>
    </head>
    <body>
        <h1>Test</h1>
        <table>
            <thead>
                <tr>
                    <th>Function</th>
                    <th>Demo</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>Dynamic text:</td>
                    <td id="dynamicText"></td>
                </tr>
                <tr>
                    <td>Date picker:</td>
                    <td><input id="date" type="text" /></td>
                </tr>
                <tr>
                    <td>Button:</td>
                    <td><a id="button" href="https://encrypted.google.com/">Click me</a></td>
                </tr>
            </tbody>
        </table>
    </body>
</html>

更新:

我忘了提到我找到了这个链接在TechNet上,但它没有提到脚本将被阻止的类型(因为并非所有脚本都被阻止,我迷路了),几乎互联网上的每一个结果都会解释你如何禁用增强的安全性,但不支持它的功能。

I forgot to mention I've found this link on TechNet, but It does not mention what type of scripts will be blocked (as not all of them are blocked, I'm lost), nearly every over result on the internet explains you how to disable enhanced security, but not what it does.

任何提示都表示赞赏......:\

Any hint is appreciated... :\

推荐答案

如果禁用IE增强安全性,则此问题就会消失。我不确定这是否是一个有效的解决方法,但也许它可以提供线索。

If you disable IE Enhanced Security, this issue goes away. I'm not sure if this is a valid workaround, but maybe it could provide a clue.

要禁用,请打开服务器管理器。单击配置IE ESC并为管理员或用户禁用增强安全性。

To disable, open Server Manager. Click Configure IE ESC and disable Enhanced Security for either Administrators or Users.

这篇关于Windows的增强安全性可以打破jQueryUI的datepicker吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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