setEventHandlerCallbackResponse(String callbackId, String response)
Sets the response for an event callbackId that was retrieved by using
the getEventHandlerCallbackId method.
Important: If an event callback function is retrieved but is not responded to, the
callback function remains in memory.
Response values are specific to the event type. For information about valid response values, see the events descriptions.
Sample syntax
Use this method with the getEventHandlerCallbackId method as shown in the
following example.
<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>