<?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: Add event listener to custom action in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/add-event-listener-to-custom-action/m-p/294898#M248028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is both true and false - I want to creat a custom action -yes- but here I have to overlay the *html element* which gets rendered "onload" (I can't imagine this is achieved by pure configuration?). The javascript class for custom actions are executed only when the user clicks the action but I have to execute some javascript while the page gets loaded - to overlay the flash object on top of the "button" which source code looks like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;// browser source code of the default "delete document" action&lt;BR /&gt;&amp;lt;span id="yui-gen188"&amp;gt;Delete Document&amp;lt;/span&amp;gt;&lt;BR /&gt;&lt;BR /&gt;// so for this example I have to execute the following code while the page gets loaded (during the "onload" event of the page)&lt;BR /&gt;// this will define the listener and its properties to save to the client's system clipboard&lt;BR /&gt;new zcProto("yui-gen188", nodes[node].nodeRef);&lt;BR /&gt;&lt;BR /&gt;// if the user than clicks on the button in reality the user clicks the invisible flash object on top of the button which triggers the listener&lt;BR /&gt;// which will save the node's nodeRef to the clipoard (or any other properties of the node)&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;/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;I also have to access the node's properties because the action should automatically save some properties in the client's system clipboard, see ZeroClipboard (&lt;/SPAN&gt;&lt;A href="https://github.com/zeroclipboard/zeroclipboard" rel="nofollow noopener noreferrer"&gt;https://github.com/zeroclipboard/zeroclipboard&lt;/A&gt;&lt;SPAN&gt;). If I would put this code into the action's javascript file the user would have to click the action at least 2 times &amp;gt; 1. time the flash object gets rendered over the button 2. time the flash object's listener loads the content to the clipboard.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a bit more complex I think &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Feb 2015 07:28:00 GMT</pubDate>
    <dc:creator>michaelp</dc:creator>
    <dc:date>2015-02-20T07:28:00Z</dc:date>
    <item>
      <title>Add event listener to custom action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-event-listener-to-custom-action/m-p/294896#M248026</link>
      <description>Hi guys,I am looking for the right javascript file in which the actions are created for each node presented in the document library.What I want to do: for each action "custom copy" on the document library I want to add an event listener like:var newEventListenerX = new zcProto(YUI-ID, record.jsNode.</description>
      <pubDate>Tue, 17 Feb 2015 09:42:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-event-listener-to-custom-action/m-p/294896#M248026</guid>
      <dc:creator>michaelp</dc:creator>
      <dc:date>2015-02-17T09:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Add event listener to custom action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-event-listener-to-custom-action/m-p/294897#M248027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As I understood you want to create custom action in document library. If this is true then you do it by incorrect way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco has great functional to add custom actions to the&amp;nbsp; document library. Take a look at the following post &lt;/SPAN&gt;&lt;A href="http://www.marversolutions.com/wordpress/2012/04/15/adding-document-library-actions-in-alfresco-4-0/" rel="nofollow noopener noreferrer"&gt;http://www.marversolutions.com/wordpress/2012/04/15/adding-document-library-actions-in-alfresco-4-0/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 09:56:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-event-listener-to-custom-action/m-p/294897#M248027</guid>
      <dc:creator>s_palyukh</dc:creator>
      <dc:date>2015-02-19T09:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Add event listener to custom action</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-event-listener-to-custom-action/m-p/294898#M248028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is both true and false - I want to creat a custom action -yes- but here I have to overlay the *html element* which gets rendered "onload" (I can't imagine this is achieved by pure configuration?). The javascript class for custom actions are executed only when the user clicks the action but I have to execute some javascript while the page gets loaded - to overlay the flash object on top of the "button" which source code looks like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;// browser source code of the default "delete document" action&lt;BR /&gt;&amp;lt;span id="yui-gen188"&amp;gt;Delete Document&amp;lt;/span&amp;gt;&lt;BR /&gt;&lt;BR /&gt;// so for this example I have to execute the following code while the page gets loaded (during the "onload" event of the page)&lt;BR /&gt;// this will define the listener and its properties to save to the client's system clipboard&lt;BR /&gt;new zcProto("yui-gen188", nodes[node].nodeRef);&lt;BR /&gt;&lt;BR /&gt;// if the user than clicks on the button in reality the user clicks the invisible flash object on top of the button which triggers the listener&lt;BR /&gt;// which will save the node's nodeRef to the clipoard (or any other properties of the node)&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;/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;I also have to access the node's properties because the action should automatically save some properties in the client's system clipboard, see ZeroClipboard (&lt;/SPAN&gt;&lt;A href="https://github.com/zeroclipboard/zeroclipboard" rel="nofollow noopener noreferrer"&gt;https://github.com/zeroclipboard/zeroclipboard&lt;/A&gt;&lt;SPAN&gt;). If I would put this code into the action's javascript file the user would have to click the action at least 2 times &amp;gt; 1. time the flash object gets rendered over the button 2. time the flash object's listener loads the content to the clipboard.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a bit more complex I think &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 07:28:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-event-listener-to-custom-action/m-p/294898#M248028</guid>
      <dc:creator>michaelp</dc:creator>
      <dc:date>2015-02-20T07:28:00Z</dc:date>
    </item>
  </channel>
</rss>

