junart

How insert data to clear my HTML block on web page?

Discussion created by junart on Apr 29, 2014
Latest reply on Apr 30, 2014 by JGravois-esristaff
Hello! I am beginner!
Now i have layer with points on map. After clicking it i get info from geo base:

var featureLayer = new FeatureLayer("http://amp.gov.com/arcgis/rest/services/Presentation/Gradinite/MapServer/0",{
        outFields: ["*"],
        infoTemplate:template
      });
      map.addLayer(featureLayer);


I created infoTemplate:

var InfoContacte = "<div>${DIRECTOR}</div>";


 var template = new InfoTemplate();
      template.setContent(InfoContacte);


On web page i have HTML block:
<div id="Info"></div>


Need to insert template InfoContacte to the block Info with geo-data is returned by clicking of point map.
Please, advice me, how it do, thanks!

Outcomes