<< Click to Display Table of Contents >>

OZUserActionCommand > Open

OZUserActionCommand의 type 중 Open은 OZD 파일을 열 때 발생하며, 리턴되는 attr은 다음과 같습니다.

attr

설명

code

OZD 파일 열기 여부(string)

filename

OZD 파일 이름(string)

path

OZD 파일 경로(string)

Reference

HTML5 뷰어의 경우 "path"는 공백으로 리턴됩니다.

Example

...

function OZUserActionCommand_OZViewer(type, attr) {

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

   if(type == "Open") {

       alert(MyObj.code);

       ...

   }

}

...