<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Need to put a link in an infoTemplate's content in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-to-put-a-link-in-an-infotemplate-s-content/m-p/89534#M8149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Apologizing in advance for not being able to post code...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the "Geoprocessing tool link in popup" &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://developers.arcgis.com/en/javascript/jssamples/gp_popuplink.html" rel="nofollow" target="_blank"&gt;example&lt;/A&gt;&lt;SPAN&gt;, I need to put the "Population" link in an infoTemplate's content instead of the infoWindow. The link will execute a function that draws connection lines between certain markers on the map, but only for one particular type of map marker that contains the info needed to draw the lines, so I don't want to add the link to the infoWindow itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "dojo.query" statement in the example adds the link object to a class in the infoWindow's domNode...is there another class I can use to add it to the content instead?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jun 2013 16:40:06 GMT</pubDate>
    <dc:creator>TyroneLigon</dc:creator>
    <dc:date>2013-06-10T16:40:06Z</dc:date>
    <item>
      <title>Need to put a link in an infoTemplate's content</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-to-put-a-link-in-an-infotemplate-s-content/m-p/89534#M8149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Apologizing in advance for not being able to post code...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the "Geoprocessing tool link in popup" &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://developers.arcgis.com/en/javascript/jssamples/gp_popuplink.html" rel="nofollow" target="_blank"&gt;example&lt;/A&gt;&lt;SPAN&gt;, I need to put the "Population" link in an infoTemplate's content instead of the infoWindow. The link will execute a function that draws connection lines between certain markers on the map, but only for one particular type of map marker that contains the info needed to draw the lines, so I don't want to add the link to the infoWindow itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "dojo.query" statement in the example adds the link object to a class in the infoWindow's domNode...is there another class I can use to add it to the content instead?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 16:40:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-to-put-a-link-in-an-infotemplate-s-content/m-p/89534#M8149</guid>
      <dc:creator>TyroneLigon</dc:creator>
      <dc:date>2013-06-10T16:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need to put a link in an infoTemplate's content</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-to-put-a-link-in-an-infotemplate-s-content/m-p/89535#M8150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been using a function to set the content of my infoWindows.&amp;nbsp; It gave me a lot more control over the content.&amp;nbsp; You could include code to check for certain conditions, run other functions etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp; parcelInfoTemplate = new esri.InfoTemplate(); &amp;nbsp;&amp;nbsp; parcelInfoTemplate.setTitle("Parcel Information"); &amp;nbsp;&amp;nbsp; parcelInfoTemplate.setContent(parcelSetWindowContent);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you function would run when you clicked on an element.&amp;nbsp; I have mine set to format the contents as a table. You could easily add some HTML code for a hyperlink instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;function parcelSetWindowContent(graphic){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//your code would go here that executes when you click&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 19:49:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-to-put-a-link-in-an-infotemplate-s-content/m-p/89535#M8150</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2013-06-10T19:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need to put a link in an infoTemplate's content</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-to-put-a-link-in-an-infotemplate-s-content/m-p/89536#M8151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use this sample to add your content to infoTemplate&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/en/javascript/jssamples/util_project.html"&gt;http://developers.arcgis.com/en/javascript/jssamples/util_project.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 03:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-to-put-a-link-in-an-infotemplate-s-content/m-p/89536#M8151</guid>
      <dc:creator>VinayBansal</dc:creator>
      <dc:date>2013-06-11T03:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need to put a link in an infoTemplate's content</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-to-put-a-link-in-an-infotemplate-s-content/m-p/89537#M8152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wish I had a way to give both answers credit because I used elements from both for my final solution. My solution was to define standard content for the popup, and create button HTML with an onclick method pointing to my marker linkage function. If I needed the button to display linkages between markers, I add the button to the popup content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm going to open a separate thread for the next challenge - the app relies heavily on jQuery, so I need to figure out how to embed a jQuery button in the info template's content.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 15:00:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-to-put-a-link-in-an-infotemplate-s-content/m-p/89537#M8152</guid>
      <dc:creator>TyroneLigon</dc:creator>
      <dc:date>2013-06-11T15:00:55Z</dc:date>
    </item>
  </channel>
</rss>

