<?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: Loading widget programmatically fails in IE 8&amp;amp;9 in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/loading-widget-programmatically-fails-in-ie-8-amp/m-p/54665#M2214</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally I've found... Not the cause of the problem yet, but at list the work around.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or may be my previous way should be called "work around"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In short, instead of calling &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;ViewerContainer.getInstance().widgetManager.getWidget(addrWidgetID,true);&lt;/PRE&gt;&lt;SPAN&gt;directly I've used &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;AppEvent.dispatch(AppEvent.WIDGET_RUN, addrWidgetID);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe anyway somebody can explain what was wrong in the first version and why it didn't work only in IE8 and 9?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gennady&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Aug 2013 04:45:27 GMT</pubDate>
    <dc:creator>GennadyOster</dc:creator>
    <dc:date>2013-08-26T04:45:27Z</dc:date>
    <item>
      <title>Loading widget programmatically fails in IE 8&amp;amp;amp;9</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/loading-widget-programmatically-fails-in-ie-8-amp/m-p/54664#M2213</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 need to load one of widgets dynamically (as a response to certain URL parameter). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I decided that the most suitable place to do it is HeaderControllerWidget:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((ViewerContainer.urlConfigParams.street != null &amp;amp;&amp;amp; ViewerContainer.urlConfigParams.house != null) )
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var addrWidgetID:Number;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var addrWidget:IBaseWidget;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; addrWidgetID = ViewerContainer.getInstance().widgetManager.getWidgetId(addrWidgetLabel);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; addrWidget = ViewerContainer.getInstance().widgetManager.getWidget(addrWidgetID,true);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works fine in IE10, Chrome and FF, but in the IE8/9 the widget is never loaded and cursor stays in the busy state. System is waiting, and when I load this widget manually - it continues to function properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the link: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://gis.ramat-hasharon.muni.il/RHS/?config=general.xml&amp;amp;street=120&amp;amp;house=16" rel="nofollow noopener noreferrer" target="_blank"&gt;Test link&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;When cleaning the IE cache, the first run is successful, but only once. I tried to play with cache definitions without any success.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can somebody please shed light on this strainge behavior ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gennady&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:04:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/loading-widget-programmatically-fails-in-ie-8-amp/m-p/54664#M2213</guid>
      <dc:creator>GennadyOster</dc:creator>
      <dc:date>2021-12-10T22:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Loading widget programmatically fails in IE 8&amp;9</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/loading-widget-programmatically-fails-in-ie-8-amp/m-p/54665#M2214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally I've found... Not the cause of the problem yet, but at list the work around.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or may be my previous way should be called "work around"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In short, instead of calling &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;ViewerContainer.getInstance().widgetManager.getWidget(addrWidgetID,true);&lt;/PRE&gt;&lt;SPAN&gt;directly I've used &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;AppEvent.dispatch(AppEvent.WIDGET_RUN, addrWidgetID);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe anyway somebody can explain what was wrong in the first version and why it didn't work only in IE8 and 9?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gennady&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 04:45:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/loading-widget-programmatically-fails-in-ie-8-amp/m-p/54665#M2214</guid>
      <dc:creator>GennadyOster</dc:creator>
      <dc:date>2013-08-26T04:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Loading widget programmatically fails in IE 8&amp;9</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/loading-widget-programmatically-fails-in-ie-8-amp/m-p/54666#M2215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Gennady,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; The first code is for getting a reference to the widget to be able to call a function in the widget but it this can sometimes cause some timing issues as you have found. The second code is just for running (opening) the widget and is better suited for just opening the widget.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 11:12:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/loading-widget-programmatically-fails-in-ie-8-amp/m-p/54666#M2215</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-08-26T11:12:01Z</dc:date>
    </item>
  </channel>
</rss>

