#18870898 parsererror가 발생하면 서버측에서 반환하는 문자열도 덧붙여서 출력

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7417 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2010-05-03 09:26:11 +00:00
parent 615bbc4000
commit 4cc51d70da

View file

@ -289,7 +289,16 @@ $.exec_xml = window.exec_xml = function(module, act, params, callback_func, resp
success : onsuccess,
error : function(xhr, textStatus) {
waiting_obj.css('visibility', 'hidden');
alert(textStatus);
var msg = '';
if (textStatus == 'parsererror') {
msg = 'The result is not valid XML :\n-------------------------------------\n';
msg += xhr.responseText.replace(/<[^>]+>/g, '');
} else {
msg = textStatus;
}
alert(msg);
}
});
} catch(e) {