Display Javascript in InfoWindow

Discussion created by akashmagoon on Jun 8, 2013
Latest reply on Jun 13, 2013 by brittneygibbons
I have infowindows show up at certain markers on my map. How can I have my infowindow display a Javascript Based RSS FEED...

The code I want to display is something similiar to this:

<script language="JavaScript" src="http://feed.akeworld.com/feed/feed2js.php?src=http%3A%2F%2Fakeworld.com%2Frss.php%3Fcategory%3D%26status%3D%26group%3D&chan=y&num=4&utf=y"  charset="UTF-8" type="text/javascript"></script>

Here is the code for my infowindow

var points = {
"points": [[-122.63,45.51],[-122.56,45.51],[-122.56,45.55],[-122.62,45.00],[77,19]],
"spatialReference": ({ "wkid": 4326 })
var mp = new esri.geometry.Multipoint(points);
var wm_mp = esri.geometry.geographicToWebMercator(mp);

var sms = new esri.symbol.SimpleMarkerSymbol();
var InfoTemplate = new esri.InfoTemplate("Blah Blah InfoWindow","DISPLAY RSS FEED HERE");
var graphic = new esri.Graphic(wm_mp, sms, '', infoTemplate);