Internet Explorer中的JavaScript错误"访问被拒绝"

Sid*_*Sid 2 javascript internet-explorer

当我在IE中运行我的网页时,我收到此错误(代码在其他浏览器中运行正常).

这是HTML代码:

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
</head>
<body>
<--- some html code --->
<iframe src='http://localhost/page1.php' style="background: transparent; overflow: hidden; height: 210px; width: 390px;" frameborder="0"  />
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

这是page1.php

<!DOCTYPE html>
<html>
<body>
<form action="usercheck.php" method="POST">
USERNAME:<input name="uname" id="uname" type="text" maxlength="12" required/>
<input type="submit" value="Submit">
</form>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

这是usercheck.php

<?php
//some php code    
?>
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
</head>
<body>
<--- some html code --->
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

问题是当我usercheck.php点击提交按钮后到达page1.php我得到的错误http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js. Access is denied.这是错误的图像:http://i.stack.imgur.com/diCoF.jpg.然后我得到'$'符号未定义的错误(这是由于无法加载jquery库).

编辑 - 我已经尝试在我的服务器中包含jquery文件,但仍然出现错误.我也尝试过usercheck.php的代码:

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
/*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
//and the rest of the jquery library...
</script>
</head>
<body>
<--- some html code --->
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

我这次得到的错误是:http://i.stack.imgur.com/hR9aN.jpg(usercheck2.php的原始名称是我服务器中的rscheck.php).然后我得到'$'符号未定义的错误(这是由于无法加载jquery库).如果我直接打开page1.php的内容(通过url- localhost/page1.php),那么一切正常.

这是我使用JQuery的唯一代码:

if($("#pret").contents().text().search("NAMECHECK: NOTAVALIBLE")!=-1)
Run Code Online (Sandbox Code Playgroud)

只有当我可以将此代码转换为javascript时,我才能排除jquery.

Ema*_*eco 6

这是一个合法的jQuery 1.10.1错误:http://bugs.jquery.com/ticket/13980.
使用jQuery 1.10.0,或1.10.2不再出现错误.