Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/394.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript GWT应用程序仅在IE 8/9中的iframe内部时失败_Javascript_Internet Explorer_Gwt - Fatal编程技术网

Javascript GWT应用程序仅在IE 8/9中的iframe内部时失败

Javascript GWT应用程序仅在IE 8/9中的iframe内部时失败,javascript,internet-explorer,gwt,Javascript,Internet Explorer,Gwt,我有一个GWT应用程序,应该通过iframe嵌入到客户的网站中 在MSIE9及以下版本中,我得到“异常抛出且未捕获”,而iframe是空的 指向iframe已断开的页面的URL: iframe内容本身的URL,其工作原理如下: 如果我使用IE开发工具并将文档模式更改为InternetExplorer9标准,它就会工作! 但这些都失败了: 怪癖模式 Internet Explorer 7标准 Internet Explorer 8标准对于IE,容器页面和iframe都应使用相同的doctype

我有一个GWT应用程序,应该通过iframe嵌入到客户的网站中

在MSIE9及以下版本中,我得到“异常抛出且未捕获”,而iframe是空的

指向iframe已断开的页面的URL:

iframe内容本身的URL,其工作原理如下:

如果我使用IE开发工具并将文档模式更改为InternetExplorer9标准,它就会工作! 但这些都失败了:

怪癖模式

Internet Explorer 7标准


Internet Explorer 8标准

对于IE,容器页面和iframe都应使用相同的
doctype
,否则iframe将继承其父级的doctype

因此,您必须要求客户在其托管页面中包含以下内容:

<!doctype html>

问题似乎不是帧本身,而是您正在使用的视频插件。JW播放器在IE7和IE8中有一些奇怪的行为,特别是在使用旧版本的Flash时

我不是JW玩家的专家,但是你可能想把这个问题发布到。我已经尝试使用怪癖模式使用URL,但它不起作用

并且,处的视频页面实际上声明不支持怪癖模式:

<!doctype html>
<!-- The DOCTYPE declaration above will set the     -->
<!-- browser's rendering engine into                -->
<!-- "Standards Mode". Replacing this declaration   -->
<!-- with a "Quirks Mode" doctype is not supported. -->