Sample.jsp 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <script language="javascript">
  8. function goPopup(){
  9. // 주소검색을 수행할 팝업 페이지를 호출합니다.
  10. // 호출된 페이지(jusopopup.jsp)에서 실제 주소검색URL(http://www.juso.go.kr/addrlink/addrLinkUrl.do)를 호출하게 됩니다.
  11. var pop = window.open("/popup/jusoPopup.jsp","pop","width=570,height=420, scrollbars=yes, resizable=yes");
  12. }
  13. function jusoCallBack(roadFullAddr,roadAddrPart1,addrDetail,roadAddrPart2,engAddr, jibunAddr, zipNo, admCd, rnMgtSn, bdMgtSn){
  14. // 팝업페이지에서 주소입력한 정보를 받아서, 현 페이지에 정보를 등록합니다.
  15. document.form.roadFullAddr.value = roadFullAddr;
  16. document.form.roadAddrPart1.value = roadAddrPart1;
  17. document.form.roadAddrPart2.value = roadAddrPart2;
  18. document.form.addrDetail.value = addrDetail;
  19. document.form.engAddr.value = engAddr;
  20. document.form.jibunAddr.value = jibunAddr;
  21. document.form.zipNo.value = zipNo;
  22. document.form.admCd.value = admCd;
  23. document.form.rnMgtSn.value = rnMgtSn;
  24. document.form.bdMgtSn.value = bdMgtSn;
  25. }
  26. </script>
  27. <title>주소 입력 샘플</title>
  28. </head>
  29. <body>
  30. <form name="form" id="form" method="post">
  31. <input type="button" onClick="goPopup();" value="팝업_domainChk"/>
  32. <div id="list"></div>
  33. <div id="callBackDiv">
  34. <table>
  35. <tr><td>도로명주소 전체(포멧)</td><td><input type="text" style="width:500px;" id="roadFullAddr" name="roadFullAddr" /></td></tr>
  36. <tr><td>도로명주소 </td><td><input type="text" style="width:500px;" id="roadAddrPart1" name="roadAddrPart1" /></td></tr>
  37. <tr><td>고객입력 상세주소 </td><td><input type="text" style="width:500px;" id="addrDetail" name="addrDetail" /></td></tr>
  38. <tr><td>참고주소 </td><td><input type="text" style="width:500px;" id="roadAddrPart2" name="roadAddrPart2" /></td></tr>
  39. <tr><td>영문 도로명주소 </td><td><input type="text" style="width:500px;" id="engAddr" name="engAddr" /></td></tr>
  40. <tr><td>지번 </td><td><input type="text" style="width:500px;" id="jibunAddr" name="jibunAddr" /></td></tr>
  41. <tr><td>우편번호 </td><td><input type="text" style="width:500px;" id="zipNo" name="zipNo" /></td></tr>
  42. <tr><td>행정구역코드 </td><td><input type="text" style="width:500px;" id="admCd" name="admCd" /></td></tr>
  43. <tr><td>도로명코드 </td><td><input type="text" style="width:500px;" id="rnMgtSn" name="rnMgtSn" /></td></tr>
  44. <tr><td>건물관리번호 </td><td><input type="text" style="width:500px;" id="bdMgtSn" name="bdMgtSn" /></td></tr>
  45. </table>
  46. </div>
  47. </form>
  48. </body>
  49. </html>