검색결과 리스트
글
출처 : http://codingrecipes.com/jquery-ui-dialog-and-the-enter-return-key-problem
http://blog.naver.com/PostView.nhn?blogId=lcoguss&logNo=199048137
html의 input 에서 문자 입력 후에 enter를 누를 시 dialog가 닫혀버리는 현상이 있다.
아래처럼 keyCode가 13일때 아무런 처리를 하지 않으면 된다.
$('.dialog').find('input').keypress(function(e) { if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) { //$(this).parent().parent().parent().parent().find('.ui-dialog-buttonpane').find('button:first').click(); /* Assuming the first one is the action button */ return false; } });
'IT분야 > Javascript' 카테고리의 다른 글
[Jquery]html 동적추가할 경우 Jquery datepicker 추가 (0) | 2013.12.17 |
---|---|
[JavaScript]jquery dialog enter 누를시 닫히는 현상 (0) | 2013.12.15 |
[JAVASCRIPT]JSON 오류검사 (1) | 2013.02.26 |
jquery ui datepicker (0) | 2012.11.04 |
설정
트랙백
댓글
글
톰켓이 스레드가 부족할 경우 아래와 같은 메세지를 출력하고 다운될 때가 있다.
심각: All threads (200) are currently busy, waiting. Increase maxThreads (200) or check the servlet status
기본적인 maxThreads가 200이므로 늘려주면된다.
Tomcat폴더/conf/server.xml 파일에서 Connector 엘리먼트에서 변경 혹은 추가한다.
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
maxThreads="400"
redirectPort="8443" />
참고 : http://blog.naver.com/PostView.nhn?blogId=junix&logNo=80125225673
'IT분야 > Server' 카테고리의 다른 글
[Server]Tomcat max thread 변경 (0) | 2013.12.13 |
---|---|
[Server]Tomcat 메모리 변경 (0) | 2013.12.13 |
[Tomcat]tomcat get 한글 깨짐 (0) | 2013.12.10 |
[Tomcat]PermGen space (0) | 2012.11.04 |
Weblogic 메모리 PermGen space 에러. (0) | 2012.11.04 |
[Apache+PHP+MySQL] Windows 2003 Server APM 셋팅 (0) | 2010.12.20 |
설정
트랙백
댓글
글
참조 : http://blog.naver.com/PostView.nhn?blogId=junix&logNo=80125225673
Tomcat 메모리 변경
bin/catalina.sh 파일에 아래 내용을 맨 위쪽에 추가한다.
리눅스 : JAVA_OPTS=$JAVA_OPTS -Xms512m -Xmx1024m -XX:PermSize=128m
윈도우 : set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1024m -XX:PermSize=128m
톰켓을 재시작한다.
'IT분야 > Server' 카테고리의 다른 글
[Server]Tomcat max thread 변경 (0) | 2013.12.13 |
---|---|
[Server]Tomcat 메모리 변경 (0) | 2013.12.13 |
[Tomcat]tomcat get 한글 깨짐 (0) | 2013.12.10 |
[Tomcat]PermGen space (0) | 2012.11.04 |
Weblogic 메모리 PermGen space 에러. (0) | 2012.11.04 |
[Apache+PHP+MySQL] Windows 2003 Server APM 셋팅 (0) | 2010.12.20 |