我有一个。每个循环中下面的Ajax调用,从服务器负载几个SWF文件:
I have the following ajax call inside an .each loop, that loads several .swf files from the server:
$.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文件被加载,而有些则不是。
This works like a charm on all browsers, except for IE. Some .swf files are loaded, and some are not.
我得到的错误是:无法完成由于错误c00ce514操作
我GOOGLE了这个错误,并发现这是由于一个字符集问题,或者类似的东西;有些人提供的有关HTML / XML文件的解决方案,但我不知道如何解决这个问题的一个.swf文件。任何想法/解决方法?
I googled about this error, and found that this is due a charset issue or something like that; some people offered solution regarding html/xml files, but I'm not sure how to fix this for a .swf file. Any ideas/workarounds?
看这票:
http://bugs.jquery.com/ticket/11426
如果我得到它的权利: IE无法处理二进制文件作为Ajax调用的响应,让你从执行调用必须prevent IE浏览器。 preloading在IE浏览器中的SWF似乎并不可能有一个AJAX调用。
If I get it right: IE cannot handle binary files as a response in AJAX calls, so you have to prevent IE from executing the call. Preloading a swf in IE does not seem to be possible with an AJAX call.