invoke service via JS (success)
Posted: Wed Feb 13, 2013 7:28 pm
is there SUCCESS or COMPLETED events available when invoiking a service manually via JS? what's the syntax?
service_name.execute({});
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
is there SUCCESS or COMPLETED events available when invoiking a service manually via JS? what's the syntax?
service_name.execute({});
Hi Eric,
Yes. Syntax is following:codeservice_name.execute({
success: function( e ) {
//Success handler here
},
error: function( e ) {
//Error handler here
},
complete: function( e ) {
//Complete handler here
},
});/code