본문 바로가기

type

(6)
input file accept 와 사진/동영상/안드로이드 input 태그에 type 이 file 인 경우, 찾아보기 대상을 조정할 수 있는데.. accept 속성이 이런 일을 함. 그런데, 짧게 기술한다고 accept="image/*" 라고 기술하면.. 애플의 경우 '사진 보관함', '사진 또는 동영상 찍기', '파일 선택', 안드로이드의 경우 '카메라', '카메라/캠코더', '파일' 등을 선택할 수 있게 된다. 여기서, '동영상' 이나 '캠코더' 기능을 없애려면.. 'image/*' 를 없애고, 필요한 이미지의 확장자를 기술하면 된다. accept=".jpg, .png" 애플의 경우 '사진 보관함', '사진 찍기', '파일 선택', 안드로이드의 경우 '카메라', '찾아보기' 등을 선택할 수 있게 된다. 물론, os 버전에 따라 상이할 수는 있다.. Andro..
jsonp 호출하는 쪽과 호출되는 쪽 세팅 http://doolyit.tistory.com/20http://blog.naver.com/woo_jae_ho/220318694045이렇게 코딩하는 방식도 존재.. $.ajax ({...,success : function(data) { console.log("success") },error : function(data) { console.log("error") },complete : function(data) { console.log("complete") } // success 나 error 후에 실행}).done(function(){ console.log("done") }).fail(function(){ console.log("fail") }).always(function(){ console.log("..
ora-00997, long data 유형은 사용할 수 없다..? long raw 작업시 to_lob 고려 2개의 테이블이 동일하게 생겼는데 insert ~ select 문을 사용하니까, ora-00997 오류 발생.확인해 보니 Long Data 유형을 사용할 수 없다고 하는데..칼럼에 Long raw 가 하나 들어가다 보니 발생. 네이버에 검색해 보니 Procedure 문에서 커서를 사용하면 된다는데..이리저리 해 보아도 안 되네요. 그리고 쿼리문으로는 안 되는 것인가..? 옆에 있는 동료에게 문의해 보니 to_lob 함수를 사용해 보라는데..헐, 그냥 되네요.. ~. 아래 쿼리문에서 문제의 long raw 칼럼이 columnB 라고 하면,insert into tableA(columnA, columnB, ...)select columnA, to_lob(columnB), ... from tableB a whe..
[모음글] Type http://findfun.tistory.com/422 아래와 같이 type 을 체크할 수도 있다. $('input[name="name1"], select[name="name1"], textarea[name="name1"]').each(function(){ var t1 = this.type; if(t1=='text'){ alert(t1); }else if(t1=='hidden'){ alert(t1); }else if(t1=='radio'){ alert(t1); }else if(t1=='checkbox'){ alert(t1); }else if(t1=='image'){ alert(t1); }else if(t1=='select-one'){ alert(t1); }else if(t1=='textarea'){ al..
[모음글] jQuery ajax $.ajax({ url : '...', // 변수를 이용해서 url 설정 가능, Math.random() 를 파라미터로 넣어줌으로써 캐시 제거 가능 global : false, // Default true, 또는 생략 type : 'post', // 또는 get cache : false, // Default true, 캐시를 사용하지 않으려면 false 요망 data : {curData:curDate, to_date2:to_date2}, // JSon 스타일 //data : 'curData='+curDate+'&to_date2='+to_date2', // String 스타일. $('form').serialize() 코드는 간단하지만.. dataType : 'stirng', // json jsonp xml..
Generic Type Cast 방법 @SuppressWarnings("unchecked") List list = (List)request.getAttribute("list"); for (int i=0; i < list.size(); i++){/* JDK1.5 이상에선 이런 방식이 아니지 참.. ㅋㅋ */ BoardVo row = list.get(i); //BoardVo row = (BoardVo)list.get(i); /* JDK1.4.x 까지는 이렇게 했어야 했다.. */ ... } ... ... List va = new List(); ...