<?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: can i use javascript file with aikau page in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/can-i-use-javascript-file-with-aikau-page/m-p/284177#M237307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use javascript, even jQuery also can be used. You have one js file associated with your aiku widget where you can place your js logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Checkout this latest blog from Dave. &lt;A href="https://migration33.stage.lithium.com/" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Nov 2016 07:18:55 GMT</pubDate>
    <dc:creator>mitpatoliya</dc:creator>
    <dc:date>2016-11-04T07:18:55Z</dc:date>
    <item>
      <title>can i use javascript file with aikau page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-i-use-javascript-file-with-aikau-page/m-p/284176#M237306</link>
      <description>Hi,can i use javascript file with aikau page as like dashlet javascript file in aikau dashelt?Regardsjanaka</description>
      <pubDate>Fri, 04 Nov 2016 05:59:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-i-use-javascript-file-with-aikau-page/m-p/284176#M237306</guid>
      <dc:creator>janaka1984</dc:creator>
      <dc:date>2016-11-04T05:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: can i use javascript file with aikau page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-i-use-javascript-file-with-aikau-page/m-p/284177#M237307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use javascript, even jQuery also can be used. You have one js file associated with your aiku widget where you can place your js logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Checkout this latest blog from Dave. &lt;A href="https://migration33.stage.lithium.com/" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 07:18:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-i-use-javascript-file-with-aikau-page/m-p/284177#M237307</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2016-11-04T07:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: can i use javascript file with aikau page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-i-use-javascript-file-with-aikau-page/m-p/284178#M237308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Mittal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i read this blog from dave. i can use one common js file with aikau widget. but i have doubt whether we can use common JS to put logic.&lt;/P&gt;&lt;P&gt;Also extended custom widget (it contain following content )&amp;nbsp; does use to manage custom widget and logic that is specific to widget&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;define(["dojo/_base/declare",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/_WidgetBase",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "alfresco/core/Core",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/_TemplatedMixin",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/text!./HelloWorldTextWidget.html"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function(declare, _Widget, Core, _Templated, template) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return declare([_Widget, Core, _Templated], {&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 11:21:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-i-use-javascript-file-with-aikau-page/m-p/284178#M237308</guid>
      <dc:creator>janaka1984</dc:creator>
      <dc:date>2016-11-04T11:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: can i use javascript file with aikau page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-i-use-javascript-file-with-aikau-page/m-p/284179#M237309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Each widget defines the specific JS modules that it is dependent upon. So in that example the widget is dependent upon:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;dojo/_base/declare&lt;/LI&gt;&lt;LI&gt;dijit/_WidgetBase&lt;/LI&gt;&lt;LI&gt;alfresco/core/Core&lt;/LI&gt;&lt;LI&gt;dijit/_TemplatedMixin&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each of those JS files can declare their own dependencies. Surf will calculate the dependency tree for all widgets on the page and ensure that they are included in a single resource requested by the page when it is loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is nothing to stop any of the resources being shared between widgets - however, in the AMD pattern (and indeed any module based architecture) the widget needs to declare its dependencies in order to have access to them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this does not stop the widget from having access to any JavaScript code that is available at the global scope. However, it is more efficient to use a modular pattern because you only load the resources required for the page and therefore improve page performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 11:42:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-i-use-javascript-file-with-aikau-page/m-p/284179#M237309</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2016-11-04T11:42:28Z</dc:date>
    </item>
  </channel>
</rss>

