<< Click to Display Table of Contents >>

OZUserActionCommand > Open

OZUserActionCommandのtype中OpenはOZDファイルを開く時に発生し、返されるattrは次の通りです。

attr

説明

code

オープAンコード(string)

filename

OZDファイル名(string)

path

OZDファイルパス(string)

Reference

HTML5 Viewerの場合、"path"は空白で返されます。

Example

...

function OZUserActionCommand_OZViewer(type, attr) {

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

   if(type == "Open") {

       alert(MyObj.code);

       ...

   }

}

...