mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
#18870898 parsererror가 발생하면 서버측에서 반환하는 문자열도 덧붙여서 출력
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7417 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
615bbc4000
commit
4cc51d70da
1 changed files with 10 additions and 1 deletions
|
|
@ -289,7 +289,16 @@ $.exec_xml = window.exec_xml = function(module, act, params, callback_func, resp
|
||||||
success : onsuccess,
|
success : onsuccess,
|
||||||
error : function(xhr, textStatus) {
|
error : function(xhr, textStatus) {
|
||||||
waiting_obj.css('visibility', 'hidden');
|
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) {
|
} catch(e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue