Communicating between widgets without modifying one of the widgets

1804
2
06-12-2013 12:58 PM
JordanChapman
New Contributor
I have one widget that I cannot modify. It takes a GeoRSS file, adds points to the map with a marker and also places more info in an InfoWindow (the infoWindowRender is a PopUpRenderer) which appears when the user clicks the point.

I need to somehow communicate to another widget which I am developing, passing a single datum (a uid).

I'm not really sure if there is a way to do this without modifying the first widget, however I discovered that the infoWindow accepts html links, and that you can listen for links prefixed with "event:" via http://circlecube.com/2008/12/asfunction-texteventlink-tutorial-for-as3-flash-html-link-to-call-acti....

So now I'm wondering if there is any way to get a reference to the text in the infoWindow so that I can attach this listener, or if there is a better way to pass the id between the two widgets (because my way seems pretty odd).

Thanks
Tags (2)
0 Kudos
2 Replies
JordanChapman
New Contributor
You should be able to find your answer in one of these:

http://forums.arcgis.com/threads/38899-Widget-Communication-Explained

http://forums.arcgis.com/threads/13863-Communication-between-widgets?highlight=Communicating+widgets

R_


Thank you for your reply. I've already looked into communication between widgets using the method described in the links, however (as I stated in my original question) I cannot edit one of the widgets to include the adding of the necessary shared data. I understand that this may not be possible, and if it is it may be very "hacky", but I just wanted to make sure that it was indeed impossible or to see if there are any suggestions as to how I can overcome this obstacle.

Thanks
0 Kudos