-
// result is 'Success' or 'Error'
-
function callback(result, message) {
-
if (result === 'Error') {
-
console.log('Failed with message ' + message)
-
}
-
else if (result === 'Success') {
-
console.log('Succeeded - message ' + message)
-
}
-
else {
-
console.log('Unknown result')
-
}
-
}
RJM Article Type
Quick Reference