<?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: Form controls javascript and messages in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/form-controls-javascript-and-messages/m-p/297713#M250843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately as far as I know the answer is no you can't do that.&amp;nbsp; I have looked into it a bit myself so let me give you my reason for thinking so.&amp;nbsp; The way Alfresco includes dynamic forms (like the popup controls) is to dynamically include the form when requested (which is exactly what you want).&amp;nbsp; When you do this script tags are not automatically executed so to ensure the scripts get executed Alfresco strips the script tags out of the generated HTML and executes the scripts.&amp;nbsp; Unfortunately this means that any objects or classes created in those scripts won't be available in the main context.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wish I could remember where I found the code that does the stripping.&amp;nbsp; It was probably somewhere in alfresco.js but it could have been in form.js or form-runtime.js as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps answer your question.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jul 2013 13:08:21 GMT</pubDate>
    <dc:creator>eamell</dc:creator>
    <dc:date>2013-07-10T13:08:21Z</dc:date>
    <item>
      <title>Form controls javascript and messages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-controls-javascript-and-messages/m-p/297712#M250842</link>
      <description>Hi,We are developping a lot of form controls is there a way to include javascript and css only when the control are present in the form idem for i18n javascript keys ?Today we are using&amp;nbsp; &amp;lt;config&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;forms&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;dependencies&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;css src="/modules/custom-autocomple</description>
      <pubDate>Wed, 10 Jul 2013 09:56:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-controls-javascript-and-messages/m-p/297712#M250842</guid>
      <dc:creator>matthieulaborie</dc:creator>
      <dc:date>2013-07-10T09:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Form controls javascript and messages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-controls-javascript-and-messages/m-p/297713#M250843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately as far as I know the answer is no you can't do that.&amp;nbsp; I have looked into it a bit myself so let me give you my reason for thinking so.&amp;nbsp; The way Alfresco includes dynamic forms (like the popup controls) is to dynamically include the form when requested (which is exactly what you want).&amp;nbsp; When you do this script tags are not automatically executed so to ensure the scripts get executed Alfresco strips the script tags out of the generated HTML and executes the scripts.&amp;nbsp; Unfortunately this means that any objects or classes created in those scripts won't be available in the main context.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wish I could remember where I found the code that does the stripping.&amp;nbsp; It was probably somewhere in alfresco.js but it could have been in form.js or form-runtime.js as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps answer your question.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 13:08:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-controls-javascript-and-messages/m-p/297713#M250843</guid>
      <dc:creator>eamell</dc:creator>
      <dc:date>2013-07-10T13:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Form controls javascript and messages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-controls-javascript-and-messages/m-p/297714#M250844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It answers my question, alfresco should consider refactoring it to make a bit more modular. Anyway if I want to achieved it I should remove the stripping codes or leave all the controls js's included in all my pages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 09:57:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-controls-javascript-and-messages/m-p/297714#M250844</guid>
      <dc:creator>matthieulaborie</dc:creator>
      <dc:date>2013-07-11T09:57:00Z</dc:date>
    </item>
  </channel>
</rss>

