Created
July 3, 2018 09:15
-
-
Save bjoerntx/a7a00ea3546785db60d8d7b13d6dfdf2 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 LoadDocument(filename) { | |
$('.alert').show(); | |
var bDocument; | |
var serviceURL = "@Url.Action("LoadDocument", "TX")"; | |
// send document to controller | |
$.ajax({ | |
type: "GET", | |
url: serviceURL, | |
data: { | |
filename: filename | |
}, | |
success: successFunc, | |
error: errorFunc | |
}); | |
} | |
function successFunc(data, status) { | |
TXDocumentViewer.loadDocument(data, "loaded.tx"); | |
TXDocumentViewer.toggleSidebar(); | |
$('.alert').hide(); | |
} | |
function errorFunc() { | |
alert("Error"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment