tford wroteHow did you accomplish it, Bruce?
Rachel did NOT need any results sent back, so this works:
EXEC_SCRIPT $.ajax({
type: 'POST',
url: 'http://localhost:3301/printOrderAck',
contentType: 'application/json',
data: JSON.stringify({
option : 'email',
orderNo : + LoggedInRegularUser.lastOrderNumber + ,
outputFile : 'orderAck.pdf',
email : 'bruce@bruceL.com'
}),
dataType: 'text',
success: function( response ){
console.log( response);
},
error: function( error ){
// Log any error.
console.error( 'ERROR:', error );
},
});