var plantId = new InofTemplate("My Popup Window", "${*}" ); plantId = setContent(getTextContent); function getTextContent(graphic) { var htext = graphic.attributes.plantWeb_URL; return "<a target='_blank' href="{htext}">Click the Hyper Link to See the Web</a>"; }
Solved! Go to Solution.
var url = "http://www.esri.com"; var template = new esri.InfoTemplate("", "${Postal Address} <br/> Owner of record: ${First Owner Name} <br/>" + "<a target='_blank' href=" + url +">Esri home page</a>");
var url = "http://www.esri.com"; var template = new esri.InfoTemplate("", "${Postal Address} <br/> Owner of record: ${First Owner Name} <br/>" + "<a target='_blank' href=" + url +">Esri home page</a>");
I used an existing sample and inserted this codevar url = "http://www.esri.com"; var template = new esri.InfoTemplate("", "${Postal Address} <br/> Owner of record: ${First Owner Name} <br/>" + "<a target='_blank' href=" + url +">Esri home page</a>");