Solved! Go to Solution.
dojo.connect(map, "onClick", function(evt) {
if(map.infoWindow.isShowing) { map.infoWindow.hide(); }
click_handle = true;
var g = evt.graphic;
map.infoWindow.setContent(g.getContent());
map.infoWindow.setTitle(g.getTitle());
map.infoWindow.show(evt.screenPoint,map.getInfoWindowAnchor(evt.screenPoint));
});graphic = new esri.Graphic(point, icon, attr, siteTemplate); glayer.add(graphic); gmarkers[nm] = graphic; nm++;
<form style="margin-top:2px;margin-bottom:10px;" action> <select name="delta" onchange="javascript:reveal_site(delta.value)"> <option value="">Select a well</option> <option value="0">Graphic 0</option> <option value="1">Graphic 1</option> <option value="2">Graphic 2</option> </select> </form>
function reveal_site(i)
{
dojo.connect(map, "onClick", function(evt) {
if(map.infoWindow.isShowing) { map.infoWindow.hide(); }
click_handle = true;
var g = evt.graphic;
map.infoWindow.setContent(g.getContent());
map.infoWindow.setTitle(g.getTitle());
map.infoWindow.show(evt.screenPoint,map.getInfoWindowAnchor(evt.screenPoint));
});
}
function reveal_site(i)
{
var split = i.split(',');
var index = split[0];
var latitude = split[1];
var longitude = split[2];
if(index)
{
point = new esri.geometry.Point(longitude,latitude,new esri.SpatialReference({ wkid: 4326 }));
point = esri.geometry.geographicToWebMercator(point);
map.infoWindow.setTitle(gmarkers[index].getTitle());
map.infoWindow.setContent(gmarkers[index].getContent());
map.infoWindow.show(point, point);
}
}