Discussions
Help with script for custom HTML portlet
I am trying to create a custom portlet that will show the CEO the Dow Jones Industrial Average on his dashboard. Here's what I have...
function showticker(portlet)
{
portlet.setTitle('DJIA')
var content = "<table align=center border=0 cellpadding=3 cellspacing=0 width=100%><tr><td>"+
"<embed src="http://api.finance.yahoo.com/instrument/1.0/badge;chart=1y,,comparison;quote/HTML/f.white?AppID=dkFT59oiZwWImYP.w6ZIoPfo18Shtw--&sig=knb9_fIJ_JC2ZUqtwQxRhuFfT5A-&t=1233798297517></embed></td></tr></table>";
content = '<td><span>'+ content + '</span></td>'