【发布时间】:2009-09-19 18:50:42
【问题描述】:
我有一个简单的 $.ajax 请求,我试图在我的 ASP.Net MVC 应用程序中获取一些 HTML 内容。
// Load the claim table
function GetClaimTable() {
$.ajax({
type: "GET",
url: "claimtable",
data: {},
datafilter: null,
dataType:'text',
success: function(msg){
alert(msg);
$("#claimTable").html(msg.responseText);
},
error: function(msg, sdf, sdd) {
alert(sdf);
alert(sdd);
}
});
但是我得到了一个解析错误。调用成功是因为我在 firefox 中看到 200 OK 并且错误有 XmlHttpRequest 对象,该对象在 responseText 属性中具有正确的数据。
该代码在 IE 中运行良好,但在 Firefox 中失败。 url 声明表是一个简单的 MVC 操作。
我在这里读到jQuery / ASP MVC -- parsererror in "$.ajax" calls 这是由于在 jquery 1.3.2 中解决的拼写错误。但是我有 1.3.2,我收到了这个错误。
有什么帮助吗?
【问题讨论】:
-
你能贴出FF给你的完整解析错误吗
-
没有完整的解析器错误。这就是全部。这是一个字符串:“parsererror”
标签: javascript jquery asp.net-mvc firefox