<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Include other webscripts inside current webscript (javascrip in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/include-other-webscripts-inside-current-webscript-javascrip/m-p/266419#M219549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everybody;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My current application setup requires I have 1 main controlling webscript which routes request to the appropriate webscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been using the following code to hit other webscript through the remote object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var connector = remote.connect('http');&lt;BR /&gt;var response = connector.get(controllerUrl);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Than I process the response.&amp;nbsp; This works but has many issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;issues:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - HTTP session seems to be seperate even though they are on the same domain and using same protocall.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - the model object is not the same (different webscript so it makes sense).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There must be a way to include other webscript without calling them through the Remote object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Another solution that I've implimented for the time being is making 1 Controller Webscript and have the other webscript just JS files that get included.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2012 16:42:32 GMT</pubDate>
    <dc:creator>techyguy</dc:creator>
    <dc:date>2012-05-02T16:42:32Z</dc:date>
    <item>
      <title>Include other webscripts inside current webscript (javascrip</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/include-other-webscripts-inside-current-webscript-javascrip/m-p/266419#M219549</link>
      <description>Hello everybody;My current application setup requires I have 1 main controlling webscript which routes request to the appropriate webscript.I've been using the following code to hit other webscript through the remote object.var connector = remote.connect('http');var response = connector.get(controll</description>
      <pubDate>Wed, 02 May 2012 16:42:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/include-other-webscripts-inside-current-webscript-javascrip/m-p/266419#M219549</guid>
      <dc:creator>techyguy</dc:creator>
      <dc:date>2012-05-02T16:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Include other webscripts inside current webscript (javascrip</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/include-other-webscripts-inside-current-webscript-javascrip/m-p/266420#M219550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;at the moment your way is the only way for dynamic inclusion of other JavaScript. There is an import directive but this is a static preprocessor directive unable to react to your dynamic evaluations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have recently submitted a contribution which allows for dynamic import of JavaScript - see &lt;/SPAN&gt;&lt;A href="http://axel-faust.de/?p=75&amp;amp;lang=en" rel="nofollow noopener noreferrer"&gt;my blog post&lt;/A&gt;&lt;SPAN&gt; for details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 07:16:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/include-other-webscripts-inside-current-webscript-javascrip/m-p/266420#M219550</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-05-03T07:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Include other webscripts inside current webscript (javascrip</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/include-other-webscripts-inside-current-webscript-javascrip/m-p/266421#M219551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;a&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 15:31:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/include-other-webscripts-inside-current-webscript-javascrip/m-p/266421#M219551</guid>
      <dc:creator>drozes</dc:creator>
      <dc:date>2012-05-03T15:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Include other webscripts inside current webscript (javascrip</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/include-other-webscripts-inside-current-webscript-javascrip/m-p/266422#M219552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regardless of what import mechanism you use - if your controller web script is on Share and the web scripts you want to include are in the Repository, you have to call them via the remote object. There is no way around that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I overlooked this potential use / motivation in my first read-through of your question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 16:57:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/include-other-webscripts-inside-current-webscript-javascrip/m-p/266422#M219552</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-05-03T16:57:14Z</dc:date>
    </item>
  </channel>
</rss>

