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));
Jon,
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.
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.