<?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: map infoWindow shows correctly, graphic infoWindow is blank in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-shows-correctly-graphic-infowindow/m-p/90221#M8221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is it possible that the node used to generate the content for your infoWindow is getting destroyed between the first and second clicks? I had something similar happen to me when I closed the infoWindow and ended up having to clone the node for the infoWindow rather than assign it directly.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brittney, I think you are on the right track, though I'm not sure the best means of resolving the issue. On the first click (feature - onSelectionComplete) I can see the infoWindow with both .title and .content populated. However, on the subsequent click on the already selected feature, the .title stays the same, but the .content almost becomes empty - the main div remains (a BorderContainer), however the contents of the div are now empty (no more content pane's, etc..).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2013 16:35:04 GMT</pubDate>
    <dc:creator>LukePhilips</dc:creator>
    <dc:date>2013-06-27T16:35:04Z</dc:date>
    <item>
      <title>map infoWindow shows correctly, graphic infoWindow is blank</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-shows-correctly-graphic-infowindow/m-p/90215#M8215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Upon clicking on a map feature (onClick -&amp;gt; Feature select -&amp;gt; onSelection -&amp;gt; go build an infoWindow)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after building my infoWindow and creating a graphic I want to show the infoWindow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
var graphic = new esri.Graphic;
graphic.setGeometry(feature.geometry);
graphic.setAttributes(feature.attributes);
graphic.setSymbol(mySymbol); 

var template = new esri.InfoTemplate();
template.setTitle('MyTitle');
template.setContent(bc.domNode); //dijit BorderContainer

graphic.setInfoTemplate(template);

map.graphics.add(graphic);
map.infoWindow.setContent(template.content);
map.infoWindow.setTitle(template.title);
map.infoWindow.show(graphic.geometry, map.getInfoWindowAnchor(graphic.geometry));&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the immediate infoWindow to show, the graphic draws fine. Subsequent clicks on the same point shows a blank infoWindow, it only shows data again when I click away then click back on the point to restart the selection process.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 16:54:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-shows-correctly-graphic-infowindow/m-p/90215#M8215</guid>
      <dc:creator>LukePhilips</dc:creator>
      <dc:date>2013-06-14T16:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: map infoWindow shows correctly, graphic infoWindow is blank</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-shows-correctly-graphic-infowindow/m-p/90216#M8216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do something similar in one of my projects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I end up assigning events to "onSelectionChange", "onSetFeatures" and "onClearFeatures" and populate the infoWindow accordingly, depending on the situation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This sample may or may not help (even if its not exactly what you are doing):&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/en/javascript/jssamples/popup_sidepanel.html"&gt;http://developers.arcgis.com/en/javascript/jssamples/popup_sidepanel.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 17:29:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-shows-correctly-graphic-infowindow/m-p/90216#M8216</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2013-06-14T17:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: map infoWindow shows correctly, graphic infoWindow is blank</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-shows-correctly-graphic-infowindow/m-p/90217#M8217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response. However, those aren't the issue. I have already selected the feature, I'm not changing the feature (not clicking another feature), nor clearing features, simply clicking the same feature after the infoWindow has already popped up. At that point the infoWindow goes from populated data to blank.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 19:15:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-shows-correctly-graphic-infowindow/m-p/90217#M8217</guid>
      <dc:creator>LukePhilips</dc:creator>
      <dc:date>2013-06-14T19:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: map infoWindow shows correctly, graphic infoWindow is blank</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-shows-correctly-graphic-infowindow/m-p/90218#M8218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible that the node used to generate the content for your infoWindow is getting destroyed between the first and second clicks? I had something similar happen to me when I closed the infoWindow and ended up having to clone the node for the infoWindow rather than assign it directly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 19:21:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-shows-correctly-graphic-infowindow/m-p/90218#M8218</guid>
      <dc:creator>BrittneyGibbons</dc:creator>
      <dc:date>2013-06-14T19:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: map infoWindow shows correctly, graphic infoWindow is blank</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-shows-correctly-graphic-infowindow/m-p/90219#M8219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Jon,&lt;BR /&gt;Thanks for the response. However, those aren't the issue. I have already selected the feature, I'm not changing the feature (not clicking another feature), nor clearing features, simply clicking the same feature after the infoWindow has already popped up. At that point the infoWindow goes from populated data to blank.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry Luke! Looks like I misunderstood.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was under the assumption that clicking an already-selected feature causes the feature to become unselected (meaning your infowindow would go blank since there's no feature selected). This is why I used onSelectionChange instead of onSelection.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 20:21:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-shows-correctly-graphic-infowindow/m-p/90219#M8219</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2013-06-14T20:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: map infoWindow shows correctly, graphic infoWindow is blank</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-shows-correctly-graphic-infowindow/m-p/90220#M8220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you should assign infoTemplate for graphics layer also like this ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var&amp;nbsp; template = new esri.InfoTemplate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;template.setTitle("&amp;lt;b&amp;gt;Layer&amp;lt;/b&amp;gt;");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;template.setContent(getWindowContentl);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function getWindowContentParcel(graphic) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; map.graphics.infoTemplate=template;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this will work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 06:24:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-shows-correctly-graphic-infowindow/m-p/90220#M8220</guid>
      <dc:creator>RahulGupta1</dc:creator>
      <dc:date>2013-06-19T06:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: map infoWindow shows correctly, graphic infoWindow is blank</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-shows-correctly-graphic-infowindow/m-p/90221#M8221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is it possible that the node used to generate the content for your infoWindow is getting destroyed between the first and second clicks? I had something similar happen to me when I closed the infoWindow and ended up having to clone the node for the infoWindow rather than assign it directly.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brittney, I think you are on the right track, though I'm not sure the best means of resolving the issue. On the first click (feature - onSelectionComplete) I can see the infoWindow with both .title and .content populated. However, on the subsequent click on the already selected feature, the .title stays the same, but the .content almost becomes empty - the main div remains (a BorderContainer), however the contents of the div are now empty (no more content pane's, etc..).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 16:35:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-infowindow-shows-correctly-graphic-infowindow/m-p/90221#M8221</guid>
      <dc:creator>LukePhilips</dc:creator>
      <dc:date>2013-06-27T16:35:04Z</dc:date>
    </item>
  </channel>
</rss>

