<?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: Event listener on popup open? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-on-popup-open/m-p/36242#M3003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert, this is what I was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was getting doubled results when the pop up was turned on and off, so I added an if statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;view.popup.watch("visible", function (popUpStatusChange) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if (popUpStatusChange == true) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;console.log("Pop-up watch has been fired")&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;console.log("Pop-up title is:", view.popup.title); //returns the pop up title&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;console.log("Pop-up content is:", view.popup.content); //returns the pop up content&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Sep 2020 21:10:41 GMT</pubDate>
    <dc:creator>RyanBohan</dc:creator>
    <dc:date>2020-09-01T21:10:41Z</dc:date>
    <item>
      <title>Event listener on popup open?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-on-popup-open/m-p/36239#M3000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to add an event on a popup open event? I want, based on its target, to perform a AJAX call and retrieve more data to populate the content field from a third party system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#events-summary"&gt;Popup&lt;/A&gt; only has the "trigger-action" event that handles action within the popup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 10:33:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-on-popup-open/m-p/36239#M3000</guid>
      <dc:creator>LarsFagerbakke</dc:creator>
      <dc:date>2017-12-20T10:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Event listener on popup open?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-on-popup-open/m-p/36240#M3001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;There are actually very few events in the 4.x api. You now just watch properties.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#visible" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#visible"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#visible&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use view.popup.watch("visible", function(){});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 13:01:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-on-popup-open/m-p/36240#M3001</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-12-20T13:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Event listener on popup open?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-on-popup-open/m-p/36241#M3002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/guzhongren/AGS-JS-API-Popup" title="https://github.com/guzhongren/AGS-JS-API-Popup"&gt;GitHub - guzhongren/AGS-JS-API-Popup: 自定义基于AGS的弹出框，用于解决鼠标在graphic上点击或移动时候自动弹出popup或者自定义popup内容的特殊效果&lt;/A&gt;&amp;nbsp;；&lt;/P&gt;&lt;P&gt;if you neet to do something special， you can ref this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2017 06:24:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-on-popup-open/m-p/36241#M3002</guid>
      <dc:creator>zhongrenGu</dc:creator>
      <dc:date>2017-12-22T06:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Event listener on popup open?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-on-popup-open/m-p/36242#M3003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert, this is what I was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was getting doubled results when the pop up was turned on and off, so I added an if statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;view.popup.watch("visible", function (popUpStatusChange) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if (popUpStatusChange == true) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;console.log("Pop-up watch has been fired")&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;console.log("Pop-up title is:", view.popup.title); //returns the pop up title&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;console.log("Pop-up content is:", view.popup.content); //returns the pop up content&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2020 21:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-on-popup-open/m-p/36242#M3003</guid>
      <dc:creator>RyanBohan</dc:creator>
      <dc:date>2020-09-01T21:10:41Z</dc:date>
    </item>
  </channel>
</rss>

