본문 바로가기
728x90

script19

javascript 내 함수 파라미터 전달 1. $("#selectbox").append(""+map.list[i]+"'"); 2. $("#selectbox").append("+map.list[i]+"')'>"+map.list[i]+"'"); 3. $("#selectbox").append(""+map.list[i]+"'"); 출처: https://mingggu.tistory.com/93 동적 엘리먼트 생성 시 함수 인자 따옴표 (따옴표 안에 따옴표 안에 따옴표) 따옴표 안에 따옴표를 넣는게 헷갈릴 때가 많다. 기존에 하던 방식대로 했는데도 안될 때도 있고... 아래 세가지 방법중 하나가 걸리길..! 1. $("#selectbox").append(" 2019. 5. 24.
JQuery 와 Prototype 충돌 [원문] http://smartjuho.tistory.com/entry/JQuery-%EC%99%80-Prototype-%EC%B6%A9%EB%8F%8C-%EB%B0%A9%EC%A7%80 JQuery와 prototype에서 $()를 사용하려면 충돌이 일어나 스크립트 오류를 일으킨다. 둘다 같은 $()를 쓰니까.. 이를 해결하는 방법은 아래와 같다. jQuery 와 prototype 을 정의한 아래줄에 다음의 소스를 추가한다. 위와 같이 정의해두면 jQuery에 대한 $()는 -> j$() 로 대체해서 사용할수 잇게된다. 물론 충돌도 일어나지 않는다. ++ 하지만! jquery의 다른 라이브러리를 다운로드 받아 사용하려면 해당 라이브러리의 $ 를 j$ 로 모두 바꿔줘야 하는 번거로움이 있다. 이는 스크립트.. 2016. 5. 26.
InvalidCharactErerror [출처] http://www.codekin.com/?p=267 document.createElement() 를 실행할때 InvalidCharactErerror 오류가 나는 이유는 IE버전에 있다. 정확한 버전은 찾아봐야겠지만. IE10표준모드에서는12var voNode = document.createElement("");document.getElementsByTagName("body")[0].appendChild(voNode);위 처럼 를 이용한 풀 태그를 인자로 넘기는 것이 안된다. 표준모드에서 작동시키기 위해서는 attribute를 나누어줄 필요가 있다.12345var voNode = document.createElement("div");voNode.setAttribute("id" , "myDiv").. 2016. 1. 11.
iframe javascript access parent cross domain [출처] http://stackoverflow.com/questions/1291812/iframe-javascript-access-parent-dom-across-domains -parent page- /> -child page- Test 2014. 7. 14.
swap memory used check in sh [출처] https://github.com/sensu/sensu-community-plugins/blob/master/plugins/system/check-swap.sh #!/bin/bash## Evaluate swap memory usage from Linux based systems.## Date: 2007-11-12# Author: Thomas Borger - ESG# Date: 2012-04-02# Modified: Norman Harman - norman.harman@mutualmobile.com# Date: 2013-03-13# Modified: Jean-Francois Theroux - jtheroux@lapresse.ca## The swap check is done with followin.. 2014. 7. 3.
JAVACRIPT 와 PHP 간 암호화 복호화 연동 [출처] http://shonm.tistory.com/category/PHP/JAVASCRIPT%20%3C-%3E%20PHP%20%EC%95%94%ED%98%B8%ED%99%94%20%EC%97%B0%EB%8F%99 http://www.movable-type.co.uk/scripts/aes.html ======================================================================== 테스트 할 소스 1. test.php 2. test2.php ======================================================================== include 할 소스 1. aes.js 내용 /* - - - - - - - - - - -.. 2014. 6. 27.
화면회전 in javascript [출처] http://blog.naver.com/PostView.nhn?blogId=hanoora&logNo=110177880101&redirect=Dlog&widgetTypeCall=true [출처] [mobile]가로, 세로 전환 및 화면크기 변경시 처리|작성자 하누라 2014. 4. 15.
pc 표준시간대 변경에 따른 javascript 현재시간 조정 [출처] http://www.techrepublic.com/article/convert-the-local-time-to-another-time-zone-with-this-javascript/#. Convert the local time to another time zone with this JavaScriptBy Contributor Melonfire January 3, 2006, 11:32 AM PST Email Alert RSS 1Comments SaveFacebook1Twitter3Linkedin0More Email Print Reddit Delicious Digg Pinterest Stumbleupon To display the time of day of a different time zone f.. 2014. 4. 8.
javascript 동적 css 파일 반영 [출처] http://stackoverflow.com/questions/2099517/dynamically-loading-an-external-css-file Load "oldstyle.css" 2014. 3. 11.
728x90