<?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 HTMLPopup redirect on click in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/htmlpopup-redirect-on-click/m-p/645599#M19152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm using a HTMLPopup in my application.&lt;/P&gt;&lt;P&gt;I want that when I click on the button ... instead of closing the Popup I want to go to a specific URL.... like a redirect...&lt;/P&gt;&lt;P&gt;How can I configure the HTMLPopup to do this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Feb 2015 10:56:18 GMT</pubDate>
    <dc:creator>NatashaManzuiga</dc:creator>
    <dc:date>2015-02-17T10:56:18Z</dc:date>
    <item>
      <title>HTMLPopup redirect on click</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/htmlpopup-redirect-on-click/m-p/645599#M19152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm using a HTMLPopup in my application.&lt;/P&gt;&lt;P&gt;I want that when I click on the button ... instead of closing the Popup I want to go to a specific URL.... like a redirect...&lt;/P&gt;&lt;P&gt;How can I configure the HTMLPopup to do this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 10:56:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/htmlpopup-redirect-on-click/m-p/645599#M19152</guid>
      <dc:creator>NatashaManzuiga</dc:creator>
      <dc:date>2015-02-17T10:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: HTMLPopup redirect on click</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/htmlpopup-redirect-on-click/m-p/645600#M19153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; There is not configuration for this. You would have to modify the HTMLPopup.mxml code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find the close function and replace the second line (dispatch(new CloseEvent(CloseEvent.CLOSE));) with something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;u = new URLRequest('this is your redirect url');
navigateToURL(u,'_parent');&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And add these imports&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import flash.net.URLRequest;
import flash.net.navigateToURL;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:24:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/htmlpopup-redirect-on-click/m-p/645600#M19153</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T03:24:30Z</dc:date>
    </item>
  </channel>
</rss>

