본문 바로가기

[jQuery] 페이지 이동전 Form 데이터 변경여부 확인하기 페이지 이동전 Form 데이터 변경여부 확인하기 html teacherstudent script 더보기
[Music] Charles Hamilton - NY Raining Charles Hamilton - NY Raining (Empire O.S.T) Miles from home, my style has grownSick of getting played like a xylophoneMy instrument is me with thousands of bonesWilin', I just wanna zoneMy mama knowsI need a chick to be kinda dopeSmile a lot, give a lot of (dome)Only to me, spoil me with your bad (ass)You're like royalty, baby, catch thatSee the rain is makin' me feel painlessThis relationship .. 더보기
[java] Client의 웹브라우저 종류 조회 Client의 웹브라우저 종류 조회 public static String getClntWebKind(HttpServletRequest request) throws Exception {String user_agent = request.getHeader("user-agent"); // 웹브라우저 종류 조회String webKind = "";if (user_agent.toUpperCase().indexOf("GECKO") != -1) {if (user_agent.toUpperCase().indexOf("NESCAPE") != -1) {webKind = "Netscape (Gecko/Netscape)";} else if (user_agent.toUpperCase().indexOf("FIREFOX") != -1).. 더보기
[java] Client의 웹브라우저 버전 조회 Client의 웹브라우저 버전 조회 public static String getClntWebVer(HttpServletRequest request) throws Exception {String user_agent = request.getHeader("user-agent"); // 웹브라우저 버전 조회String webVer = "";String [] arr = {"MSIE", "OPERA", "NETSCAPE", "FIREFOX", "SAFARI"};for (int i = 0; i < arr.length; i++) {int s_loc = user_agent.toUpperCase().indexOf(arr[i]);if (s_loc != -1) {int f_loc = s_loc + arr[i].length().. 더보기
[java] Client IP 조회 Client IP 조회 서버에 접속하는 클라이언트의 아이피를 확인하기 위해서는HttpServletRequest 객체를 이용하면 된다고 한다.request.getRemoteAddr(); 하지만 Load Balancer나 프록시 같은 경우는 정확한 아이피 정보를가져오지 못 한다고 한다. 그래서 다음과 같은 메소드를 이용한다.localhost에서 테스트 할 경우 0:0:0:0:0:0:0:1 값으로 넘어 오는 경우가 있는데이 값은 IPv6에서 IPv4의 127.0.0.1와 같은 값이다. 127.0.0.1로 받아오려면 톰캣 vm arguments에 아래와 같이 추가하여 준다. vm arguments-Djava.net.preferIPv4Stack=true java public String getClientIP(Ht.. 더보기
[DB] MS-SQL INSERT SELECT, UPDATE SELECT 문 MS-SQL INSERT SELECT, UPDATE SELECT 문 일반적인 UPDATE 문UPDATE 테이블명 SET 필드명 = 값 WHERE 조건문 UPDATE - SELECT 문UPDATE 테이블명A SET 피드명 = 테이블명B.필드명FROM 테이블명A JOIN 테이블명B ON 조인조건 (A.필드명 = B.필드명) 일반적인 INSERT 문INSERT INTO 테이블명필드명VALUES값 INSERT - SELECT 문INSERT INTO 테이블명필드명SELECT 필드명, ... FROM 테이블명WHERE 조건문 EX)INSERT INTO MEMBER(NAME, AGE) SELECTNAME,AGEFROM OLD_MEMBERWHERE USE_YN = 'Y' 주의사항은 INSERT하는 컬럼 수, 컬럼 타입.. 더보기
[jQuery] form의 모든 input text null check form의 모든 input text null check 회원가입처럼 form의 text field null check시 기존에는 존재하는 모든 필드를 id로 개별적으로 체크를 했었다. 하지만 필드 항목이 늘어나거나 바뀌는 경우에는 스크립트 부분도 같이 수정해야 하는 번거로움이 있어서 필드가 추가, 변경되더라도스크립트는 수정할 필요가 없으면 좋겠다는 생각을 했다. 해당 form의 input 중 모든 text type을 조회하여 null value가 있을 경우 alert과 focus를 주기위해 해당 id, label을 추출하고 true를 반환, null value가 존재하지 않으면 false를 반환하도록 만들어 보았다. txtFieldCheck()가 true가 아닌경우 submit() 기능을 넣어주면 된다... 더보기
[Music] Swizz Beatz - Bigger Business Swizz Beatz - Bigger Business [Intro x2: P.Diddy]Ladies and gentlemen (ladies and gentlemen)As we proceed, to give you what you needSwizz Beatz (get money) Swizz Beatz (make money)Swizz Beatz (get money) [Ron Isley: over intro second time]Hey ladies, can I get a witness?Throw your hands in the airThrow your hands in the air (yeah! yeah!) [Verse: Baby]See I go to Las Vegas and I ball like a dogMe.. 더보기
[Music] Lil Jon - bend ova Lil Jon - bend ova Bend ova, make your knees touch your elbows!Bend ova, make your knees touch your elbows!Bend ova, make your knees touch your elbows! How fast can you shake it?Put it on a nigga 'til his ass can't take itHow fast can you shake it?Put it on a nigga 'til his ass can't take itHow fast can you shake it?Put it on a nigga 'til his ass can't take itBend ova, make your knees touch your.. 더보기
[Music] Ne-Yo - Never Knew I Needed Ne-Yo - Never Knew I Needed For the way you changed my plansFor being the perfect distractionFor the way you took the idea that I haveOf everything that I wanted to haveAnd made me see there was something missing, oh yeah For the ending of my first begin(Ooh, yeah yeah, ooh, yeah yeah)And for the rare and unexpected friend(Ooh, yeah yeah, ooh, yeah yeah)For the way you're something that I'd neve.. 더보기