본문 바로가기

SSO 로그아웃 삽질... SSO 로그아웃 삽질...크로스도메인 문제로 https 에서 http로 json 처리로 로그아웃 을 시도하였으나 실패...서버설정을 해주지않는이상 불가능... var ssoLogout = function(){ //$(_this).attr("onClick",""); //$(_this).attr("onClick","ssoLogout(this);"); $.ajax({ url : wwwDomain + "/login/logout.do", type : 'post', dataType: 'jsonp', beforeSend: function(){ console.log("진행중 구현 프로그래스바 이미지 같은거"); }, success : function(data){ var msg = data.alertBean.alertM.. 더보기
ajax 뒤로가기 제어하기 상단 전역변수 var oldURL = location.href;var oldHash = location.hash; 액션 1 . 리스트에서 레이어를 띄움 pop_open(글번호) 수행 function pop_open(movieNo){location.hash = "story/" + movieNo;} 액션 2 . location.hash 가 수행되면 아래 메서드 수행 $(window).on('hashchange', function (e) { var hash = location.hash; if( hash == "#_" || hash == "" ){ //팝업 닫기로 접근한 경우 액션 5 var regEx = /#([a-zA-z]+)\/([0-9]+)*/i; var match = oldHash.match(regEx.. 더보기
java spring 파일다운로드 한글깨짐 처리 response 객체 한글깨짐 처리 금감원에서 테스트했던거 이번 재단에도 한글깨짐 처리 먹히넹 /** * 다운로드시 한글 깨짐 방지 처리 */ private void setDisposition(String filename, HttpServletRequest request, HttpServletResponse response) throws Exception { String browser = getBrowser(request); String dispositionPrefix = "attachment; filename="; String encodedFilename = null; System.out.println("================================="+browser+"===========.. 더보기