<?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: Simple Share component, where to put JavaScript? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/simple-share-component-where-to-put-javascript/m-p/231581#M184711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'd like to extend my answer above with a question of my own:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can client-side javascript files be included from a location outside the webapp? At the moment I include them like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;@script type="text/javascript" src="${page.url.context}/components/dashlets/jsFile.js"&amp;gt;&amp;lt;/@script&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to put them in the shared classpath so that they're not overwritten at an upgrade, but still are reachable for the client?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jan 2010 09:18:58 GMT</pubDate>
    <dc:creator>gronfelt</dc:creator>
    <dc:date>2010-01-04T09:18:58Z</dc:date>
    <item>
      <title>Simple Share component, where to put JavaScript?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-share-component-where-to-put-javascript/m-p/231577#M184707</link>
      <description>I have an ordinary webapp built with JavaScript, HTML and CSS, it's function is to connect to a LDAP-server and change the users password.Now I would like to create a Share component out of that app. I've separated the CSS, JS and HTML to different files. Then I created a xml file and named it pwcha</description>
      <pubDate>Mon, 17 Aug 2009 11:35:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-share-component-where-to-put-javascript/m-p/231577#M184707</guid>
      <dc:creator>gronfelt</dc:creator>
      <dc:date>2009-08-17T11:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Share component, where to put JavaScript?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-share-component-where-to-put-javascript/m-p/231578#M184708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've got another issue too: If I put the JS code in the html.ftl-file, the JavaScript seems to work, however, the http request returns an empty string (I checked this with Firebug). If I issue the same HTTP request directly in the browsers adress field the return string is the expected. What could be the cause of that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 12:08:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-share-component-where-to-put-javascript/m-p/231578#M184708</guid>
      <dc:creator>gronfelt</dc:creator>
      <dc:date>2009-08-17T12:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Share component, where to put JavaScript?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-share-component-where-to-put-javascript/m-p/231579#M184709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just curious, did you ever figure this out?&amp;nbsp; I'm a bit confused about where javascript code should go as well and wanted to piggyback off of anything you might've learned as I try to get up the learning curve!&amp;nbsp; Thanks very much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2009 20:50:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-share-component-where-to-put-javascript/m-p/231579#M184709</guid>
      <dc:creator>stevericker</dc:creator>
      <dc:date>2009-12-28T20:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Share component, where to put JavaScript?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-share-component-where-to-put-javascript/m-p/231580#M184710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Client-side javascript code is preferably put in tomcat/webapps/share/components/dashlets for instance, if it's a dashlet, and then included in the head.ftl-file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2010 09:16:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-share-component-where-to-put-javascript/m-p/231580#M184710</guid>
      <dc:creator>gronfelt</dc:creator>
      <dc:date>2010-01-02T09:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Share component, where to put JavaScript?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-share-component-where-to-put-javascript/m-p/231581#M184711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'd like to extend my answer above with a question of my own:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can client-side javascript files be included from a location outside the webapp? At the moment I include them like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;@script type="text/javascript" src="${page.url.context}/components/dashlets/jsFile.js"&amp;gt;&amp;lt;/@script&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to put them in the shared classpath so that they're not overwritten at an upgrade, but still are reachable for the client?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 09:18:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-share-component-where-to-put-javascript/m-p/231581#M184711</guid>
      <dc:creator>gronfelt</dc:creator>
      <dc:date>2010-01-04T09:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Share component, where to put JavaScript?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-share-component-where-to-put-javascript/m-p/231582#M184712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Client-side JavaScript files can be anywhere on the Internet - for example, a "share-extension" folder in webapps/ROOT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2010 09:38:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-share-component-where-to-put-javascript/m-p/231582#M184712</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2010-01-04T09:38:52Z</dc:date>
    </item>
  </channel>
</rss>

