PDA

View Full Version : Adding met office widget into extjs portlet.



ramotswa
18 Nov 2010, 8:17 AM
hi

I was wondering if anyone had managed to get a widget into a portlet panel.

the code for the widget (from the met office website)


var mettAppHtml ='<script type="text/javascript"> moDays=3; moColourScheme="default"; moFSSI=350928; moDomain="www.metoffice.gov.uk"; moMapDisplay="none"; moMapsRequired=""; moTemperatureUnits="C"; moSpeedUnits="M"; moShowWind="true"; moShowUV="true"; moShowFeelsLike="true"; moAllowUserLocation="true"; moStartupLanguage="en";</script';
mettAppHtml += '><script type="text/javascript" src="http://www.metoffice.gov.uk/public/pws/components/yoursite/loader.js"></script'
mettAppHtml += '>';


and I want to put it into the html of a portal; only that doesnt seem to work. I think it's got to do with the url




{
columnWidth: .33,
style: 'padding:10px',
items: [{
title: 'ChartBox,
items: [columnChart],
height: 300,
html: ''
}
, {
title: 'Another Panel 3',
// tools: tools,
html: mettAppHtml
}
]
}


Any ideas would be great.

Thanks