<?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: Popup Template works when the browser is open, but does not work after browser is refreshed in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243622#M22538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rickey, is there something I can do to clear the cache when the browser is refreshed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice how it is on, then off, then on again after refreshing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Oct 2015 23:17:58 GMT</pubDate>
    <dc:creator>IanPeebles</dc:creator>
    <dc:date>2015-10-14T23:17:58Z</dc:date>
    <item>
      <title>Popup Template works when the browser is open, but does not work after browser is refreshed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243618#M22534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an application that allows the user to click on a feature and a popup template appears. However, if I refresh the app, the popup quits working even though the feature layer displays.&amp;nbsp; If I refresh again, the popup template works again.&amp;nbsp; Also, if I open the browser then use the popup it works, then close the browser then re-open it works.&amp;nbsp; Refreshing seems to be the issue.&amp;nbsp; I do not have a lot of features displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the popup to work after the app is refreshed in the browser each time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the configuration of my feature layer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; // Map Feature Layer ---------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;SPAN&gt; publicartFL = new FeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fgis.edmondok.com%2Farcgis%2Frest%2Fservices%2FParks%2FPublicArt%2FMapServer%2F0" rel="nofollow" target="_blank"&gt;http://gis.edmondok.com/arcgis/rest/services/Parks/PublicArt/MapServer/0&lt;/A&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; id: "PublicArt",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode: FeatureLayer.MODE_ONDEMAND,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields: ["*"],&lt;BR /&gt;&amp;nbsp;&amp;nbsp; infoTemplate: infoTemplate&amp;nbsp; &lt;BR /&gt; });&lt;BR /&gt; map.addLayer(publicartFL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is a scenario:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Open the application, click on a feature and the popup template appears.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Refresh the app, features display, yet popup does not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Refresh the app again, the features display, then the popup works again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have also tried using the mode: FeatureLayer.MODE_SNAPSHOP, but I get the same results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the popup to appear if a user were to refresh the application?&amp;nbsp; Has anyone else run into this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice or input is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 22:33:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243618#M22534</guid>
      <dc:creator>IanPeebles</dc:creator>
      <dc:date>2015-10-14T22:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Template works when the browser is open, but does not work after browser is refreshed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243619#M22535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On step 2 of your &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;scenario, what does your console log say when you try clicking on a feature?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 22:36:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243619#M22535</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-10-14T22:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Template works when the browser is open, but does not work after browser is refreshed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243620#M22536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rickey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the application:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fgis.edmondok.com%2Fsurveymonuments" rel="nofollow" target="_blank"&gt;http://gis.edmondok.com/surveymonuments&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what my console log is showing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: Unable to draw graphic (null): Unable to complete operation.(…)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you see the graphic if you open the application? Open it, use the popup, then refresh the browser.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 22:59:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243620#M22536</guid>
      <dc:creator>IanPeebles</dc:creator>
      <dc:date>2015-10-14T22:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Template works when the browser is open, but does not work after browser is refreshed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243621#M22537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not get the same result if I refresh the cache every time. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 23:09:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243621#M22537</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-10-14T23:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Template works when the browser is open, but does not work after browser is refreshed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243622#M22538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rickey, is there something I can do to clear the cache when the browser is refreshed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice how it is on, then off, then on again after refreshing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 23:17:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243622#M22538</guid>
      <dc:creator>IanPeebles</dc:creator>
      <dc:date>2015-10-14T23:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Template works when the browser is open, but does not work after browser is refreshed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243623#M22539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have figured out a different solution.&amp;nbsp; I am now using the ArcGISDynamicMapService for using an Info Popup.&amp;nbsp; Caching the browser each time fixes the issue, but that is not reasonable for end users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dynamic map service shows up each time the browser window is refreshed.&amp;nbsp; Here is a code change I made:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var surveymonuments = new ArcGISDynamicMapServiceLayer("REST ENDPOINT&lt;/SPAN&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; id: "SurveyMonuments"&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // Set Info Template for Survey Monuments&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; surveymonuments.setInfoTemplates({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0: { infoTemplate: infoTemplate }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(surveymonuments);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the info template defined in the application.&amp;nbsp; Problem solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 04:50:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243623#M22539</guid>
      <dc:creator>IanPeebles</dc:creator>
      <dc:date>2015-10-15T04:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Template works when the browser is open, but does not work after browser is refreshed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243624#M22540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad you were able to figure it out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to mark your answer correct. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 13:15:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243624#M22540</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-10-15T13:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Template works when the browser is open, but does not work after browser is refreshed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243625#M22541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rickey.&amp;nbsp; Still need to figure out feature layer drawing, but no need to use it if I can use the dynamic layer to perform the same function &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 13:18:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243625#M22541</guid>
      <dc:creator>IanPeebles</dc:creator>
      <dc:date>2015-10-15T13:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Template works when the browser is open, but does not work after browser is refreshed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243626#M22542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool web app!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 15:14:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-template-works-when-the-browser-is-open-but/m-p/243626#M22542</guid>
      <dc:creator>CenterlineMapping</dc:creator>
      <dc:date>2015-10-15T15:14:37Z</dc:date>
    </item>
  </channel>
</rss>

