본문 바로가기

전체 글127

checkbox tree list value 가져오기 $(document).ready(function(){//jQuery.treeview$("#navigation").checktree();//value 가져오기var checked = [];$("input:checkbox[name='group1']").each(function() { var name = this.name; var val = this.value; if (val) { checked[name] = val; }}).on('change', function() { var name = this.name; var val = this.value; if (val) { checked[name] = val; } else { delete checked[name]; }});}); 해양기후 기온 풍속 풍향 기압 평균파.. 2014. 11. 12.
treeview Jquery treeview js 파일 : Sample 2 - NavigationItem 1Item 1.0Item 1.0.0Item 1.1Item 1.2Item 1.2.0Item 1.2.0.0Item 1.2.0.1Item 1.2.0.2Item 1.2.1Item 1.2.1.0Item 1.2.2Item 1.2.2.0Item 1.2.2.1Item 1.2.2.2Item 2Item 2.0Item 2.0.0Item 2.0.0.0Item 2.0.0.1Item 2.1Item 2.1.0Item 2.1.0.0Item 2.1.1Item 2.1.1.0Item 2.1.1.1Item 2.1.1.2Item 2.1.2Item 2.1.2.0Item 2.1.2.1Item 2.1.2.2 2014. 11. 11.
팝업창 띄우기 //팝업창 띄우기 전 쿠키 체크if (getCookie("notice") != "done") {noticeWindow = window.open('/portal/jsp/popup/cho_EduPopup.jsp', 'eduPop', 'width=300, height=270,marginwidth=0,marginheight=0,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no');noticeWindow.opener = self;} //쿠키 가져오기function getCookie( name ){ var nameOfCookie = name + "="; var x = 0; while ( x 2014. 11. 6.
리플 제한 및 글 개수 변화 스크립트 //리플 제한 스크립트-JSfunction cal_pre(){var tmpStr;tmpStr = document.replySave.description.value;cal_byte(tmpStr);} function cal_byte(aquery) { var tmpStr;var temp=0;var onechar;var tcount;tcount = 0; tmpStr = new String(aquery);temp = tmpStr.length; for (k=0;k 4) { tcount += 2; } else { tcount++; }} document.replySave.cbyte.value = tcount;if(tcount>500) {reserve = tcount-500;nets_check( document.repl.. 2014. 11. 5.
CSV 다운로드 기능 CSV JSP 부분 구분자 , 개행문자 " //줄바꿈 삭제 "${list.sd_name}","${list.area}","${list.quantity}""${sggList.sgg_name}","${sggList.area}","${sggList.quantity}","${sggList.department}","${sggList.contact}" "합계","${totArea}","${totQuantity}" "조회 된 데이터가 없습니다." 2014. 11. 5.
JSON-lib Java Library DOWNLOADJSON-lib - http://sourceforge.net/projects/json-lib/files/json-lib/ DependenciesJSON-lib는 아래의 패키지에 의존성을 가지고 있다.jakarta commons-lang 2.5jakarta commons-beanutils 1.8.0jakarta commons-collections 3.2.1jakarta commons-logging 1.1.1ezmorph 1.0.6 2014. 11. 3.