<?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: Open external link from feature layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-external-link-from-feature-layer/m-p/506201#M47072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vojta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attach "click" event handler with FeatureLayer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; on(featureLayer, "click", function(evt){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var url = evt.graphic.attributes["&lt;SPAN style="color: #303030;"&gt;urlFieldName&lt;/SPAN&gt;"];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var windowFeatures = "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(url) window.open(url,'featureInfoWindow', windowFeatures );
 });&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 22:12:26 GMT</pubDate>
    <dc:creator>GirishYadav</dc:creator>
    <dc:date>2021-12-11T22:12:26Z</dc:date>
    <item>
      <title>Open external link from feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-external-link-from-feature-layer/m-p/506196#M47067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'am trying to make JS application - I want to open link in new window without making info or pop-up window.&lt;/P&gt;&lt;P&gt;I've got feature layer, where one atributte is URL, where are stored diferent links.&lt;/P&gt;&lt;P&gt;Something like on click function.&lt;/P&gt;&lt;P&gt;I heard something about ajax(?), but I'm new in Javascript and don't know where (or how) to start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vojta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 08:40:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-external-link-from-feature-layer/m-p/506196#M47067</guid>
      <dc:creator>VojtěchBlažek1</dc:creator>
      <dc:date>2016-01-04T08:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Open external link from feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-external-link-from-feature-layer/m-p/506197#M47068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;Maybe u can use some of this...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; strWindowFeatures &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"location=yes,height=570,width=520,scrollbars=yes,status=yes"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; URL &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.linkedin.com%2Fcws%2Fshare%3Fmini%3Dtrue%26amp%3Burl%3D" rel="nofollow" target="_blank"&gt;https://www.linkedin.com/cws/share?mini=true&amp;amp;url=&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;+&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; location&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;href&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; win &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; window&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;open&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;URL&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"_blank"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; strWindowFeatures&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 12:24:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-external-link-from-feature-layer/m-p/506197#M47068</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2016-01-04T12:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Open external link from feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-external-link-from-feature-layer/m-p/506198#M47069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vojta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Does the attribute field have a full url (i.e. &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.someserver%2Fsomething" rel="nofollow" target="_blank"&gt;http://www.someserver/something&lt;/A&gt;&lt;SPAN&gt;)?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 13:07:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-external-link-from-feature-layer/m-p/506198#M47069</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-01-04T13:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Open external link from feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-external-link-from-feature-layer/m-p/506199#M47070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes attribute field is full url. &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 14:19:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-external-link-from-feature-layer/m-p/506199#M47070</guid>
      <dc:creator>VojtěchBlažek1</dc:creator>
      <dc:date>2016-01-04T14:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Open external link from feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-external-link-from-feature-layer/m-p/506200#M47071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vojtěch,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; How are you wanting people to get to activate the link if you are not wanting to use a popup info window?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 15:09:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-external-link-from-feature-layer/m-p/506200#M47071</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-01-04T15:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Open external link from feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-external-link-from-feature-layer/m-p/506201#M47072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vojta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attach "click" event handler with FeatureLayer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; on(featureLayer, "click", function(evt){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var url = evt.graphic.attributes["&lt;SPAN style="color: #303030;"&gt;urlFieldName&lt;/SPAN&gt;"];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var windowFeatures = "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(url) window.open(url,'featureInfoWindow', windowFeatures );
 });&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:12:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-external-link-from-feature-layer/m-p/506201#M47072</guid>
      <dc:creator>GirishYadav</dc:creator>
      <dc:date>2021-12-11T22:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Open external link from feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-external-link-from-feature-layer/m-p/506202#M47073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for advices. I appreciate it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 07:57:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-external-link-from-feature-layer/m-p/506202#M47073</guid>
      <dc:creator>VojtěchBlažek1</dc:creator>
      <dc:date>2016-01-05T07:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Open external link from feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-external-link-from-feature-layer/m-p/506203#M47074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pop up in smartphones are not good for me &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 07:59:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-external-link-from-feature-layer/m-p/506203#M47074</guid>
      <dc:creator>VojtěchBlažek1</dc:creator>
      <dc:date>2016-01-05T07:59:36Z</dc:date>
    </item>
  </channel>
</rss>

