mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 17:32:15 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7075 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c1ff5313ce
commit
bb498be38d
2 changed files with 2 additions and 2 deletions
|
|
@ -219,7 +219,7 @@
|
|||
function _toXmlDoc(&$oModule) {
|
||||
$variables = $oModule->getVariables();
|
||||
|
||||
$xmlDoc = "<response>\n";
|
||||
$xmlDoc = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<response>\n";
|
||||
$xmlDoc .= sprintf("<error>%s</error>\n",$oModule->getError());
|
||||
$xmlDoc .= sprintf("<message>%s</message>\n",str_replace(array('<','>','&'),array('<','>','&'),$oModule->getMessage()));
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ function exec_xml(module, act, params, callback_func, response_tags, callback_fu
|
|||
function xml_response_filter(oXml, callback_func, response_tags, callback_func_arg, fo_obj) {
|
||||
var text = oXml.getResponseText();
|
||||
if(oXml.objXmlHttp.readyState!=4) return;
|
||||
if(text && !/^<response>/i.test(text)) {
|
||||
if(text && !/<\/response>$/i.test(text)) {
|
||||
var waiting_obj = xGetElementById("waitingforserverresponse");
|
||||
if(waiting_obj) waiting_obj.style.visibility = "hidden";
|
||||
alert(text);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue