uiquery插件bgiframe(版本2.1.1)在Internet Explorer 9中导致以下java脚本错误:
jquery.bgiframe.js, line 94 character 5
Run Code Online (Sandbox Code Playgroud)
我的菜单不再起作用,我希望原因是这个错误.
有任何想法吗?
添加:
jquery.bgiframe.js中的行是:
this.insertBefore( document.createElement(html), this.firstChild );
Run Code Online (Sandbox Code Playgroud)
和错误sais:
SCRIPT5022: DOM Exception: INVALID_CHARACTER_ERR (5)
Run Code Online (Sandbox Code Playgroud) 这两个陈述window['localStorage']和window.localStorage
访问网址"file:/// C:/index.html"时未定义
在文件系统上运行网站时localStorage是否禁用?
PS.我正在运行该网站的Windows 7手机上托管该网站的isolatedStorage.
我正在尝试正确设置缓存并将Expires标头设置为将来365天正常工作但未在IE9中正确显示.有谁知道为什么?
当您访问IE9中的任何网站(例如www.google.com),然后在地址栏中单击Enter以使用完全缓存重新访问它,它显示了Fiddler未显示的许多额外304.
查看网络检查器选项卡(在F12上),IE9显示它已收到针对CSS和JS文件的304 Not Modified响应和3个图像(可能是大约在过去一个月内修改日期的图像 - 其他30个未显示的图像较旧).
但是,根据Fiddler并在我正在开发的网站上查看服务器上的IIS日志,它实际上并没有提出这些请求.IE9网络时间线显示这些灰色302s没有等待时间和"<1 ms"响应时间 - 而如果我按F5它们也是灰色302s,但显示等待和下载时间几毫秒(并且它们命中网络).
那么为什么IE9网络检查员认为它发布了这些条件请求呢?在它到达Fiddler之前,它是否实际发出了某个网络堆栈满足的请求?
Chrome会将所有请求(包括所有图片)显示为灰色200(来自缓存),而不是页面本身(黑色200)(根据Fiddler和IIS日志,这是正确的).
Firebug为CSS和JS显示灰色200 OK,奇怪的是只有一个图像(也正确,假设灰色200表示来自缓存 - 但为什么只显示这些资源而不是所有其他图像?)
我一直在阅读Eric Lawrence关于IE9缓存和网络堆栈的博文,但他没有提到这种奇怪的行为.
我试图测试canvas标签,我开始使用这段代码:
<html>
<canvas id="example" width="200" height="200">
This text is displayed if your browser does not support HTML5 Canvas.
</canvas>
</html>
Run Code Online (Sandbox Code Playgroud)
在IE8中,我收到消息:
This text is displayed if your browser does not support HTML5 Canvas.
Run Code Online (Sandbox Code Playgroud)
然后我安装了IE9但得到了同样的错误.IE9是否支持HTML5画布?
编辑
问题是我错过了doctype标签
<!DOCTYPE html>
Run Code Online (Sandbox Code Playgroud) 我SCRIPT70: Permission denied jquery.js, line 21 character 67在IE-9上得到了奇怪的错误" ".在谷歌搜索但除了CKEditor上的错误之外找不到任何东西.
显示的位置只包含以下内容:
P=navigator.userAgent,xa=false,Q=[],M,ca=Object.prototype.toString,da=Object.prototype.hasOwnProperty,ea=Array.prototype.push,R=Array.prototype.slice,V=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((d=Oa.exec(a))&&(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Sa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];
Run Code Online (Sandbox Code Playgroud)
有没有人遇到这个错误?
*其他信息:*我们打开一个iframe并在此iframe中调用一些javascript函数.
谢谢.
我正在使用JSF2,GlassFish 3.1,PrimeFaces 2.x.
我在IE9上遇到奇怪的渲染问题.我应该能够通过插入以下内容强制IE9呈现为IE9:
<html>
<head>
<!-- Enable IE9 Standards mode -->
<meta http-equiv="X-UA-Compatible" content="IE=9" />
...
Run Code Online (Sandbox Code Playgroud)
但事实是,它不起作用,因为(我被告知)元标记必须是该部分中的第一个标记.
当我在我的XHTML文件中执行此操作时...
<html ...>
<f:view contentType="text/html" locale="#{loginHandler.currentLocale}">
<h:head>
<!-- Enable IE9 Standards mode -->
<meta http-equiv="X-UA-Compatible" content="IE=9" />
Run Code Online (Sandbox Code Playgroud)
生成的HTML看起来像这样,其中JSF/PrimeFaces在我的新元标记之前插入了一堆"链接"和"脚本"标记.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link type="text/css" rel="stylesheet" href="/orcf-webui/javax.faces.resource/jquery/ui/jquery-ui.css.jsf?ln=primefaces&v=2.2" />
<link type="text/css" rel="stylesheet" href="/orcf-webui/javax.faces.resource/wijmo/wijmo.css.jsf?ln=primefaces&v=2.2" />
<script type="text/javascript" src="/orcf-webui/javax.faces.resource/jquery/jquery.js.jsf?ln=primefaces&v=2.2"></script>
<script type="text/javascript" src="/orcf-webui/javax.faces.resource/jquery/ui/jquery-ui.js.jsf?ln=primefaces&v=2.2"></script>
<!-- Enable IE9 Standards mode -->
<meta http-equiv="X-UA-Compatible" content="IE=9" />
Run Code Online (Sandbox Code Playgroud)
有没有办法让我的元标记在正确的位置,以便它可以工作?(或者让IE9问题消失的另一种方法是什么?
我正在研究一些Javascript代码,它使用Photoshop嵌入的路径创建图像的alpha蒙版.IMG标记的onload处理程序将调用剪辑(this).该函数加载图像的源文件并扫描它.这是设置:
function clip(img) {
var xhr = new XMLHttpRequest();
xhr.open('GET', img.src, true);
xhr.responseType = 'arraybuffer';
xhr.target = img;
xhr.onload = function(e) {
var bytes = new Uint8Array(this.response);
var p = findPhotoshopSegment(bytes);
if(p) {
var paths = parse8BIMData(bytes, p);
/* ... replaces IMG with SVG tag ... */
}
};
xhr.send();
}
Run Code Online (Sandbox Code Playgroud)
您可以在http://flaczki.net46.net/JPEG/SVG.html上查看代码
目前,它仅适用于Firefox,Chrome和Safari.它在IE9中不起作用.浏览器支持SVG但不支持Uint8Array.有某种解决方法吗?
我有一个网页的iframe和iframe中包含需要在怪癖模式下运行的代码(这是微软的Outlook Web Access的,所以它不是我们的代码,我们可以解决反正).IE9引入了一个"功能",当父框架处于IE9文档模式时,它还强制任何iframe进入相同的文档模式.这打破了我们拥有iframe的代码.
我希望这是IE9中的一个错误,但是我的票被拒绝为"按设计"(如果你想看,这里是票)
我无法以怪癖模式运行整个网站,但我只需要在此页面上进行操作.有没有办法以编程方式打开怪癖模式渲染?无论是那种,还是模仿按下"兼容性视图"按钮的方式 - 按下这几乎可以将IE9变成IE8,这也很好用.
可以做这些事情中的任何一个吗?
compatibility internet-explorer quirks-mode ie8-compatibility-mode internet-explorer-9
我知道可以上下检测,例如
function handle(delta) {
if (delta < 0) {
alert('down');
} else {
alert('up');
}
}
function wheel(event){
var delta = 0;
if (!event) event = window.event;
if (event.wheelDelta) {
delta = event.wheelDelta/120;
} else if (event.detail) {
delta = -event.detail/3;
}
if (delta)
handle(delta);
if (event.preventDefault)
event.preventDefault();
event.returnValue = false;
}
/* Initialization code. */
if (window.addEventListener)
window.addEventListener('DOMMouseScroll', wheel, false);
window.onmousewheel = document.onmousewheel = wheel;?
Run Code Online (Sandbox Code Playgroud)
但有没有办法用鼠标滚轮检测用户的鼠标是向左还是向右?
javascript scroll mousewheel internet-explorer-9 internet-explorer-10
我正在处理SVG文件,以便使用AJAX在浏览器上制作一些实时动画.
一切都很好,只是让浏览器(Chrome或IE9)显示SVG图像.以下HTML文件未显示flowRoot文本:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="744.09448"
height="600"
id="svg2"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="lcl22.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.7"
inkscape:cx="175.99454"
inkscape:cy="282.7269"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1366"
inkscape:window-height="706"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-452.36215)">
<path
sodipodi:type="arc"
style="fill:#008000;fill-opacity:1;stroke:#495677;stroke-width:23.16900063;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="circle1"
sodipodi:cx="227.14285"
sodipodi:cy="156.6479"
sodipodi:rx="47.142857"
sodipodi:ry="44.285713"
d="m 274.28571,156.6479 c …Run Code Online (Sandbox Code Playgroud) javascript ×5
html5 ×2
ajax ×1
bgiframe ×1
canvas ×1
fiddler ×1
html ×1
http ×1
jsf ×1
mousewheel ×1
permissions ×1
primefaces ×1
quirks-mode ×1
scroll ×1
svg ×1