<?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 Open Hyperlink in same window in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-hyperlink-in-same-window/m-p/124027#M4175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have configured my popup info dialog to include a hyperlink in the description section. I would like to know if there is any way that the url specified can be opened in the same window? Specifying the target parameter on the anchor tag makes no difference. I am hoping to do this through configuration rather than coding. If popup's the wrong route then I'd welcome suggestions. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically I need people to be able to click on a polygon and then click on a hyperlink that contains the polygon's ID in the quersytring but keeps them in that window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gary&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jul 2011 14:57:08 GMT</pubDate>
    <dc:creator>GarySimpson</dc:creator>
    <dc:date>2011-07-11T14:57:08Z</dc:date>
    <item>
      <title>Open Hyperlink in same window</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-hyperlink-in-same-window/m-p/124027#M4175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have configured my popup info dialog to include a hyperlink in the description section. I would like to know if there is any way that the url specified can be opened in the same window? Specifying the target parameter on the anchor tag makes no difference. I am hoping to do this through configuration rather than coding. If popup's the wrong route then I'd welcome suggestions. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically I need people to be able to click on a polygon and then click on a hyperlink that contains the polygon's ID in the quersytring but keeps them in that window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gary&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 14:57:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-hyperlink-in-same-window/m-p/124027#M4175</guid>
      <dc:creator>GarySimpson</dc:creator>
      <dc:date>2011-07-11T14:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Open Hyperlink in same window</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-hyperlink-in-same-window/m-p/124028#M4176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hopefully this is what you are looking for&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
navigateToURL(new URLRequest("http://forums.arcgis.com/newreply.php?p=116147&amp;amp;noquote=1//www",'_self'));
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"_self" specifies the current frame in the current window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can refer more into:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/package.html#navigateToURL()" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/package.html#navigateToURL()&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:06:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-hyperlink-in-same-window/m-p/124028#M4176</guid>
      <dc:creator>SaugatJoshi</dc:creator>
      <dc:date>2021-12-11T07:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Open Hyperlink in same window</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-hyperlink-in-same-window/m-p/124029#M4177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joshi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I say, I've tried setting the anchor target parameter and I would prefer to do this through configuration rather than code. This is the popup xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;configuration&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Land Parcel&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;description&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; &amp;lt;![CDATA[Parcel ID: {Parcel_ID}&amp;lt;br&amp;gt;Sheet No: {SheetNo}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;a href='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://myserver.com/flextest?Land_ID=" rel="nofollow" target="_blank"&gt;http://myserver.com/flextest?Land_ID=&lt;/A&gt;&lt;SPAN&gt;{Parcel_ID}' target='_self'&amp;gt;Land Referencing&amp;lt;/a&amp;gt;]]&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/description&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fields&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;field name="Parcel_ID" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;field name="SheetNo" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fields&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;zoomscale&amp;gt;10000&amp;lt;/zoomscale&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/configuration&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_self is ignored. Does anyone have any other suggestions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gary&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 11:58:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-hyperlink-in-same-window/m-p/124029#M4177</guid>
      <dc:creator>GarySimpson</dc:creator>
      <dc:date>2011-07-12T11:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Open Hyperlink in same window</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-hyperlink-in-same-window/m-p/124030#M4178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can create a custom PopUpRendererSkin that has this line of code removed from the cleanAndSetHtmlText() function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// add target="_blank" to all anchor tags&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;htmlText = htmlText.replace(/&amp;lt;a.*?href\s*=\s*["']([^"']*).*?&amp;gt;(.*?)&amp;lt;\/a\s*&amp;gt;/gi, '&amp;lt;a href="$1" target="_blank"&amp;gt;$2&amp;lt;/a&amp;gt;');&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/help/index.html#/Styling_and_skinning_overview/017p0000001s000000/"&gt;http://help.arcgis.com/en/webapi/flex/help/index.html#/Styling_and_skinning_overview/017p0000001s000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 19:15:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-hyperlink-in-same-window/m-p/124030#M4178</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2011-08-01T19:15:42Z</dc:date>
    </item>
  </channel>
</rss>

