parent.document.getElementById / 적용 안되는 경우
프로그래밍/php2015. 1. 10. 13:53
parent.document.getElementById
누군가 이렇게 쓰라고 예시글을 올려놨었다..
ex -> exit('<script type="text/javascript">parent.document.getElementById("id").value=\'ok\'; alert(\'중복되는 아이디가 없습니다.\'); window.close();</script>');
아이디 중복체크할 때 사용하는 부분이였는데... 계속 안되길래 하나하나 찍어보면서 결국 찾았는데!
원인은
parent.document.getElementById("id").value=\'ok\';
이 문장이 적용이 안되던 것.
검색을 해보니
opener.document.getElementById("id").value=\'ok\';
이렇게 사용해야된다는 것!!!!!
'프로그래밍 > php' 카테고리의 다른 글
[MySQL] select 안에 select. (0) | 2019.12.08 |
---|---|
[APMSetup] 외부접근 허용시키기! (0) | 2015.06.18 |
[APM] 설치 (0) | 2015.06.18 |
Warning: implode() [function.implode]: Invalid arguments passed in xxx on line xx (0) | 2014.07.25 |
check the manual that corresponds to your MySQL server version for the right syntax to use near (0) | 2014.07.25 |