Created
December 23, 2015 14:27
-
-
Save bjoerntx/3a98e45833947b062cb5 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 getTableFromController(cols, rows) { | |
var serviceURL = "/Home/GetTableFromController"; | |
$.ajax({ | |
type: "POST", | |
url: serviceURL, | |
contentType: 'application/json', | |
data: JSON.stringify({ | |
Columns: cols, | |
Rows: rows | |
}), | |
success: successFunc, | |
error: errorFunc | |
}); | |
function successFunc(data, status) { | |
TXTextControl.loadSelection(TXTextControl.streamType.InternalUnicodeFormat, data); | |
} | |
function errorFunc() { | |
alert('Error'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment