getEventHandlerCallbackId()

This method returns the callback ID that the IBM Daeja ViewONE instance has specified.

Sample syntax

Use this method with the setEventHandlerCallbackResponse method as shown in the following example. The setEventHandlerCallbackResponse method sets the callback response for the callback specified by this API call.

<script type="text/javascript">function exfunc()
  {
    var callbackId = ViewONE.getEventHandlerCallbackId();

    //do something synchronously or asynchronously and then 
    //respond to the viewer.

    ViewONE.setEventHandlerCallbackResponse(callbackId, "OK");
  }
</script>