<?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 infoWindows don't appear - but only sporadically in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindows-don-t-appear-but-only-sporadically/m-p/382888#M35518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the dreaded non-reproducible problem, whereby infoWindows work well 95% of the time, but inexplicably don't work at other times.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Working with featureLayers, I'm running a click event on the featureLayer to highlight the whole polygon when the user clicks a location within the polygon. The relevant code fragments appear below. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
dojo.connect(featureLayer, "onClick", executeQueryTask);

function executeQueryTask(evt) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.hide();
&amp;nbsp;&amp;nbsp;&amp;nbsp; featureSet = null;
&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask = new esri.tasks.QueryTask(this.url);
&amp;nbsp;&amp;nbsp;&amp;nbsp; query = new esri.tasks.Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outSpatialReference = spatRef;
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.returnGeometry = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outFields = ["*"];
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.timeExtent = map.timeExtent;
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.geometry = evt.mapPoint;
&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.execute(query, function(fset) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var feature = fset.features[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.clear();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.setSymbol(symbol);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(feature);
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;Note that I'm not explicitly telling the infoWindow to display -&amp;nbsp; presumably clicking on the feature in a featureLayer is causing the&amp;nbsp; infoWindow to show.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that on occasion the infoWindow doesn't appear - the feature is still highlighted in this case, so I know the function is running. Clicking another feature doesn't show the infoWindow - it's necessary to refresh the page to remove the problem. Unfortunately my server is not yet externally facing. ArcGIS Server 10.0 using the JSAPI v2.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically I guess I'm asking whether anyone else has noticed this problem, and if you have any suggestions to fix it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jan 2011 03:52:50 GMT</pubDate>
    <dc:creator>StephenLead</dc:creator>
    <dc:date>2011-01-10T03:52:50Z</dc:date>
    <item>
      <title>infoWindows don't appear - but only sporadically</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindows-don-t-appear-but-only-sporadically/m-p/382888#M35518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the dreaded non-reproducible problem, whereby infoWindows work well 95% of the time, but inexplicably don't work at other times.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Working with featureLayers, I'm running a click event on the featureLayer to highlight the whole polygon when the user clicks a location within the polygon. The relevant code fragments appear below. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
dojo.connect(featureLayer, "onClick", executeQueryTask);

function executeQueryTask(evt) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.hide();
&amp;nbsp;&amp;nbsp;&amp;nbsp; featureSet = null;
&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask = new esri.tasks.QueryTask(this.url);
&amp;nbsp;&amp;nbsp;&amp;nbsp; query = new esri.tasks.Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outSpatialReference = spatRef;
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.returnGeometry = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outFields = ["*"];
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.timeExtent = map.timeExtent;
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.geometry = evt.mapPoint;
&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.execute(query, function(fset) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var feature = fset.features[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.clear();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.setSymbol(symbol);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(feature);
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;Note that I'm not explicitly telling the infoWindow to display -&amp;nbsp; presumably clicking on the feature in a featureLayer is causing the&amp;nbsp; infoWindow to show.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that on occasion the infoWindow doesn't appear - the feature is still highlighted in this case, so I know the function is running. Clicking another feature doesn't show the infoWindow - it's necessary to refresh the page to remove the problem. Unfortunately my server is not yet externally facing. ArcGIS Server 10.0 using the JSAPI v2.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically I guess I'm asking whether anyone else has noticed this problem, and if you have any suggestions to fix it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 03:52:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindows-don-t-appear-but-only-sporadically/m-p/382888#M35518</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2011-01-10T03:52:50Z</dc:date>
    </item>
  </channel>
</rss>

