<?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: Why cannot access Javascript native objects in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/why-cannot-access-javascript-native-objects/m-p/301023#M254153</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;you need to understand the difference of client-side and server-side JavaScript. Only client-side JavasScript which is executed by your browser will have access to the Firefox console and "windows" object + functions. The JavaScript you tried to execute is executed on the server-side in a different JavaScript engine. As a result, browser-related API is NOT available and you cannot write to your browser console.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/22061380/repository-tier-vs-web-tier-vs-server-side-vs-client-side-in-alfresco" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/22061380/repository-tier-vs-web-tier-vs-server-side-vs-client-side-in-alfresco&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;StackOverflow question + answer&amp;lt;/a&amp;gt; gives a few pointers on the differences of the different JavaScript tiers that you may develop for in the context of Alfresco. The &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/5.1/concepts/API-JS-intro.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/5.1/concepts/API-JS-intro.html&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;documentation&amp;lt;/a&amp;gt; provides information about the JavaScript API of the Repository-tier, where your script ran.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 08:07:50 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2016-06-15T08:07:50Z</dc:date>
    <item>
      <title>Why cannot access Javascript native objects</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-cannot-access-javascript-native-objects/m-p/301022#M254152</link>
      <description>I would like to use the firefox console in one of my script deployed in Alfresco (console.log) but figured out that I cannot even use "window" methods like alert(), [javascript]Failure: Failed to execute script 'workspace://SpacesStore/f922aad6-4137-41e7-99d0-a2d9f7d71f47': 05150412 ReferenceError:</description>
      <pubDate>Wed, 15 Jun 2016 07:27:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-cannot-access-javascript-native-objects/m-p/301022#M254152</guid>
      <dc:creator>ebuild</dc:creator>
      <dc:date>2016-06-15T07:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why cannot access Javascript native objects</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-cannot-access-javascript-native-objects/m-p/301023#M254153</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;you need to understand the difference of client-side and server-side JavaScript. Only client-side JavasScript which is executed by your browser will have access to the Firefox console and "windows" object + functions. The JavaScript you tried to execute is executed on the server-side in a different JavaScript engine. As a result, browser-related API is NOT available and you cannot write to your browser console.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/22061380/repository-tier-vs-web-tier-vs-server-side-vs-client-side-in-alfresco" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/22061380/repository-tier-vs-web-tier-vs-server-side-vs-client-side-in-alfresco&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;StackOverflow question + answer&amp;lt;/a&amp;gt; gives a few pointers on the differences of the different JavaScript tiers that you may develop for in the context of Alfresco. The &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/5.1/concepts/API-JS-intro.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/5.1/concepts/API-JS-intro.html&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;documentation&amp;lt;/a&amp;gt; provides information about the JavaScript API of the Repository-tier, where your script ran.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 08:07:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-cannot-access-javascript-native-objects/m-p/301023#M254153</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-06-15T08:07:50Z</dc:date>
    </item>
  </channel>
</rss>

