Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created September 6, 2021 09:47
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/d2bf1689a94c531e918444248b03ff32 to your computer and use it in GitHub Desktop.
Save bjoerntx/d2bf1689a94c531e918444248b03ff32 to your computer and use it in GitHub Desktop.
var bDocument;
var serviceURL = "@Url.Action("CreateForm", "Home")";
// save document
TXTextControl.saveDocument(TXTextControl.StreamType.InternalUnicodeFormat, function (e) {
bDocument = e.data;
// send document to controller
$.ajax({
type: "POST",
url: serviceURL,
data: {
document: e.data
},
success: successFunc,
error: errorFunc
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment