<< Click to Display Table of Contents >>

OZUserActionCommand > RequestAddress

OZUserActionCommand의 type 중 RequestAddress는 주소 검색 창에서 검색 버튼을 클릭하거나 페이지 이동 버튼을 클릭할 때 발생하며, 리턴되는 attr은 다음과 같습니다.

attr

설명

addresstype

주소 타입(string)

keyword

검색어(string)

keyword_detail

상세 검색어(string)

pagenum

주소 검색 결과 페이지 번호(int). One-Based Index

requestcount

검색 결과 목록에서 한 페이지당 표시된 주소 개수(int)

Example

...

function OZUserActionCommand_OZViewer(type, attr) {

   var MyObj = eval('(' + attr + ')');

   if(type == "RequestAddress") {

       if(MyObj.pagenum == 1) {

          //1페이지에 표시할 주소 5건

          OZViewer.Script("update_address_info={"address":{"totalcount":검색된 주소 개수,"pagenum":1,"requestcount":5,"items":["첫번째 주소",...,"다섯번째 주소"]}}");

       } else if(MyObj.pagenum == 2) {

           ...

       }

       ...

   }

}

...