mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-11 23:01:41 +09:00
서버 접속 메세지 출력시 사용되는 javascript로 인한 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3999 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d6695c9928
commit
002afdd250
2 changed files with 5 additions and 31 deletions
|
|
@ -20,32 +20,15 @@ function exec_xml(module, act, params, callback_func, response_tags, callback_fu
|
|||
if(typeof(response_tags)=="undefined" || response_tags.length<1) response_tags = new Array('error','message');
|
||||
|
||||
var waiting_obj = xGetElementById("waitingforserverresponse");
|
||||
if(!waiting_obj) {
|
||||
waiting_obj = xCreateElement('DIV');
|
||||
waiting_obj.id = 'waitingforserverresponse';
|
||||
waiting_obj.style.visibility = 'hidden';
|
||||
document.body.appendChild(waiting_obj );
|
||||
}
|
||||
|
||||
if(show_waiting_message && waiting_obj) {
|
||||
var str = ''+
|
||||
'<div style="float:left; width:80px; height:80px; overflow:hidden;">'+
|
||||
'<object id="load_next" width="80" height="80" align="middle" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">'+
|
||||
'<param value="sameDomain" name="allowScriptAccess"/>'+
|
||||
'<param value="'+request_uri+'common/tpl/images/loading.swf" name="movie"/>'+
|
||||
'<param value="high" name="quality"/>'+
|
||||
'<param value="transparent" name="wmode"/>'+
|
||||
'<param value="#ffffff" name="bgcolor"/>'+
|
||||
'<embed width="80" height="80" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowscriptaccess="sameDomain" name="load_next" bgcolor="#FFFFFF" quality="high" src="'+request_uri+'common/tpl/images/loading.swf"/>'+
|
||||
'</object>'+
|
||||
'</div>'+
|
||||
'<div style="white-space:nowrap;z-index:1;float:left; padding:32px 20px 0 0; ">'+waiting_message+'</div>';
|
||||
|
||||
var str = '<div style="float:left; width:80px; height:80px; overflow:hidden;"><object id="load_next" width="80" height="80" align="middle" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><param value="sameDomain" name="allowScriptAccess"/><param value="'+request_uri+'common/tpl/images/loading.swf" name="movie"/><param value="high" name="quality"/><param value="transparent" name="wmode"/><param value="#ffffff" name="bgcolor"/><embed width="80" height="80" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowscriptaccess="sameDomain" name="load_next" bgcolor="#FFFFFF" quality="high" src="'+request_uri+'common/tpl/images/loading.swf"/></object></div><div style="white-space:nowrap;z-index:1;float:left; padding:32px 20px 0 0; ">'+waiting_message+'</div>';
|
||||
xInnerHtml(waiting_obj, str);
|
||||
|
||||
xTop(waiting_obj, xScrollTop()+20);
|
||||
xLeft(waiting_obj, xScrollLeft()+20);
|
||||
waiting_obj.style.visibility = "visible";
|
||||
}
|
||||
|
||||
oXml.request(xml_response_filter, oXml, callback_func, response_tags, callback_func_arg, fo_obj);
|
||||
}
|
||||
|
||||
|
|
@ -55,10 +38,7 @@ function xml_response_filter(oXml, callback_func, response_tags, callback_func_a
|
|||
if(!xmlDoc) return null;
|
||||
|
||||
var waiting_obj = xGetElementById("waitingforserverresponse");
|
||||
if(waiting_obj) {
|
||||
waiting_obj.style.visibility = "hidden";
|
||||
xInnerHtml(waiting_obj, '');
|
||||
}
|
||||
if(waiting_obj) waiting_obj.style.visibility = "hidden";
|
||||
|
||||
var ret_obj = oXml.toZMsgObject(xmlDoc, response_tags);
|
||||
if(ret_obj["error"]!=0) {
|
||||
|
|
@ -75,8 +55,6 @@ function xml_response_filter(oXml, callback_func, response_tags, callback_func_a
|
|||
|
||||
callback_func(ret_obj, response_tags, callback_func_arg, fo_obj);
|
||||
|
||||
oXml.clear();
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
@ -89,7 +67,6 @@ function xml_handler() {
|
|||
this.params = new Array();
|
||||
|
||||
this.reset = xml_handlerReset;
|
||||
this.clear = xml_handlerClear;
|
||||
this.getXmlHttp = zGetXmlHttp;
|
||||
this.request = xml_handlerRequest;
|
||||
this.setPath = xml_handlerSetPath;
|
||||
|
|
@ -146,10 +123,6 @@ function xml_handlerReset() {
|
|||
this.params = new Array();
|
||||
}
|
||||
|
||||
function xml_handlerClear() {
|
||||
this.obj_xmlHttp = null;
|
||||
}
|
||||
|
||||
function xml_handlerAddParam(key, val) {
|
||||
this.params[key] = val;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,5 +25,6 @@
|
|||
<body>
|
||||
{$zbxe_final_content}
|
||||
{Context::getHtmlFooter()}
|
||||
<div id="waitingforserverresponse"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue