I am trying to perform this AJAX post but for some reason I am getting a server 500 error.
(我正在尝试执行此AJAX帖子,但是由于某些原因,我遇到了服务器500错误。)
I can see it hit break points in the controller.(我可以看到它在控制器中达到了断点。)
So the problem seems to be on the callback.(因此问题似乎出在回调上。)
Anyone?(任何人?)
$.ajax({
type: "POST",
url: "InlineNotes/Note.ashx?id=" + noteid,
data: "{}",
dataType: "json",
success: function(data) {
alert(data[1]);
},
error: function(data){
alert("fail");
}
});
This is the string that should be returned:
(这是应该返回的字符串:)
{status:'200', text: 'Something'}
ask by Nick translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…