Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created August 26, 2021 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/83c0432e703a5b98f573b3a6f6213609 to your computer and use it in GitHub Desktop.
Save bjoerntx/83c0432e703a5b98f573b3a6f6213609 to your computer and use it in GitHub Desktop.
TXDocumentViewer.setSubmitCallback(saveSignedDocument);
function saveSignedDocument(e) {
var serviceURL = "@Url.Action("SaveSignedDocument", "TX")";
// send document to controller
$.ajax({
type: "POST",
url: serviceURL,
data: {
document: e.document
},
success: successFunc,
error: errorFunc
});
function successFunc(data, status) {
alert("Thanks");
}
function errorFunc(data, status) {
console.log(data);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment