mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 04:39:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@224 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f9e9b8d4b2
commit
1a108fae7f
12 changed files with 133 additions and 106 deletions
|
|
@ -5,7 +5,7 @@
|
|||
**/
|
||||
|
||||
// xml handler을 이용하는 user function
|
||||
function exec_xml(module, act, params, callback_func, response_tags, callback_func_arg) {
|
||||
function exec_xml(module, act, params, callback_func, response_tags, callback_func_arg, fo_obj) {
|
||||
var oXml = new xml_handler();
|
||||
oXml.reset();
|
||||
for(var key in params) {
|
||||
|
|
@ -19,11 +19,11 @@ function exec_xml(module, act, params, callback_func, response_tags, callback_fu
|
|||
|
||||
var waiting_obj = document.getElementById('waitingforserverresponse');
|
||||
waiting_obj.style.visibility = 'visible';
|
||||
oXml.request(xml_response_filter, oXml, callback_func, response_tags, callback_func_arg);
|
||||
oXml.request(xml_response_filter, oXml, callback_func, response_tags, callback_func_arg, fo_obj);
|
||||
}
|
||||
|
||||
// 결과 처리 후 callback_func에 넘겨줌
|
||||
function xml_response_filter(oXml, callback_func, response_tags, callback_func_arg) {
|
||||
function xml_response_filter(oXml, callback_func, response_tags, callback_func_arg, fo_obj) {
|
||||
var xmlDoc = oXml.getResponseXml();
|
||||
if(!xmlDoc) return;
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ function xml_response_filter(oXml, callback_func, response_tags, callback_func_a
|
|||
return;
|
||||
}
|
||||
|
||||
callback_func(ret_obj, response_tags, callback_func_arg);
|
||||
callback_func(ret_obj, response_tags, callback_func_arg, fo_obj);
|
||||
}
|
||||
|
||||
// xml handler
|
||||
|
|
@ -70,7 +70,7 @@ function zGetXmlHttp() {
|
|||
return null;
|
||||
}
|
||||
|
||||
function xml_handlerRequest(callBackFunc, xmlObj, callBackFunc2, response_tags, callback_func_arg) {
|
||||
function xml_handlerRequest(callBackFunc, xmlObj, callBackFunc2, response_tags, callback_func_arg, fo_obj) {
|
||||
|
||||
var rd = "";
|
||||
rd += "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n"
|
||||
|
|
@ -88,7 +88,7 @@ function xml_handlerRequest(callBackFunc, xmlObj, callBackFunc2, response_tags,
|
|||
this.obj_xmlHttp.abort();
|
||||
this.obj_xmlHttp = this.getXmlHttp();
|
||||
}
|
||||
this.obj_xmlHttp.onreadystatechange = function () {callBackFunc(xmlObj, callBackFunc2, response_tags, callback_func_arg)};
|
||||
this.obj_xmlHttp.onreadystatechange = function () {callBackFunc(xmlObj, callBackFunc2, response_tags, callback_func_arg, fo_obj)};
|
||||
this.obj_xmlHttp.open('POST', this.xml_path, true);
|
||||
this.obj_xmlHttp.send(rd);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue