Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

Loading widget programmatically fails in IE 8&9

$
0
0
Hi !

I need to load one of widgets dynamically (as a response to certain URL parameter).
I decided that the most suitable place to do it is HeaderControllerWidget:
Code:

                                if ((ViewerContainer.urlConfigParams.street != null && ViewerContainer.urlConfigParams.house != null) )
                                {
                                        var addrWidgetID:Number;
                                        var addrWidget:IBaseWidget;
                                        addrWidgetID = ViewerContainer.getInstance().widgetManager.getWidgetId(addrWidgetLabel);
                                        addrWidget = ViewerContainer.getInstance().widgetManager.getWidget(addrWidgetID,true);
                                        return;
                                }

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.
Here is the link:
Test link
When cleaning the IE cache, the first run is successful, but only once. I tried to play with cache definitions without any success.

Can somebody please shed light on this strainge behavior ?

Thanks in advance.
Regards,
Gennady

Viewing all articles
Browse latest Browse all 2097

Trending Articles