rssTerminal.html: Fixing the 'null' is null or not an object in rss2.js when viewing the YaCy default Status page http://localhost:8080/Status.html with Internet Explorer

feed.xml: copy of feed.rss that helps Internet Explorer also read the Feed - workaround for the fix above
Problem is described in the forums and should be fixed better ;-(http://forum.yacy-websuche.de/viewtopic.php?f=6&t=2766&p=20702)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7196 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
mikeworks 14 years ago
parent 190de644dd
commit ad7efe6016

@ -0,0 +1,21 @@
<?xml version="1.0"?>
<rss>
<!-- rss standard channel -->
<channel>
<title>#[channel_title]#</title>
<description>#[channel_description]#</description>
<pubDate>#[channel_pubDate]#</pubDate>
<!-- messages -->
#{item}#
<item>
<title>#[title]#</title>
<link>#[link]#</link>
<description>#[description]#</description>
<pubDate>#[pubDate]#</pubDate>
<guid isPermaLink="false">#[guid]#</guid>
</item>
#{/item}#
</channel>
</rss>

@ -123,7 +123,14 @@ function idlepingExec() {
}
function load() {
getRSS("/api/feed.rss?count=80&set=" + set + "&requestCount=" + requestCount + "&time=" + (new Date()).getTime());
/* Check for Internet Explorer to use feed.xml instead of feed.rss fixing a problem with reading from the RSS Feed file which results in a null reference */
/* Problem is described in the forums and should be fixed by changing the MIME-Type for .rss files in the YaCy HTTPd */
if (navigator.appName=="Microsoft Internet Explorer")
{
getRSS("/api/feed.xml?count=80&set=" + set + "&requestCount=" + requestCount + "&time=" + (new Date()).getTime());
} else {
getRSS("/api/feed.rss?count=80&set=" + set + "&requestCount=" + requestCount + "&time=" + (new Date()).getTime());
}
requestCount++;
}

Loading…
Cancel
Save