function startRequest_true(url,SendStr,GetObj){ close_editor(); $("#"+GetObj).html("
"); var htmlObj = $.ajax({ type: "POST", url: url, dataType:"html", async: true, data: SendStr, context:$("#"+GetObj), success:function(html){ $(this).html(html); } }); } function startRequest_false(url,SendStr,GetObj){ close_editor(); var htmlObj = $.ajax({ type: "POST", url: url, dataType:"html", async: false, data: SendStr }); $("#"+GetObj).html(htmlObj.responseText); } //事先產生編輯器 function create_editor(){ KE.init({id : 'Content'}); KE.init({id : 'Content1'}); KE.init({id : 'Content2'}); } //關掉網頁編輯器 function close_editor(){ if($("#Content_editor").attr("id")){KE.remove('Content');} if($("#Content1_editor").attr("id")){KE.remove('Content1');} if($("#Content2_editor").attr("id")){KE.remove('Content2');} } function startEvalMsg(url,SendStr){ var htmlObj = $.ajax({ type: "POST", url: url, dataType:"json", data: SendStr, async: false }); //alert(htmlObj.responseText); var returnJsonObj = new Object(eval("("+htmlObj.responseText+")"));//JSON轉成物件 dialog_msg(returnJsonObj.Msg,escape(returnJsonObj.act)); return; } function dialog_msg(msg,act){ if($.browser.version == '6.0'){ //取得視窗的長寬 var maskWidth = $(document).width(); var maskHeight = $(document).height(); $("body").append("