【发布时间】:2010-11-05 19:36:56
【问题描述】:
似乎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 已取消 日志:调试:错误:xhr 已取消 SCRIPT5022:抛出异常但未捕获?tbUsername=user&tbPassword=pass,第 118 行字符 1 SCRIPT5022:抛出异常但未捕获?tbUsername=user&tbPassword=pass,第 118 行字符 1
任何提示将不胜感激......
【问题讨论】:
-
一个普通的旧 xhrPost 似乎在 IE9PP 中没有给我带来问题......你的情况还有什么特别的吗?我会说,尽管 Dojo 似乎在 IE9 上存在一些问题(例如,与 dojo.connect 和动画相关),但我不确定他们最终会针对 IE9 支持哪个版本。