디지털 컨버전스/AJAX

[AJAX] 아이디 중복체크

gimyeondong 2020. 5. 11. 11:48

아이디 중복체크 팝업창으로 만들지 말고 AJAX로 중복 검사

 

(onkeyup 멋지긴 하지만 트래픽이 과도해지는 문제가 생김, 실제 프로젝트 시연시 오버헤드 주의

-> onfocusout)

 

            $(function(){
            	$('#duplCheck').on("click",function(){
            		window.open("duplcheck.mem?id="+$("#id").val(),"","width=400,height=300");
            		
            	})
            	
            	$('#back').on("click",function(){
        			location.href = "indexview.mem"
            	})
            	
            })