/*-------------------------------------------------------------------------- * * Webcrea : ActiveSoft Web Version 7, 0, 2017, 0215, 003 * * (c) Copyright 2015. ActiveSoft. Co., Ltd. * For details, see the activesoft web site: http://www.activesoft.co.kr * *--------------------------------------------------------------------------*/ Win.FileTitle = '대구한의대학교'; var _my_FileMDI; function OnWinLoad() { Webcrea.OnLoaded(); } function OnWinResize() { Webcrea.OnResized(); } function OnWinClose() { Webcrea.OnClose(this); var bClose = Webcrea.IsClose(); if(!bClose) return false; } function OnWinError(msg,url,line) { var str = "Error: " + msg + "\nLine : " + line + "\nURL: " + url; if(Webcrea.bAlert) { Webcrea.Trace(str); alert(str); } } function OnLOADED(){ if(typeof OnINIT != 'undefined') OnINIT(); new Ajax.Request( 'DhuMDI_Layout.xml', { onLoading: function() { }, onSuccess: function(httpRequest) { Webcrea.layoutXml = httpRequest.responseXML; LayoutParseXml(); }, onFailure: function(httpRequest) { alert('Failure! Status code '+httpRequest.status+' ('+httpRequest.statusText+')'); }, onComplete: function(httpRequest) { } } ); } function LayoutParseXml() { try{ var bodyNode=document.getElementById('divBody'); var str = Webcrea.MakeInnerHtml(Webcrea.layoutXml.documentElement); if(!bodyNode) return; bodyNode.innerHTML = str; window.onerror = OnWinError; window.onbeforeunload = OnWinClose; var mainInfo = ''; var topInfo = ''; var leftInfo = 'mdi/LeftMenu.html;240,mdi/LeftClose.html;18,'; var rightInfo = ''; var bottomInfo = ''; _my_FileMDI = new MDIObject(); _my_FileMDI.SetLayout(mainInfo, topInfo, leftInfo, rightInfo, bottomInfo, 1); _my_FileMDI.objName='_my_FileMDI'; _my_FileMDI.Init('main.html', 'DHU'); _my_FileMDI.Display(); window.onload = OnWinLoad(); window.onresize = OnWinResize; }catch(e) { console.log("[LayoutParseXml : " + Win.FileTitle + "]" + e.stack); alert("There is an error. Check the console window."); } }