1

看来dojo xhr ajax 调用在IE9 beta 中不起作用。有没有其他人看到过这种行为?

我正在使用以下代码发出服务器端请求并返回 json:

dojo.xhrPost({
        url: baseUrl + path,
        handleAs: 'json',
        timeout: 60000,
        content: request,
        contentType: "application/x-www-form-urlencoded",
        load: function(result) { ... },
        error: function(error, args) { ... }
    });

此代码在 IE7、IE8、Firefox 和 Chrome 中完美运行。但是在 IE9 beta 中它给了我:

错误:xhr 已取消 LOG:调试:错误:xhr 已取消 SCRIPT5022:抛出异常但未捕获?tbUsername=user&tbPassword=pass,第 118 行字符 1 SCRIPT5022:抛出异常但未捕获?tbUsername=user&tbPassword=pass,第 118 行字符 1

任何提示将非常感谢...

4

2 回答 2

1

到目前为止,没有一个 Dojo 版本支持 IE9,甚至 1.6.0 也不支持。支持 IE9 的新版本 1.6.1 正在开发中。

同时,在您的网站上使用“EmulateIE8”元标记来强制 IE9 进入 IE8 标准模式。

于 2011-03-22T15:22:15.750 回答
0

看起来 Dojo 1.6 与 IE9 在同一天发布并包含 IE9 支持:

http://dojotoolkit.org/reference-guide/releasenotes/1.6.html

是时候升级道场了...

于 2011-03-16T01:19:55.173 回答