<?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 Where to place our custom client side javascript File? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/where-to-place-our-custom-client-side-javascript-file/m-p/296040#M249170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have created a custom javascript file. Which have methods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;myFunction&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; x &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; document&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;forms&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"leadDetasilsform"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"leadName"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;value&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="token function"&gt;alert&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Name must be filled out"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have created a Button in dashlet's ftl file and on this button click i have to call a function.&amp;nbsp;&lt;BR /&gt;How to use/import separate js file for the form validation created in webscript?&lt;/P&gt;&lt;P&gt;At which location should I put my js for the form validation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2016 06:37:11 GMT</pubDate>
    <dc:creator>vikash_patel</dc:creator>
    <dc:date>2016-12-14T06:37:11Z</dc:date>
    <item>
      <title>Where to place our custom client side javascript File?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/where-to-place-our-custom-client-side-javascript-file/m-p/296040#M249170</link>
      <description>Hi,I have created a custom javascript file. Which have methods function myFunction(){ var x = document.forms["leadDetasilsform"]["leadName"].value; if (x == "") { alert("Name must be filled out"); return false; } }‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍I have created a Button in</description>
      <pubDate>Wed, 14 Dec 2016 06:37:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/where-to-place-our-custom-client-side-javascript-file/m-p/296040#M249170</guid>
      <dc:creator>vikash_patel</dc:creator>
      <dc:date>2016-12-14T06:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Where to place our custom client side javascript File?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/where-to-place-our-custom-client-side-javascript-file/m-p/296041#M249171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is up to you where to place the file. You just need to import it with the correct path either via a Surf extension module dependency customisation or a configuration as a form dependency. Maybe you should re-read your certification preparation material, the documentation about writing &lt;A href="http://docs.alfresco.com/5.1/concepts/dev-extensions-share-surf-dashlets.html" rel="nofollow noopener noreferrer"&gt;dashlets&lt;/A&gt;, or some of the &lt;A href="https://github.com/Alfresco/alfresco-sdk-samples/tree/alfresco-51/all-in-one/add-surf-dashlet-and-page-share" rel="nofollow noopener noreferrer"&gt;examples&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;As for hooking in a function for form validation, it completely depends on how you build the form. From your previous questions I assume you are writing a completely custom form without using any of the capabilities that Alfresco already provides, so it is completely up to you...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 11:14:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/where-to-place-our-custom-client-side-javascript-file/m-p/296041#M249171</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-12-14T11:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Where to place our custom client side javascript File?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/where-to-place-our-custom-client-side-javascript-file/m-p/296042#M249172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Axel,&lt;BR /&gt;Now,I am thinking that I would&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&amp;nbsp;have to re-read my&amp;nbsp;certification preparation material again.&lt;BR /&gt;I tried many times to import&amp;nbsp;external js to my ftl file. But i can't get result.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 12:53:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/where-to-place-our-custom-client-side-javascript-file/m-p/296042#M249172</guid>
      <dc:creator>vikash_patel</dc:creator>
      <dc:date>2016-12-14T12:53:48Z</dc:date>
    </item>
  </channel>
</rss>

