Page 1 of 1

invoke service via JS (success)

Posted: Wed Feb 13, 2013 7:28 pm
by Eric5020946

is there SUCCESS or COMPLETED events available when invoiking a service manually via JS? what's the syntax?

service_name.execute({});


invoke service via JS (success)

Posted: Wed Feb 13, 2013 7:36 pm
by Kateryna Grynko

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