AsyncURLStatus

From Svg wiki

Interface AsyncStatusCallback

Object that gets notified when asynchronious action completes. In JavaScript, any JavaScript function can be used as an instance of this interface. Right now it is used only by postURL and getURL methods, which will call it with a parameter of type viewer::AsyncURLStatus (which is derived from viewer::AsyncStatus). Alternately, one can use any JavaScript object that implements the operationComplete method as an instance of this interface.

Here is some sample code:

function MyObj(msg) { this.msg = msg }
MyObj.prototype.operationComplete = function(status){
 alert(this.msg+" "+status);
}
getURL( "myurl.txt", new MyObj("My message") )

Method operationComplete

Synopsis:

void operationComplete(viewer::AsyncURLStatus status)

Notification that asynchronious operation is complete. Parameter provides additional details about operation.