Last active
October 19, 2022 14:09
-
-
Save bjoerntx/e7d4a69c97fcbcb5847a787b76a1b9a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function storeAnnotations() { | |
var annotations = TXDocumentViewer.annotations.export(); | |
var obj = JSON.parse(annotations); | |
var serviceURL = '@Url.Action("MergeAnnotations", "Home")'; | |
$.ajax({ | |
type: 'POST', | |
url: serviceURL, | |
contentType: 'application/json', | |
dataType: 'json', | |
data: JSON.stringify(obj), | |
success: successFunc, | |
error: errorFunc | |
}); | |
function successFunc(data, status) { | |
TXDocumentViewer.loadDocument(data.data, 'results.tx'); | |
} | |
function errorFunc() { | |
alert('error'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment