Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created December 23, 2015 14:27
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/3a98e45833947b062cb5 to your computer and use it in GitHub Desktop.
Save bjoerntx/3a98e45833947b062cb5 to your computer and use it in GitHub Desktop.
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