Hi guy’s n girls,
I have managed to get the google feeds working in all the major browsers except IE8 … (of course!)
Whenever I test my page in IE I get this error:
Message: ‘google’ is undefined
Line: 57
Char: 3
Code: 0
I have been searching the web for the last few hours and have not found out a way round this or what it is im doing wrong.
Please can some one take a look at this for me?
Here’s my code:
<link rel="stylesheet" type="text/css" href="css/rss_style.css"/>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js" type="text/javascript"></script>
<script type="text/javascript">
google.load("feeds", "1");
function OnLoad() {
var feeds = [
{
title: 'Financial Times',
url: 'http://www.ft.com/rss/markets/'
},
{
title: 'Yahoo Finance',
url: 'http://finance.yahoo.com/rss/topstories'
},
{
title: 'Business Week',
url: 'http://www.businessweek.com/finance/index.rss'
}
];
var options = {
numResults : 3,
stacked : true,
horizontal : false,
title : "Latest News"
};
new GFdynamicFeedControl(feeds, 'content', options);
document.getElementById('content').style.width = "205px";
}
google.setOnLoadCallback(OnLoad);
</script>
And this is just the html:
<div id="content">
<span style="color:#676767;font-size:11px;margin:10px;padding:4px;">Loading...</span>
</div>
Thanks in adavance