【发布时间】:2012-04-04 17:09:51
【问题描述】:
我在 .each 循环中有以下 ajax 调用,它从服务器加载多个 .swf 文件:
$.ajax({
url: src, //a variable containing the url of the swf file
success: function(){
//success code.
},
error: function(jqXHR, textStatus, errorThrown) {
alert(textStatus+' - '+errorThrown);
}
});
这在所有浏览器上都像一个魅力,除了 IE。有些 .swf 文件已加载,有些则没有。
我得到的错误如下:Could not complete the operation due to error c00ce514.
我搜索了这个错误,发现这是由于字符集问题或类似问题造成的;有些人提供了有关 html/xml 文件的解决方案,但我不确定如何为 .swf 文件解决此问题。有什么想法/解决方法吗?
【问题讨论】:
-
我在预加载 wav 文件时遇到了同样的问题,也只是在 IE 上崩溃了 :-( 很想知道解决方案 :-/
标签: jquery ajax internet-explorer flash