zmo*_*eca 1 internet-explorer prototypejs
我不知所措.我发现了一些提到IE需要指定响应类型的东西,我将其更改为text/html,这对我没有任何帮助.
有错误:
由于错误c00ce56e无法完成操作.prototype.js,第1564行
指向prototype.js:
if((readyState > 2 && !Prototype.Browser.IE) || readyState == 4) {
this.status = this.getStatus();
this.statusText = this.getStatusText();
this.responseText = String.interpret(transport.responseText); <!--- ERROR is here --->
this.headerJSON = this._getHeaderJSON();
}
Run Code Online (Sandbox Code Playgroud)
从href中的onClick()调用的函数:
function f(op, cl) {
if(op && cl) {
new Ajax.Updater('favorites-' + cl, '/fav.php',
{
onComplete: function(transport) {
if(transport.responseText == 1 && cl) $('favorites-' + cl).remove();
else return transport.responseText;
},
onException: function(r, e) {
alert('Updater ' + e);
},
method: 'get',
parameters: { cl: cl, op: op },
encoding: 'UTF-8',
contentType: 'text/html'
});
}
}
Run Code Online (Sandbox Code Playgroud)
错误C00CE56E通常在脚本返回<?xml encodingIE无法识别的编码(通过Content-Type charset参数或)时发生,例如,如果您说'utf8'而不是正确的'UTF-8'.这必须在服务器端修复.
您的服务器发送的Content-Type标头是什么?