function fn_login_proc(){ var frm = document.login_form; if (frm.userid.value.split(" ").join("") == ""){ alert("회원아이디를 입력하세요."); frm.userid.focus(); return false; } if (frm.pwd.value.split(" ").join("") == ""){ alert("비밀번호를 입력하세요."); frm.pwd.focus(); return false; } var loginFrame = $("").attr("id", "if_login") .attr("name", "if_login") .attr("marginWidth", "0px") .attr("marginHeight", "0px") .attr("frameborder", "1px") .attr("width", "0px") .attr("height", "0px") .attr("scrolling", "no") .attr("src", "about:blank"); $("body").append(loginFrame); if (self.frames[loginFrame.attr("name")].name != loginFrame.attr("name")){ self.frames[loginFrame.attr("name")].name = loginFrame.attr("name"); } frm.method = "post"; if ( frm.ssl_login.checked ){ frm.action = "/service/login/svc_user_confirm.asp"; }else{ frm.action = "/service/login/svc_user_confirm.asp"; } frm.target = loginFrame.attr("name"); frm.submit(); } function loginFail(p_msg){ alert(p_msg); } function loginSucc(){ location.href = ""; } /* function fn_login_proc(){ var frm = document.login_form; if (frm.userid.value.split(" ").join("") == ""){ alert("회원아이디를 입력하세요."); frm.userid.focus(); return false; } if (frm.userpw.value.split(" ").join("") == ""){ alert("비밀번호를 입력하세요."); frm.userpw.focus(); return false; } var actionURL = ""; if (frm.ssl_login.checked){ actionURL = "http://www.eduhouse.net"; }else{ actionURL = "http://www.eduhouse.net"; } var param = 'userId='+frm.userid.value+'&pwd='+frm.userpw.value; $.ajax({ //url: actionURL+'/service/login/svc_user_confirm.asp', url: '/service/login/svc_user_confirm.asp', type: 'POST', data: param, dataType: 'json', error: function(p_data) { alert("로그인 중 오류 발생. 잠시 후 이용바랍니다."); }, success: function(p_data) { if (p_data.return_result == "SUCC"){ location.href="/members/login.asp?returnUrl=%2Fmembers%2Flogin%2Easp%3FreturnUrl%3D%252Ftalk%252Flive%255Ftalk%255Fview%252Easp%253Fseq%253D51755%2526natCd%253D574%2526pageno%253D1%2526search%255Ffield%253Dtitle%2526search%255Fword%253D"; } else { alert(unescape(p_data.return_message)); } } }); } */