<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tsnocode.dev/index.php?action=history&amp;feed=atom&amp;title=Embed_TS_in_other_sites</id>
	<title>Embed TS in other sites - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tsnocode.dev/index.php?action=history&amp;feed=atom&amp;title=Embed_TS_in_other_sites"/>
	<link rel="alternate" type="text/html" href="https://wiki.tsnocode.dev/index.php?title=Embed_TS_in_other_sites&amp;action=history"/>
	<updated>2026-04-11T15:59:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.0</generator>
	<entry>
		<id>https://wiki.tsnocode.dev/index.php?title=Embed_TS_in_other_sites&amp;diff=7235&amp;oldid=prev</id>
		<title>Tvi: Created page with &quot;To embed the output of a public codeunit, on another website, the following code can be used.&lt;syntaxhighlight lang=&quot;html&quot;&gt; &lt;div id=&quot;tsContent&quot;&gt;&lt;/div&gt; &lt;script type=&quot;text/javascript&quot;&gt;     $.ajax({         url: 'https://[SYSTEM-DOMAIN]/[APP-NAME]/mainpublic?command=[CODEUNIT-NAME]]',         success: function(data) {             $('#tsContent').html($(data).find(&quot;.mainContent&quot;).html());         },     }); &lt;/script&gt; &lt;/syntaxhighlight&gt;It requires jQuery to be loaded beforehand.&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.tsnocode.dev/index.php?title=Embed_TS_in_other_sites&amp;diff=7235&amp;oldid=prev"/>
		<updated>2025-01-21T14:09:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;To embed the output of a public codeunit, on another website, the following code can be used.&amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot;&amp;gt; &amp;lt;div id=&amp;quot;tsContent&amp;quot;&amp;gt;&amp;lt;/div&amp;gt; &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;     $.ajax({         url: &amp;#039;https://[SYSTEM-DOMAIN]/[APP-NAME]/mainpublic?command=[CODEUNIT-NAME]]&amp;#039;,         success: function(data) {             $(&amp;#039;#tsContent&amp;#039;).html($(data).find(&amp;quot;.mainContent&amp;quot;).html());         },     }); &amp;lt;/script&amp;gt; &amp;lt;/syntaxhighlight&amp;gt;It requires jQuery to be loaded beforehand.&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;To embed the output of a public codeunit, on another website, the following code can be used.&amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;tsContent&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;
    $.ajax({&lt;br /&gt;
        url: 'https://[SYSTEM-DOMAIN]/[APP-NAME]/mainpublic?command=[CODEUNIT-NAME]]',&lt;br /&gt;
        success: function(data) {&lt;br /&gt;
            $('#tsContent').html($(data).find(&amp;quot;.mainContent&amp;quot;).html());&lt;br /&gt;
        },&lt;br /&gt;
    });&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;It requires jQuery to be loaded beforehand.&lt;/div&gt;</summary>
		<author><name>Tvi</name></author>
	</entry>
</feed>