[英]qtip throwing an error in Internet Explorer 9
I am having trouble getting a qTip (qTip2) to display in Internet Explorer 9 to a page served up by my local IIS in Windows 8. 我无法让qTip(qTip2)在Internet Explorer 9中显示到Windows 8中我的本地IIS提供的页面。
I have the following page saved to 1.htm in my default IIS website (DefaultAppPool .NET4.0 Integrated managed pipeline) 我在默认的IIS网站(DefaultAppPool .NET4.0集成托管管道)中将以下页面保存到1.htm。
http://localhost/1.htm
...and a remote website ( http://imagehost.bigwavesoftware.net/qtip/1.htm ). ...和一个远程网站( http://imagehost.bigwavesoftware.net/qtip/1.htm )。
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="http://imagehost.bigwavesoftware.net/qtip/jquery.qtip.css">
</head>
<body>
<div id="tooltip">Here is a tooltip</div>
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>
<script src="http://imagehost.bigwavesoftware.net/qtip/jquery.qtip.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#tooltip').each(function () {
$(this).qtip({
content: 'tooltip',
hide: {
fixed: true,
delay: 200
},
position: {
my: 'top left',
at: 'bottom center',
target: $(this)
}
});
})
})
</script>
</body>
</html>
If I open 1.htm directly from disk in IE9 , the tooltip works fine. 如果我直接从IE9中的磁盘打开1.htm,则工具提示可以正常工作。
If I navigate to http://localhost/1.htm
with IE9 , the tooltip throws an error in the jQuery library. 如果我使用IE9导航到http://localhost/1.htm
,则工具提示会在jQuery库中引发错误。
There is something about serving this page up in local IIS that is making IE9 choke on it. 关于在本地IIS中提供此页面的某些操作使IE9感到窒息。
Any ideas on what could be causing this? 关于什么可能导致此的任何想法?
Btw, the qtip libraries in the below example are hosted on my personal server and are the latest v2.0.1-31- versions. 顺便说一句,以下示例中的qtip库托管在我的个人服务器上,并且是最新的v2.0.1-31-版本。
Probably a cross-domain restriction - when running under IIS, you're asking the site on localhost:yourportnumber
to fetch data from bigwavesofsoftware.net
, which is normally not allowed. 可能是跨域限制-在IIS下运行时,您要求localhost:yourportnumber
上的站点从bigwavesofsoftware.net
提取数据,通常是不允许的。 Directly loading the file doesn't trigger that since it's not seen as a request from another domain - it's a direct request from the source file. 直接加载文件不会触发此操作,因为它不会被视为来自另一个域的请求-它是来自源文件的直接请求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.