<?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: JavaScript alert ERROR in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/javascript-alert-error/m-p/216177#M169307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Your JavaScript is running via Rhino on the server - it's not client-side JavaScript! Therefore you don't have web browser ("DOM") extensions like: window, document, location and alert.&lt;BR /&gt;&lt;BR /&gt;Mike&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;THANKS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But can I solved this in some mode?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2009 21:54:31 GMT</pubDate>
    <dc:creator>chicco0386</dc:creator>
    <dc:date>2009-05-21T21:54:31Z</dc:date>
    <item>
      <title>JavaScript alert ERROR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-alert-error/m-p/216175#M169305</link>
      <description>Hi, i've this javascript file and it is into the companyHome-&amp;gt;DataDictionary-&amp;gt;Scripts for run into a Rules:// Retrieve the last DocID value from the counter at the Space levelif (parseInt(space.properties["custom:numP"]) == null)&amp;nbsp;&amp;nbsp;&amp;nbsp;LastDocID=0;else&amp;nbsp;&amp;nbsp;&amp;nbsp;LastDocID = parseInt(space.properties["cust</description>
      <pubDate>Thu, 21 May 2009 15:51:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-alert-error/m-p/216175#M169305</guid>
      <dc:creator>chicco0386</dc:creator>
      <dc:date>2009-05-21T15:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript alert ERROR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-alert-error/m-p/216176#M169306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your JavaScript is running via Rhino on the server - it's not client-side JavaScript! Therefore you don't have web browser ("DOM") extensions like: window, document, location and alert.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 21:11:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-alert-error/m-p/216176#M169306</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-05-21T21:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript alert ERROR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-alert-error/m-p/216177#M169307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Your JavaScript is running via Rhino on the server - it's not client-side JavaScript! Therefore you don't have web browser ("DOM") extensions like: window, document, location and alert.&lt;BR /&gt;&lt;BR /&gt;Mike&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;THANKS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But can I solved this in some mode?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 21:54:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-alert-error/m-p/216177#M169307</guid>
      <dc:creator>chicco0386</dc:creator>
      <dc:date>2009-05-21T21:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript alert ERROR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-alert-error/m-p/216178#M169308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you mean how can you debug your webscripts, then you can use the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;if (logger.isLoggingEnabled())&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; logger.log("Doc saved");&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;and then update the log4j entry:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;log4j.logger.org.alfresco.repo.jscript.ScriptLogger=debug&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 22:19:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-alert-error/m-p/216178#M169308</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-05-21T22:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript alert ERROR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-alert-error/m-p/216179#M169309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you mean how can you debug your webscripts, then you can use the following:&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;if (logger.isLoggingEnabled())&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; logger.log("Doc saved");&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;/CODE&gt;&lt;/PRE&gt;and then update the log4j entry:&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;log4j.logger.org.alfresco.repo.jscript.ScriptLogger=debug&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Mike&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OK..THANKS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've understand that the alert of javascript can't be used in alfresco javascript….&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 08:43:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-alert-error/m-p/216179#M169309</guid>
      <dc:creator>chicco0386</dc:creator>
      <dc:date>2009-05-22T08:43:53Z</dc:date>
    </item>
  </channel>
</rss>

