<?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 Re: Return Value as a Link in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/return-value-as-a-link/m-p/591302#M55263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, when I edit the code like that it fails the entire map and nothing starts.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2012 11:04:38 GMT</pubDate>
    <dc:creator>CraigMcDade</dc:creator>
    <dc:date>2012-07-18T11:04:38Z</dc:date>
    <item>
      <title>Return Value as a Link</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/return-value-as-a-link/m-p/591300#M55261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Working with the Identify - Popup sample code &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to configure the returned value as a link?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var template = new esri.InfoTemplate("", 
&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;b&amp;gt;Station:&amp;lt;/b&amp;gt; ${Corner Point Identifier}");&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like the Corner Point Identifier to be returned as a link to its individual file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All the files have the same path except for the Corner Point Identifier + .pdf&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this possible?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 19:43:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/return-value-as-a-link/m-p/591300#M55261</guid>
      <dc:creator>CraigMcDade</dc:creator>
      <dc:date>2012-07-17T19:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Return Value as a Link</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/return-value-as-a-link/m-p/591301#M55262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Will coding the return into an anchor tag work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;'&amp;lt;b&amp;gt;Station:&amp;lt;/b&amp;gt;&amp;lt;a href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://'+" rel="nofollow" target="_blank"&gt;http://'+&lt;/A&gt;&lt;SPAN&gt; ${Corner Point Identifier}+'.pdf&amp;gt;Descriptive Text&amp;lt;/a&amp;gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 20:03:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/return-value-as-a-link/m-p/591301#M55262</guid>
      <dc:creator>AustinDavis</dc:creator>
      <dc:date>2012-07-17T20:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Return Value as a Link</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/return-value-as-a-link/m-p/591302#M55263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, when I edit the code like that it fails the entire map and nothing starts.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 11:04:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/return-value-as-a-link/m-p/591302#M55263</guid>
      <dc:creator>CraigMcDade</dc:creator>
      <dc:date>2012-07-18T11:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Return Value as a Link</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/return-value-as-a-link/m-p/591303#M55264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Reading through some of the API, this may work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var infoTemplate = new esri.InfoTemplate();
infoTemplate.setContent( '&amp;lt;b&amp;gt;Station:&amp;lt;/b&amp;gt;&amp;lt;a href="http://${Corner Point Identifier}.pdf"&amp;gt;Descriptive Text&amp;lt;/a&amp;gt;' );

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is a valid path:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
"http://${Corner Point Identifier}.pdf"
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/return-value-as-a-link/m-p/591303#M55264</guid>
      <dc:creator>AustinDavis</dc:creator>
      <dc:date>2021-12-12T01:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Return Value as a Link</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/return-value-as-a-link/m-p/591304#M55265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;well that seems to be closer. Now the map draws and the popup comes up, however, it is empty and shows "no information available".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried using similar sample code as located in the "Info Window Lite" sample, however that doesn't work for this either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 12:39:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/return-value-as-a-link/m-p/591304#M55265</guid>
      <dc:creator>CraigMcDade</dc:creator>
      <dc:date>2012-07-18T12:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Return Value as a Link</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/return-value-as-a-link/m-p/591305#M55266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can construct the url using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var template = new esri.InfoTemplate("",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;b&amp;gt;Station:&amp;lt;/b&amp;gt; http://gisdev2/surveybenchmarks/scans/${Corner Point Identifier}.pdf" ) ;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This populates the popup with the &lt;/SPAN&gt;&lt;A href="http://.....pdf" rel="nofollow noopener noreferrer" target="_blank"&gt;http://.....pdf&lt;/A&gt;&lt;SPAN&gt; string &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the map fails when I try to use the html link constructors.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:24:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/return-value-as-a-link/m-p/591305#M55266</guid>
      <dc:creator>CraigMcDade</dc:creator>
      <dc:date>2021-12-12T01:24:02Z</dc:date>
    </item>
  </channel>
</rss>

