E.g. "{"Message":"domain\\a_fkf has no access","StackTrace":" at CustomAppTaskListRetriever.GetNumTasks(String userID) in C:\\Documents and Settings\\Visual Studio 2008\\Projects\\Retriever.cs:line 45\r\n at MyWorkbox.WorkboxService.GetNumTasks(String appID) in C:\\Documents and Settings\\Visual Studio 2008\\Projects\\WorkboxService.asmx.cs:line 32","ExceptionType":"System.Exception"}"
Here's how you can "parse" it. Not very elegant, but that's the best I can find:
TaskList.prototype.GetTaskItems = function() {
var t = this;
%$.ajax({
}%$.ajax({
...,
success: function(data) {...},
error: function(jqXHR, textStatus, errorThrown) {
});success: function(data) {...},
error: function(jqXHR, textStatus, errorThrown) {
eval("var responseJSON = " + jqXHR.responseText + ";");
alert(responseJSON.Message);
}alert(responseJSON.Message);
No comments:
Post a Comment