admin 管理员组文章数量: 1086019
Whenever trying to open a page running a javascript code using FileReader and JSON upon page initialization, ie11 reports "FileReader is not defined", and later "JSON is not defined". The head of HTML file is as follows:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>LogViewer</title>
<link rel="stylesheet" href=".10.3/themes/smoothness/jquery-ui.css" />
<link rel="stylesheet" href="css/slick.grid.css" type="text/css"/>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src=".10.2/jquery.min.js" type="text/javascript"></script>
<script src=".10.3/jquery-ui.js" type="text/javascript"></script>
</head>
Everything works fine in FF and Chrome. Any ideas?
Whenever trying to open a page running a javascript code using FileReader and JSON upon page initialization, ie11 reports "FileReader is not defined", and later "JSON is not defined". The head of HTML file is as follows:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>LogViewer</title>
<link rel="stylesheet" href="http://code.jquery./ui/1.10.3/themes/smoothness/jquery-ui.css" />
<link rel="stylesheet" href="css/slick.grid.css" type="text/css"/>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="http://ajax.googleapis./ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>
<script src="http://code.jquery./ui/1.10.3/jquery-ui.js" type="text/javascript"></script>
</head>
Everything works fine in FF and Chrome. Any ideas?
Share Improve this question asked Dec 13, 2013 at 22:19 andreivuandreivu 911 gold badge1 silver badge6 bronze badges 1- Looks like you are accessing your site in Compatibility Mode. FileReader and JSON are supported starting with IE10. Check your IE patibility settings. And follow the Jan Schejbal's advice on meta tag. – Alex Pakka Commented Dec 13, 2013 at 22:40
1 Answer
Reset to default 6Add <meta http-equiv="X-UA-Compatible" content="IE=edge" />
as the first tag of the header to be sure. IE loves to go to patibility mode even if a HTML5 doctype is present under certain circumstances (especially on intranet files when the puter is in a domain).
You can use the developer tools (F12) to check what mode you are running in.
本文标签: javascriptFileReader and JSON objects not defined in ie11Stack Overflow
版权声明:本文标题:javascript - FileReader and JSON objects not defined in ie11 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1744032493a2521763.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论