setCallback()
Sets the callback function that is executed after an Apex action returns.
setCallback (Object scope, function callback, String name)
scope: Type: Object. The scope in which the function is executed. Always set this parameter to the keyword this.
callback: Type: function. The callback to invoke after the Apex action returns.
name: Type: String. Defaults to “ALL” which registers callbacks for the “SUCCESS”, “ERROR”, and “INCOMPLETE” states.
See Also