<?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: Alternative to the object Alert in Javascript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alternative-to-the-object-alert-in-javascript/m-p/307435#M260565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alfresco.util.PopupManager is actually a client-side code for Alfresco Share collaboration frontend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you use Share?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 May 2013 21:46:08 GMT</pubDate>
    <dc:creator>zladuric</dc:creator>
    <dc:date>2013-05-13T21:46:08Z</dc:date>
    <item>
      <title>Alternative to the object Alert in Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alternative-to-the-object-alert-in-javascript/m-p/307431#M260561</link>
      <description>Hello everyone. I just want to know if there are alternatives in creating dialog&amp;nbsp; boxes(e.g. alert boxes) in Javascript. Unfortunately, I learned over the net that Alert object is not included here. So, do you know any?My practicum supervisor asked me to have a dialog box whenever a file in a user s</description>
      <pubDate>Fri, 10 May 2013 14:32:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alternative-to-the-object-alert-in-javascript/m-p/307431#M260561</guid>
      <dc:creator>ktavasalo</dc:creator>
      <dc:date>2013-05-10T14:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to the object Alert in Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alternative-to-the-object-alert-in-javascript/m-p/307432#M260562</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;Alfresco provides a utility popup manager on Share client side JS that can be used to simple short message or require active confirmation of an error message. See &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="http://sharextras.org/jsdoc/share/community-4.0.d/symbols/Alfresco.util.PopupManager.html" rel="nofollow noopener noreferrer"&gt;http://sharextras.org/jsdoc/share/community-4.0.d/symbols/Alfresco.util.PopupManager.html&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;the JSDoc&amp;lt;/a&amp;gt; for details.&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>Sat, 11 May 2013 11:27:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alternative-to-the-object-alert-in-javascript/m-p/307432#M260562</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2013-05-11T11:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to the object Alert in Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alternative-to-the-object-alert-in-javascript/m-p/307433#M260563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much Axel.. I will try this one.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 May 2013 12:12:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alternative-to-the-object-alert-in-javascript/m-p/307433#M260563</guid>
      <dc:creator>ktavasalo</dc:creator>
      <dc:date>2013-05-11T12:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to the object Alert in Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alternative-to-the-object-alert-in-javascript/m-p/307434#M260564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello.. Sorry if my question is stupid but I am so lost. How can I use the class Alfresco.util.PopupManager in my alfresco? Can I use it in the script I am working on and save in&amp;nbsp; Company Home/Data Dictionary/Scripts ?Please Help me.. Thank you very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 May 2013 14:24:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alternative-to-the-object-alert-in-javascript/m-p/307434#M260564</guid>
      <dc:creator>ktavasalo</dc:creator>
      <dc:date>2013-05-11T14:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to the object Alert in Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alternative-to-the-object-alert-in-javascript/m-p/307435#M260565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alfresco.util.PopupManager is actually a client-side code for Alfresco Share collaboration frontend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you use Share?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 21:46:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alternative-to-the-object-alert-in-javascript/m-p/307435#M260565</guid>
      <dc:creator>zladuric</dc:creator>
      <dc:date>2013-05-13T21:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to the object Alert in Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alternative-to-the-object-alert-in-javascript/m-p/307436#M260566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I use Share.. So, how to do it? Please help me. Thank you very much. I am thinking to write a script including this popupmanager in Explorer that will trigger when files in Share repository have the same filename.. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 00:00:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alternative-to-the-object-alert-in-javascript/m-p/307436#M260566</guid>
      <dc:creator>ktavasalo</dc:creator>
      <dc:date>2013-05-14T00:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative to the object Alert in Javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alternative-to-the-object-alert-in-javascript/m-p/307437#M260567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, for share dashlets and other components, there is client-side and server-side javascript. Ie. anything under &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;share/WEB-INF/classes/alfresco/site-webscripts&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; are server side components. You can't use "alert" there. You can only use logger.log("some message") there - just make sure your logging levels are set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, alert-type popups are done in client-side javascript. Basically, anything you find in &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;/share/components/*&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; will be executed on the browser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can add something like this in one of the files. Look for the "onReady" method in your dashlet and add:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Alfresco.util.PopupManager.displayMessage({ title: "Some text", text: "This is your message"});&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;BR /&gt;&lt;SPAN&gt;You could even include your own javascript and have use of this, just make sure that /share/js/alfresco.js (or share/js/share.js, not sure) are loaded. Check one of those files to see more options - you can use this to display prompts, errors, whatever.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 20:49:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alternative-to-the-object-alert-in-javascript/m-p/307437#M260567</guid>
      <dc:creator>zladuric</dc:creator>
      <dc:date>2013-05-22T20:49:49Z</dc:date>
    </item>
  </channel>
</rss>

