<?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: infoWindow onHide event in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-onhide-event/m-p/408332#M37629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just found that you can use the dojo attachpoint for the button.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the html of the close button in the infowindow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML]&amp;lt;a class="hide" dojoattachpoint="_hide" dojoattachevent="onclick:hide" style="margin-left: 303px; "&amp;gt;&amp;lt;div class="sprite"&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/a&amp;gt;[/HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is how you can listen for the click event of the close button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dojo.connect(map.infoWindow._hide, "onclick", function(){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //your code here for handling the close button click.
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 18:34:05 GMT</pubDate>
    <dc:creator>SebastianRoberts</dc:creator>
    <dc:date>2021-12-11T18:34:05Z</dc:date>
    <item>
      <title>infoWindow onHide event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-onhide-event/m-p/408331#M37628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the attribute inspector with a feature layer on my map.&amp;nbsp; I need to know when a user closes the infoWindow by clicking the x or close button.&amp;nbsp; The map.infoWindow "onhide" event fires every time the user clicks on the map, so this will not do.&amp;nbsp; Does anyone know how how to create an event listener for the onClick event of the close button on the infWindow dijit?&amp;nbsp; The button doesn't have an id attribute that I can refer to, and i haven't been able to find anything in the Dojo dijit documentation to help me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 22:35:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-onhide-event/m-p/408331#M37628</guid>
      <dc:creator>SebastianRoberts</dc:creator>
      <dc:date>2012-03-20T22:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: infoWindow onHide event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-onhide-event/m-p/408332#M37629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just found that you can use the dojo attachpoint for the button.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the html of the close button in the infowindow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML]&amp;lt;a class="hide" dojoattachpoint="_hide" dojoattachevent="onclick:hide" style="margin-left: 303px; "&amp;gt;&amp;lt;div class="sprite"&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/a&amp;gt;[/HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is how you can listen for the click event of the close button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dojo.connect(map.infoWindow._hide, "onclick", function(){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //your code here for handling the close button click.
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:34:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-onhide-event/m-p/408332#M37629</guid>
      <dc:creator>SebastianRoberts</dc:creator>
      <dc:date>2021-12-11T18:34:05Z</dc:date>
    </item>
  </channel>
</rss>

