<?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: Listening for the close event on an esri/dijit/Popup JS api 3.16 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/listening-for-the-close-event-on-an-esri-dijit/m-p/40604#M3488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is it! Thank you so much. I spent far too long trying to figure that out!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2016 21:22:35 GMT</pubDate>
    <dc:creator>TamiaRudnicky</dc:creator>
    <dc:date>2016-05-31T21:22:35Z</dc:date>
    <item>
      <title>Listening for the close event on an esri/dijit/Popup JS api 3.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/listening-for-the-close-event-on-an-esri-dijit/m-p/40602#M3486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using esri/dijit/Popup in my javascript api 3.16 web application to return information about various layers. I have an image service identify task tied to the map click that returns an elevation and displays it in a div in the corner of the map. I would like to be able to hide the elevation div when I close the popup window, however I don't know what to listen for when I click the close button since there is no "id" associated with it. I've looked at the api reference for the popup class and I have tried using the code snippet - &lt;SPAN class="pln"&gt;connect&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;connect&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;popup&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"onHide"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;function&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(){&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; console&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;log&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;'info window is hidden'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;});&amp;nbsp; I've tried using '"on" instead of "connect" but nothing works. I saw someone had posted a similar question and received an answer h&lt;SPAN class="pun"&gt;owever that solution works only in the new javascript api 4.0.&amp;nbsp; Can anyone help me?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun"&gt;&lt;SPAN class="pun"&gt;Thanks!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 19:11:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/listening-for-the-close-event-on-an-esri-dijit/m-p/40602#M3486</guid>
      <dc:creator>TamiaRudnicky</dc:creator>
      <dc:date>2016-05-31T19:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Listening for the close event on an esri/dijit/Popup JS api 3.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/listening-for-the-close-event-on-an-esri-dijit/m-p/40603#M3487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be really helpful, if you could share some code. If you are using default popup, below code works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.on('hide', function(){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("infoWindow hide event");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; })&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have created you own popup, then you should use that instance to listen to "hide" event&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:34:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/listening-for-the-close-event-on-an-esri-dijit/m-p/40603#M3487</guid>
      <dc:creator>thejuskambi</dc:creator>
      <dc:date>2021-12-10T21:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Listening for the close event on an esri/dijit/Popup JS api 3.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/listening-for-the-close-event-on-an-esri-dijit/m-p/40604#M3488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is it! Thank you so much. I spent far too long trying to figure that out!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 21:22:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/listening-for-the-close-event-on-an-esri-dijit/m-p/40604#M3488</guid>
      <dc:creator>TamiaRudnicky</dc:creator>
      <dc:date>2016-05-31T21:22:35Z</dc:date>
    </item>
  </channel>
</rss>

