Created
January 6, 2016 17:11
-
-
Save bjoerntx/d931af107f02e37264b8 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 LoadFromController(DocumentName) { | |
var serviceURL = "/Home/LoadTemplate"; | |
$.ajax({ | |
type: "POST", | |
url: serviceURL, | |
contentType: 'application/json', | |
data: JSON.stringify({ | |
DocumentName: DocumentName | |
}), | |
success: successFunc, | |
error: errorFunc | |
}); | |
function successFunc(data, status) { | |
TXTextControl.loadDocument( | |
TXTextControl.streamType.InternalUnicodeFormat, data); | |
animateBackstage(1); | |
} | |
function errorFunc() { | |
alert('File could not be loaded'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment