Select to view content in your preferred language

Link Widget - open link in current window

1767
3
02-03-2012 11:45 AM
CraigErickson
New Contributor
Can the compiled version of Robert Scheitlin's Link Widget (v2.5) be configured to open a link in the current window instead of openning in a new window?
Tags (2)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
Craig,

   No not in the compiled version.
0 Kudos
NathanEnge
Esri Contributor
how about in the uncompiled 😃
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nathan,

   Sure just change this function:

            private function init():void
            {
                if (configXML)
                {
                    linkURL = configXML.linkurl;
                    navigateToURL(new URLRequest(linkURL),'_parent');
                    setState(WidgetStates.WIDGET_CLOSED);
                }
                AppEvent.addListener(AppEvent.WIDGET_RUN, checkIfLinkWidget);
                //ViewerContainer.addEventListener(AppEvent.WIDGET_RUN, checkIfLinkWidget);
            }


Don't forget to click the top arrow (promote) as shown below:
0 Kudos