Select to view content in your preferred language

Widgets can be hyper linked?

580
3
12-05-2011 05:34 AM
SushmaSachidanand
New Contributor
Is there anyway where we can force widgets as URl and redirect to website?
For Ex.,
Help Widget - when I click that it has to redirect the website instead opening as a widget..
Any help or suggestions is highly appreciated.

Thanks!
Tags (2)
0 Kudos
3 Replies
by Anonymous User
Not applicable
Sushma:

I use the following code to launch a new window from a button within one of my widgets:

    var url:String = 'www.mywebpage.com';
    var urlRequest:URLRequest = new URLRequest(url);
    navigateToURL(urlRequest, '_blank');

so what you can do is to put this code inside of the widget init event and then either just have the widget close itself right afterwards (don't know if you can do that) or just have a "Help Opened in new window" displayed as the widgets contents ...

Hope that helps!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Guys,

   There is a widget designed specifically for this:

http://www.arcgis.com/home/item.html?id=5e4717fe1bb247f89b9092308e569c30

Also Flex Viewer/Widget Questions should be posted here:

http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex
0 Kudos
by Anonymous User
Not applicable
Robert - thanks again as always!
0 Kudos