본문 바로가기
728x90
반응형

Developer/Javascript & jQuery104

[Javascript] 자식창에서 얻은 값 부모창에 전달하기 출처: https://multifrontgarden.tistory.com/5 [우리집앞마당] 자식창에서 얻은 값 부모창에 전달하기 window.open() 함수로 띄운 팝업 창에서 부모창의 변수나 함수를 사용하기 위해선 opener를 사용하면 된다. opener는 부모를 지칭하는 객체(?)이고 opener.을 이용해서 부모의 함수에 접근가능. 아래의 예� multifrontgarden.tistory.com window.open() 함수로 띄운 팝업 창에서 부모창의 변수나 함수를 사용하기 위해선 opener를 사용하면 된다. opener는 부모를 지칭하는 객체(?)이고 opener.을 이용해서 부모의 함수에 접근가능. 아래의 예제는 자식창에서 무언가 값을 클릭할 순간 sendChildValue() 함수가 .. 2020. 7. 28.
[Javascript] IE 팝업창에 스크롤바가 없는 경우 해결하기 @ 기존 window.open(test.html, 'popup1', 'width=300, height=300'); @ 수정 후 window.open(test.html, 'popup1', 'width=300, height=300, scrollbars=1'); 이제 위 코드로 변경하면 팝업에 스크롤이 나타나게 될 것입니다. 2019. 8. 21.
[jQuery] .click(), .bind()의 차이 출처http://noritersand.tistory.com/218 관련 문서http://api.jquery.com/on/http://www.websamo.com/bbs/board.php?bo_table=lecture&wr_id=161&sca=%EC%A0%9C%EC%9D%B4%EC%BF%BC%EB%A6%AC&sfl=wr_subject&stx=on&sop=and.on()하나 혹은 그 이상의 요소(노드)에 이벤트 핸들러를 부착(?)한다. (Attach an event handler function for one or more events to the selected elements).on( events [, selector] [, data], handler( eventObject ) )events: 공백으로 .. 2018. 8. 27.
[jQuery] JSP Checkbox(체크박스)처리하기 @ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 ${targetDivCodeList.className} $(document).ready(function(e){ $(document) .on("change", "#searchCompanyId", function(e) { $("#pageIndex").val("1"); var tmpTypeCds = ""; $("input:checkbox[name='targetDivCodeList']").each(function() { if (this.checked) { tmpTypeCds += this.value + ","; } }); tmpTypeCds = tmpTypeCds.substring.. 2018. 4. 25.
[jQuery] jQuery-ipInput https://www.jqueryscript.net/form/IP-Input-Control-jQuery-ipInput.html 2018. 2. 8.
728x90
반응형