<?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: Add a link stored in a database into a popup in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-a-link-stored-in-a-database-into-a-popup/m-p/481818#M44833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Rickey! I realized my error was I was trying to add "" around my link's href attribute. I noticed you didn't have quotations around yours, so I dumped mine and it worked like a charm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Aug 2017 21:04:53 GMT</pubDate>
    <dc:creator>GregSalvador</dc:creator>
    <dc:date>2017-08-17T21:04:53Z</dc:date>
    <item>
      <title>Add a link stored in a database into a popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-a-link-stored-in-a-database-into-a-popup/m-p/481815#M44830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to add a link to my popupTemplate. The Map Service I am using has an attribute table with it. The attribute table has a field called "Online" that links to a specific webpage containing information about the shape clicked. How can I make that field a hyperlink in my popupTemplate? Here is how I thought it should be done:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var BRADCADpopup = {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title: "2016 BRADCAD Parcels",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content: "&amp;lt;b&amp;gt;{Situs}&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;" +&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;a href=\"{Online}\"&amp;gt;Appraisal Details&amp;lt;/a&amp;gt;"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;When I click on the hyperlink in the popup, I get a "Potentially dangerous Request.Path value was detected"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 19:05:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-a-link-stored-in-a-database-into-a-popup/m-p/481815#M44830</guid>
      <dc:creator>GregSalvador</dc:creator>
      <dc:date>2017-08-17T19:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Add a link stored in a database into a popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-a-link-stored-in-a-database-into-a-popup/m-p/481816#M44831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is how I do it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; template &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;esri&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;InfoTemplate&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"${First_Name} ${Last_Name} "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&amp;lt;a href=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2FMylocation%2Fcemetery%2F%24" target="_blank"&gt;http://Mylocation/cemetery/$&lt;/A&gt;&lt;SPAN&gt;{Photo_loc} target='_blank'&amp;gt; &amp;lt;img src=${Photo_loc} WIDTH=150 HEIGHT=150&amp;gt;&amp;lt;/a&amp;gt; &amp;lt;br/&amp;gt; &amp;lt;b&amp;gt;Last Name:&amp;lt;/b&amp;gt; ${Last_Name} &amp;lt;br/&amp;gt;&amp;lt;b&amp;gt; First Name:&amp;lt;/b&amp;gt; ${First_Name}&amp;lt;br/&amp;gt;&amp;lt;b&amp;gt; Cemetery:&amp;lt;/b&amp;gt; ${Cemetery}&amp;lt;br/&amp;gt; &amp;lt;b&amp;gt;Section:&amp;lt;/b&amp;gt; ${Section}&amp;lt;br/&amp;gt; &amp;lt;b&amp;gt;Block: &amp;lt;/b&amp;gt;${Block}&amp;lt;br/&amp;gt; &amp;lt;b&amp;gt;Lot:&amp;lt;/b&amp;gt; ${Lot}&amp;lt;br/&amp;gt; &amp;lt;b&amp;gt;Space:&amp;lt;/b&amp;gt; ${Space}&amp;lt;br/&amp;gt; &amp;lt;b&amp;gt;Age:&amp;lt;/b&amp;gt; ${Age}&amp;lt;br/&amp;gt; &amp;lt;b&amp;gt;Date of Birth: &amp;lt;/b&amp;gt;${Date_of_Birth}&amp;lt;br/&amp;gt; &amp;lt;b&amp;gt;Birth City:&amp;lt;/b&amp;gt; ${Birth_Citys}&amp;lt;br/&amp;gt;&amp;lt;b&amp;gt; Birth State:&amp;lt;/b&amp;gt; ${Birth_State}&amp;lt;br/&amp;gt; &amp;lt;b&amp;gt;Birth Country:&amp;lt;/b&amp;gt; ${Birth_Country}&amp;lt;br/&amp;gt;&amp;lt;b&amp;gt; Date of Death: &amp;lt;/b&amp;gt;${Date_of_Death}&amp;lt;br/&amp;gt; &amp;lt;b&amp;gt;Death State:&amp;lt;/b&amp;gt; ${Death_State}&amp;lt;br/&amp;gt;&amp;lt;b&amp;gt; Death City: &amp;lt;/b&amp;gt;${Death_City}&amp;lt;br/&amp;gt; &amp;lt;b&amp;gt;Spouses Name: &amp;lt;/b&amp;gt;${Spouses_Name}&amp;lt;br/&amp;gt; &amp;lt;b&amp;gt;Undertaker:&amp;lt;/b&amp;gt; ${Undertaker}&amp;lt;br/&amp;gt; &amp;lt;b&amp;gt;Year of Birth:&amp;lt;/b&amp;gt; ${Year_of_Birth}&amp;lt;br/&amp;gt; &amp;lt;b&amp;gt;Personal Notes:&amp;lt;/b&amp;gt; ${Personal_Notes}"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;



feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setInfoTemplate&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;template&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;


&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:15:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-a-link-stored-in-a-database-into-a-popup/m-p/481816#M44831</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2021-12-11T21:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add a link stored in a database into a popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-a-link-stored-in-a-database-into-a-popup/m-p/481817#M44832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure you're allowed to do this as it presents a security concern. &amp;nbsp;There may be a way around it if you keep poking around though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way to get similar behavior is to add an action to your popupTemplate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&amp;nbsp;&lt;A class="link-titled" href="https://jsbin.com/sehazitusu/edit?html,output" title="https://jsbin.com/sehazitusu/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that example, clicking on the action in the popup fires a function that looks at the feature in the open popup, takes its "Online" field from its attributes, and opens a new tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 19:27:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-a-link-stored-in-a-database-into-a-popup/m-p/481817#M44832</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-08-17T19:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add a link stored in a database into a popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-a-link-stored-in-a-database-into-a-popup/m-p/481818#M44833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Rickey! I realized my error was I was trying to add "" around my link's href attribute. I noticed you didn't have quotations around yours, so I dumped mine and it worked like a charm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 21:04:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-a-link-stored-in-a-database-into-a-popup/m-p/481818#M44833</guid>
      <dc:creator>GregSalvador</dc:creator>
      <dc:date>2017-08-17T21:04:53Z</dc:date>
    </item>
  </channel>
</rss>

