<?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 Should I use JQuery in the client-side javascripts? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/should-i-use-jquery-in-the-client-side-javascripts/m-p/303695#M256825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently using JQuery in the client-side javascript files for the Share webscripts.The JQuery reference was added in the .ftl file of the webscript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;@markup id="js"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;#– JavaScript Dependencies –&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;@script src="${url.context}/res/jquery/jquery-1.10.2.min.js" group="myGroup"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;@script src="${url.context}/res/jquery/jquery-ui-1.10.4.custom.min.js" group="myGroup"/&amp;gt;&lt;BR /&gt;&amp;lt;/@&amp;gt;&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;/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;BR /&gt;&lt;SPAN&gt;It works fine so far but I'm also aware that Share was using YUI for its client-side javascript. So it will be grateful if anyone can help with my following questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Should I learn YUI and use it instead of JQuery in my own javascript?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. If so, which version of YUI should I look at?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. If not, it there a way to import JQuery as a global object so it doesn't need to import in every .ftl template file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sun&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 May 2014 09:09:07 GMT</pubDate>
    <dc:creator>sunquanbin</dc:creator>
    <dc:date>2014-05-27T09:09:07Z</dc:date>
    <item>
      <title>Should I use JQuery in the client-side javascripts?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/should-i-use-jquery-in-the-client-side-javascripts/m-p/303695#M256825</link>
      <description>Hi All,I'm currently using JQuery in the client-side javascript files for the Share webscripts.The JQuery reference was added in the .ftl file of the webscript:&amp;lt;@markup id="js"&amp;gt;&amp;nbsp;&amp;nbsp; &amp;lt;#– JavaScript Dependencies –&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;@script src="${url.context}/res/jquery/jquery-1.10.2.min.js" group="</description>
      <pubDate>Tue, 27 May 2014 09:09:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/should-i-use-jquery-in-the-client-side-javascripts/m-p/303695#M256825</guid>
      <dc:creator>sunquanbin</dc:creator>
      <dc:date>2014-05-27T09:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use JQuery in the client-side javascripts?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/should-i-use-jquery-in-the-client-side-javascripts/m-p/303696#M256826</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;I think that you should keep using JQuery since AFAIK Alfresco is going to progressively replace YUI by dojo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Concerning the import of JQuery, perhaps the best way is to override resources.get web script (in particular the resources.get.html.ftl).&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 15:51:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/should-i-use-jquery-in-the-client-side-javascripts/m-p/303696#M256826</guid>
      <dc:creator>mlagneaux</dc:creator>
      <dc:date>2014-05-27T15:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Should I use JQuery in the client-side javascripts?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/should-i-use-jquery-in-the-client-side-javascripts/m-p/303697#M256827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It appears to be a common misconception that YUI is going to be replaced by Dojo. Alfresco has developed a new UI framework (with the project name "Aikau") which is based around the concept of AMD (asynchronous module definition). It is true that the Dojo AMD loader is being used and that we are creating widgets that are based on the Dojo widget templates, however it is completely untrue to say that we will use Dojo over and above any other JavaScript toolkit. The purpose of Aikau is not to tie ourselves to any specific toolkit and we are using YUI2, JQuery, Dojo, TinyMCE&amp;nbsp; and other 3rd party JavaScript libraries in our new widgets. We intend to use the best tool for the job in all cases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would recommend that you use whatever JavaScript framework that you're comfortable with and that solves your problems, but above everything else you should have a good understanding of pure JavaScript. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 18:39:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/should-i-use-jquery-in-the-client-side-javascripts/m-p/303697#M256827</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2014-05-27T18:39:41Z</dc:date>
    </item>
  </channel>
</rss>

