tr_transcendent

issue with query and marker

Discussion created by tr_transcendent on Oct 17, 2011
Latest reply on Oct 18, 2011 by tr_transcendent
hi,
Right now the map displays one web page but I am trying to get a marker on the area that is returned by the query. 
Thanks

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>CC test map</title>
    <link href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.5/js/dojo/dijit/themes/claro/claro.css" rel="stylesheet" type="text/css" >
    <script type="text/javascript" src="http://o.aolcdn.com/dojo/1.2.3/dojo/dojo.xd.js"></script>  
    <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.5"></script>
    <script type="text/javascript">
        dojo.require("esri.tasks.query");
        dojo.require("esri.map"); 
        function init() {
          
          map = new esri.Map("mapDiv");
          var layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://lrs.co.columbia.wi.us/ArcGIS/rest/services/LRS/TaxParcels_Parcels/MapServer")
           map.addLayer(layer);

            queryTask = new esri.tasks.QueryTask("http://lrs.co.columbia.wi.us/ArcGIS/rest/services/LRS/TaxParcels_Parcels/MapServer/0");

            query = new esri.tasks.Query();
            query.returnGeomertry = true;
            query.text = "11177-153";

        queryTask.execute(query, showResults);
 }

 function showResults(featureSet) {

     map.graphics.clear();
     symbol = new esri.symbol.SimpleMarkerSymbol();
     symbol.setStyle(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE);
     symbol.setSize(10);
     symbol.setColor(new dojo.Color([255, 255, 0, 0.5]));
var resultFeatures = featureSet.features;
     for (var i = 0, il = resultFeatures.length; i < il; i++) {

         var graphic = resultFeatures[i];
         graphic.setSymbol(symbol);

         map.graphics.add(graphic);
     }
 }    
  </script>
</head>
<body>
 <div id="mapDiv" style="width:600px; height:600px; border:1px solid #000;"></div> 

  <input type="button" value="Get Details" onclick=" init()" /> 

</body>
</html>

Outcomes