HTTP 에러 정리 HTTP 에러 정리 cgi프로그래밍 후 테스트하거나 웹서핑중 종종 브라우저에 뜻하지 않는 메시지를 접하곤 합니다. 가장 많이 볼 수 있는 것들이 404 Not found나 403 Forbidden 등이 있습니다. 이들은 서버에서 보내는 사용자의 요구에 대한 응답입니다. 이러한 것들은 HTTP/1.0의 STATUS CODE라고 합니다... Java & Jsp 2013.02.20
HTTP 1.1 status codes >HTTP 1.1 status codes [TOP] >>100 : Continue >101 : Switching protocols >200 : OK, 에러없이 전송 성공 >201 : Created, POST 명령 실행 및 성공 >202 : Accepted, 서버가 클라이언트 명령을 받음 >203 : Non-authoritative information, 서버가 클라이언트 요구 중 일부만 전송 >204 : No content, 클라언트 요구을 .. Java & Jsp 2013.02.20
팝업창 관련 자바스크립트 1. 옵션을 HEAD안에... <script language="JavaScript"> function openNewWindow(window) { open (window,"NewWindow","left=0, top=0, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, width=200, height=200"); } </script> <a href=javascript:openNewWindow("주소입력")>새창열기</a> 2. 링크에 옵션을 지정... <a href=".. Java & Jsp 2007.11.24
재밌는 자바스크립트...펌 1.덩실덩실~ javascript:R=0;x1=.1;y1=.05;x2=.25;y2=.24;x3=1.6;y3=.24;x4=8;y4=8;DI=document.getElementsByTagName("img");DIL=DI.length;function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style;DIS.position='Relative';DIS.left=Math.sin(R*x1+i*x2+x3)*x4;DIS.top=Math.cos(R*y1+i*y2+y3)*y4;}R++;}setInterval('A()',5);void(1); 2.회전스크류!! javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24.. Java & Jsp 2007.11.24
자바스크립트용....fomat String function getTimeStamp() { var d = new Date(); var s = leadingZeros(d.getFullYear(), 4) + '-' + leadingZeros(d.getMonth() + 1, 2) + '-' + leadingZeros(d.getDate(), 2) + ' ' + leadingZeros(d.getHours(), 2) + ':' + leadingZeros(d.getMinutes(), 2) + ':' + leadingZeros(d.getSeconds(), 2); return s; } function leadingZeros(n, digits) { var zero = ''; n = n.toString(); if (n.length < digits) { for (.. Java & Jsp 2007.11.16
validate.js 파일 사용법 <!--StartFragment-->-1. CHANGES 2004.11.06 - minselect, maxselect 인자 추가 <samp explain="멀티 셀렉트박스에서 3가지 이상 5가지 이하의 항목만 입력받는 예"> <select multiple minselect="3" maxselect="5"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">.. Java & Jsp 2007.11.13
type casting integer to String : int i = 42; String str = Integer.toString(i); or String str = "" + i double to String : String str = Double.toString(i); long to String : String str = Long.toString(l); float to String : String str = Float.toString(f); String to integer : str = "25"; int i = Integer.valueOf(str).intValue(); or int i = Integer.parseInt(str); String to double : double d = Double.valueOf(str).d.. Java & Jsp 2007.11.01