<?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: How to dont open a new window with URL Request in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-dont-open-a-new-window-with-url-request/m-p/658356#M14730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, that was easy,&lt;/P&gt;&lt;P&gt;Thank u so much Robert &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2015 15:39:07 GMT</pubDate>
    <dc:creator>EvelynHernandez</dc:creator>
    <dc:date>2015-05-12T15:39:07Z</dc:date>
    <item>
      <title>How to dont open a new window with URL Request</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-dont-open-a-new-window-with-url-request/m-p/658354#M14728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im trying to delevop a widget in Flex as the StreetView widget.&lt;/P&gt;&lt;P&gt;I need to open a website clicking in a widget button in flex and pass some parameters in the website url to show a picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this code but everytime when i click in the button the website window is opened again with the parameters that i want, so how can i pass different values everytime when the button is pressed and dont open the website window again? (idk if theres a way to refresh the same window and change the url parameters).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code, any example that u can have will be useful for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The widget (FIXED):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&lt;SPAN&gt;&amp;lt;viewer:BaseWidget xmlns:fx="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://ns.adobe.com/mxml/2009" rel="nofollow noopener noreferrer" target="_blank"&gt;http://ns.adobe.com/mxml/2009&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark"
&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:mx="library://ns.adobe.com/flex/mx"
&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:viewer="com.esri.viewer.*"
&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:util="widgets.StreetView.util.*"
&amp;nbsp;&amp;nbsp;&amp;nbsp; x="600" y="300"&amp;gt;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp; &amp;lt;fx:Script&amp;gt;
&amp;nbsp; &amp;lt;![CDATA[
&amp;nbsp; import flash.net.navigateToURL;

&amp;nbsp; import mx.controls.Alert;

&amp;nbsp; public var nFoto:String;
&amp;nbsp; public var nSSEE:String;

&amp;nbsp; protected function abrirVentanaExterna_clickHandler(event:MouseEvent):void
&amp;nbsp; {
&amp;nbsp; nFoto=txtNumFoto.text;
&amp;nbsp; nSSEE= txtNombreSSEE.text;


&amp;nbsp; var url:String = "widgets/InterfazExterna/GISRED360/index.html";
&amp;nbsp; var variables:URLVariables = new URLVariables();
&amp;nbsp; variables.numeroFoto = nFoto;
&amp;nbsp; variables.nombreSSEE = nSSEE;
&amp;nbsp; var request:URLRequest = new URLRequest(url);
&amp;nbsp; request.data = variables;
&amp;nbsp; try {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; navigateToURL(request, url);
&amp;nbsp; }
&amp;nbsp; catch (e:Error) {
&amp;nbsp; // handle error here
&amp;nbsp; Alert.show(e.toString());
&amp;nbsp; }

&amp;nbsp; }




&amp;nbsp; ]]&amp;gt;
&amp;nbsp; &amp;lt;/fx:Script&amp;gt;
&amp;nbsp; &amp;lt;fx:Declarations&amp;gt;

&amp;nbsp; &amp;lt;/fx:Declarations&amp;gt;
&amp;nbsp; &amp;lt;viewer:WidgetTemplate id="wTemplate"&amp;gt;
&amp;nbsp; &amp;lt;mx:VBox&amp;gt;
&amp;nbsp; &amp;lt;s:Label text="Indique nombre SSEE:"&amp;gt;
&amp;nbsp; &amp;lt;/s:Label&amp;gt;
&amp;nbsp; &amp;lt;mx:TextInput id="txtNombreSSEE" text="PLACILLA"/&amp;gt;
&amp;nbsp; &amp;lt;s:Label text="Indique numero de Foto:"&amp;gt;
&amp;nbsp; &amp;lt;/s:Label&amp;gt;
&amp;nbsp; &amp;lt;mx:TextInput id="txtNumFoto" text="1"/&amp;gt;
&amp;nbsp; &amp;lt;s:Button id="abrirVentanaExterna" label="Open HTML"
&amp;nbsp;&amp;nbsp; click="abrirVentanaExterna_clickHandler(event)" /&amp;gt;
&amp;nbsp; &amp;lt;/mx:VBox&amp;gt;



&amp;nbsp; &amp;lt;/viewer:WidgetTemplate&amp;gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;lt;/viewer:BaseWidget&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The directory in the Widget Package: See attachment file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the Website in the package.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur help! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mensaje editado por: Evelyn Hernandez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:51:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-dont-open-a-new-window-with-url-request/m-p/658354#M14728</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2021-12-12T03:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to dont open a new window with URL Request</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-dont-open-a-new-window-with-url-request/m-p/658355#M14729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evelyn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The way it is suppose to work is if you name the new window that you open then you can reuse that same window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;navigateToURL(request, "mycustomwindowname");&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 15:20:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-dont-open-a-new-window-with-url-request/m-p/658355#M14729</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-05-12T15:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to dont open a new window with URL Request</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-dont-open-a-new-window-with-url-request/m-p/658356#M14730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, that was easy,&lt;/P&gt;&lt;P&gt;Thank u so much Robert &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 15:39:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-dont-open-a-new-window-with-url-request/m-p/658356#M14730</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2015-05-12T15:39:07Z</dc:date>
    </item>
  </channel>
</rss>

