<?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 Re: a problem with javascript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/a-problem-with-javascript/m-p/231921#M185051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you find the solution to call external Servlet service from Alfresco scripts (either server side javascript or using custom actions?) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please share if you have relevant info, I'm looking for a similar solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &amp;amp; regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mourougan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Aug 2011 05:05:09 GMT</pubDate>
    <dc:creator>mourougan</dc:creator>
    <dc:date>2011-08-29T05:05:09Z</dc:date>
    <item>
      <title>a problem with javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-problem-with-javascript/m-p/231918#M185048</link>
      <description>Hello ,im a begginer in alfresco 3.2r ,my task is to creat a content rule over a space , when i add a new document into the space ,a script(javascript) must be executed ,this JS must call a web application (either applet ,jsp or servlet) that handle a java class managing research over the document a</description>
      <pubDate>Tue, 27 Jul 2010 09:36:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-problem-with-javascript/m-p/231918#M185048</guid>
      <dc:creator>donnie</dc:creator>
      <dc:date>2010-07-27T09:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: a problem with javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-problem-with-javascript/m-p/231919#M185049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It sounds like you are writing a rule action that triggers some JavaScript. That JavaScript needs to invoke a service (a servlet) running elsewhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JavaScript that runs on the Alfresco server from the Scripts directory is server-side JavaScript. The sample you pasted in looks like client-side JavaScript (I see HTML tags and a window.document.write call).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should look at the other scripts in the Scripts directory as well as the JavaScript API page on the wiki (&lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API&lt;/A&gt;&lt;SPAN&gt;) for examples of what's possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your case, you need to open a connection over the network to invoke a service running somewhere else. For that, I think your best bet is to forget JavaScript and instead use a Java-based Action Executor that does this using standard HTTP commons libraries. See &lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/images/articles/alfresco-actions/actions-article.pdf" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/images/articles/alfresco-actions/actions-article.pdf&lt;/A&gt;&lt;SPAN&gt; for a tutorial on writing custom Java actions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 16:19:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-problem-with-javascript/m-p/231919#M185049</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2010-07-27T16:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: a problem with javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-problem-with-javascript/m-p/231920#M185050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;jeff ,thanks for the replay ,i will try this ,and im gonna let u know&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 19:44:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-problem-with-javascript/m-p/231920#M185050</guid>
      <dc:creator>donnie</dc:creator>
      <dc:date>2010-07-27T19:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: a problem with javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-problem-with-javascript/m-p/231921#M185051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you find the solution to call external Servlet service from Alfresco scripts (either server side javascript or using custom actions?) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please share if you have relevant info, I'm looking for a similar solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &amp;amp; regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mourougan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 05:05:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-problem-with-javascript/m-p/231921#M185051</guid>
      <dc:creator>mourougan</dc:creator>
      <dc:date>2011-08-29T05:05:09Z</dc:date>
    </item>
  </channel>
</rss>

