<?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: execute javascript directly on JSP in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/execute-javascript-directly-on-jsp/m-p/111091#M78089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;…I've just read the title of your post &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; You can't execute Alfresco JavaScript within a JSP and expect it to work…! As i said earlier - the browser JavaScript API is very different to ours.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jun 2007 12:35:22 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2007-06-06T12:35:22Z</dc:date>
    <item>
      <title>execute javascript directly on JSP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execute-javascript-directly-on-jsp/m-p/111089#M78087</link>
      <description>Hi,I try this, to get the person first name, in javascript …&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var name = person.properties.FirstName;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write(name);but the variavle person is not defined…. &lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ops: can someone give me a litle help here….thanks very much!</description>
      <pubDate>Wed, 06 Jun 2007 09:26:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execute-javascript-directly-on-jsp/m-p/111089#M78087</guid>
      <dc:creator>ze</dc:creator>
      <dc:date>2007-06-06T09:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: execute javascript directly on JSP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execute-javascript-directly-on-jsp/m-p/111090#M78088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are two things wrong with your script, firstly JavaScript and the Alfresco JavaScript API are case sensitive - so the property name is wrong, you need:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; var name = person.properties.firstName;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;also the document.write(…) will not work - the document.write() function is part of the web browser JavaScript extensions - the Alfresco javascript engine is pure JavaScript 1.6 with our Alfresco extensions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 12:26:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execute-javascript-directly-on-jsp/m-p/111090#M78088</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-06-06T12:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: execute javascript directly on JSP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execute-javascript-directly-on-jsp/m-p/111091#M78089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;…I've just read the title of your post &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; You can't execute Alfresco JavaScript within a JSP and expect it to work…! As i said earlier - the browser JavaScript API is very different to ours.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 12:35:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execute-javascript-directly-on-jsp/m-p/111091#M78089</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-06-06T12:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: execute javascript directly on JSP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execute-javascript-directly-on-jsp/m-p/111092#M78090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry if i ask dumb questions… but can you tell me where i can get more information how to use javascript in alfresco?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i already read the java script api, but i dont andertand very well this question…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have to execute something before i can execute this? I canÂ´t put this code directly in JSP files?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks….&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 13:58:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execute-javascript-directly-on-jsp/m-p/111092#M78090</guid>
      <dc:creator>ze</dc:creator>
      <dc:date>2007-06-06T13:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: execute javascript directly on JSP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execute-javascript-directly-on-jsp/m-p/111093#M78091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Alfresco JavaScript API can executed from various hook points. It can be used in Rules - so a script can be executed say when a document is uploaded or changed or when a new space is created or similar. It is also possible to execute a script directly via URL using the command servlet. Or you can configure a script to be executed when an action icon is clicked in the web-client UI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/URL_Addressability#Script_Command_Processor" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/URL_Addressability#Script_Command_Processor&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Externalised_Client_Actions#Action_Definition_Config_Elements" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Externalised_Client_Actions#Action_Definition_Config_Elements&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It cannot be used directly on a JSP page as it is executed withi the context of the server. However it can be used as part of the new Webscripts framework to build interactive pages with only some HTML/templating knowledge plus javascript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 08:56:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execute-javascript-directly-on-jsp/m-p/111093#M78091</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-06-19T08:56:29Z</dc:date>
    </item>
  </channel>
</rss>

