consideroptions
05-06-2007, 04:21 PM
I made a script in javascript to read a flickr photofeed. It works great, except that it doesn't seem to load the feed with Safari. I'm not familiar with how this works. Here's how I'm doing it now:
function LoadRSS(rssFeed)
{
try
{
if (document.all)
{
var errorHappendHere = "Check Browser and security settings";
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
}
else
{
var errorHappendHere = "Error.";
xmlDoc = document.implementation.createDocument("","",null);
}
xmlDoc.async=false;
xmlDoc.load(rssFeed);
}
catch(e)
{
alert(errorHappendHere)
}
}
Could someone point me in the right direction here?
function LoadRSS(rssFeed)
{
try
{
if (document.all)
{
var errorHappendHere = "Check Browser and security settings";
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
}
else
{
var errorHappendHere = "Error.";
xmlDoc = document.implementation.createDocument("","",null);
}
xmlDoc.async=false;
xmlDoc.load(rssFeed);
}
catch(e)
{
alert(errorHappendHere)
}
}
Could someone point me in the right direction here?