본문 바로가기

반응형

웹프로그래밍

(125)
How to unset a JavaScript variable? I know this is an old thread, but the selected answer isn't clear enough for me. The point is the delete operator removes a property from an object. It cannot remove a variable. So the answer to the question depends on how the global variable or property is defined. (1) If it is created with var, it cannot be deleted. For example:var g_a = 1; //create with var, g_a is a variable delete g_a; //re..
HTTP GET String + 등이 삭제되었을 때 preg_match_all('/(\w+)=([^&]+)/', $_SERVER["QUERY_STRING"], $pairs); $_GET = array_combine($pairs[1], $pairs[2]);
[jQuery] .each $.each 순회중 continue, break 하기 jQuery에서 for, while 문과 비슷한 역할을 하는 each 메소드 사용 시 break, continue와 같은 프로세스를 수행해야 할 때가 있다. 그럴 때 return true;는 continue와 같은 역할을, return false;는 break와 같은 역할을 수행한다. 예제 >> $('#loop').each ( function() { if ( i==0 ) return true; // continue; else return false; // break; } ); 출처 :http://dhplanner.blogspot.kr/2009/06/jquery-each-%EB%A9%94%EC%86%8C%EB%93%9C-%EC%82%AC%EC%9A%A9%EC%8B%9C-break-continue-%EC%8..
Centos 7 / Apache / PHP - mkdir(): Permission denied Could be that although you have 755/777 permissions, SELinux is blocking httpd from writing/creating dirs. Try:chcon -R -t httpd_sys_content_t /path/to/www chcon -R -t httpd_sys_content_rw_t /path/to/www/dir/for/rw Further info: http://wiki.centos.org/TipsAndTricks/SelinuxBooleans
Open /etc/postfix/main.cf: Permission denied SSH에서 root 으로 접속후 아래 명령을 입력. setsebool -P httpd_can_sendmail=1
PHP에서 csv로 저장시 연락처 0 삭제 방지 $phone 이 01012341234 로 저장되어 있을때.. $phone = "=\"".$phone."\""; 이렇게 처리해서... ="01012341234" 로 내려가게 하면 된다...
밴드(BAND) 공유하기 정보(제목/내용/이미지) 스니핏 밴드 공유하기를 구현할때, 제목 내용 이미지를 넣고 싶었지만 아무리 공유하기를 눌러도 전달되지 않았다. window.open("http://www.band.us/plugin/share?body="+encodeURIComponent($("#docTitle").val() + "-" + $("#docAuthor").val())+encodeURIComponent("\n")+encodeURIComponent($("#docShortUrl").val())+"&route="+location.href, "share_band", "width=410, height=540, resizable=no"); (JSTL구문이 섞여있다...) 어쨋거나 body 파라미터에 제목\n주소 식으로 전달을 하면 밴드에 공유하기에 카드가 생긴다..
jQuery DatePicker 버튼 만들기 (동적 생성) 위와같이 할 경우 datepicker input 옆에 버튼이 생성된다. 이 버튼의 class는 ui-datepicker-trigger 를 가지므로 스타일시트에서 자신의 기호에 맞게 이미지를 배경으로 깔든 편하게 쓰면 된다.

반응형