Embed TS in other sites
Jump to navigation
Jump to search
To embed the output of a public codeunit, on another website, the following code can be used.
<div id="tsContent"></div>
<script type="text/javascript">
$.ajax({
url: 'https://[SYSTEM-DOMAIN]/[APP-NAME]/mainpublic?command=[CODEUNIT-NAME]]',
success: function(data) {
$('#tsContent').html($(data).find(".mainContent").html());
},
});
</script>
It requires jQuery to be loaded beforehand.