다음 주소 입력 관련해서 문의 드립니다.
본문
adm 페이지에서 다음 우편번호 주소검색을 이용해서 주소검색을 넣으려고 합니다.
add_javascript(G5_POSTCODE_JS, 0);
이걸 이용해서 넣으려고 하는데 스크립트 에러가 나타나네요.
코드는
<tr>
<th scope="row"><label for="wr_4">주소</label></th>
<td>
<label for="ex_zip" class="sound_only">우편번호</label>
<input type="text" name="ex_zip" value="<?php echo $ex_zip; ?>" id="ex_zip" class="frm_input" size="6" maxlength="6">
<button type="button" class="btn_frmline" onclick="win_zip('fwrite', 'ex_zip', 'ex_addr1', 'ex_addr2', 'ex_addr3', 'ex_jibeon');">주소 검색</button><br>
<input type="text" name="ex_addr1" id="ex_addr1" value="<?php echo $ex_addr1; ?>" class="frm_input frm_address" maxlength="255" size="50" onBlur="getLByAddress(this.value);">
<!-- <input type="text" name="ex_addr1" value="<?php echo $ex_addr1; ?>" id="ex_addr1" class="frm_input frm_address" size="50"> -->
<label for="ex_addr1">기본주소</label><br>
<input type="text" name="ex_addr2" value="<?php echo $ex_addr2; ?>" id="ex_addr2" class="frm_input frm_address" size="50">
<label for="ex_addr2">상세주소</label>
<br>
<input type="text" name="ex_addr3" value="<?php echo $ex_addr3; ?>" id="ex_addr3" class="frm_input frm_address" size="50" readonly="readonly">
<label for="ex_addr3">참고항목</label>
<input type="hidden" name="ex_jibeon" value="<?php echo $ex_jibeon; ?>">
</td>
</tr>
이렇게 하였습니다.
나타나는 스크립트 오류 문구는
Uncaught TypeError: Cannot read property 'document' of null
at l (200117.js:1)
at 200117.js:1
이렇게 나타나는데 혹시 이런경우는 어떤게 문제 인가요?