Hello, i'm trying to reed a feed rss with opensocial 0.7. It works fine with all browser but doesn't work with ie7. The error is "method not supported". Here is the code I use:
function getRss()
{
var params = {};
params[opensocial.ContentRequestParameters.CONTENT_TYPE] = opensocial.ContentRequestParameters.ContentType.XML;
opensocial.makeRequest("http://www.esternando.it/site/blog/rss.aspx?idCat=0", makeRequest_callback, params);
/* I ALSO TRYIED THIS CODE BUT DOESN'T WORK, i think the error is always becaused the Microsoft.XMLDOM object fails the loadXML method
params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.FEED;
gadgets.io.makeRequest(http://www.esternando.it/site/blog/rss.aspx?idCat=0, makeRequest_callback, params);*/
}
function makeRequest_callback(response , url, error)
{
if (response == null)
{
return;
}
var html = new Array();
var itemList = response.getElementsByTagName("item");
}
I found the error in makeRequest function, that fail the loadXML method of Microsoft.XMLDOM ActiveX object, so the response is only a string, not the DOM, so it doesn't have the getElementsByTagName method. How can I resolve this problem? The RSS feed seems to be correct (other browser load correctly the feed), so I can't understand why Microsoft.XMLDOM is unable to load the file...
help please....