-
October 19th, 2006, 18:59 PM
#1
Succeded in braking Windo
TZ Veteran
including rss feeds into a page
I need help with this one. I want to include rss feed, for example the MS security bulletins into our intranet. So I want the feed to look like html.
There are tools out there that can convert rss2html but I was wondering if anyone knew of a php fuction to allow this without scripts from outside
-
February 22nd, 2007, 20:08 PM
#2
Bronze Member
Rss
There are a lot of help files on rss xml scripting. Look up anything from the following below might help...
file.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<xml-tag>
<child-xml-tag>
</child-xml-tag>
</xml-tag>
script.js
xmlDoc = document.implementation.createDocument("", "", null);
xmlDoc.onload = writeList;
xmlDoc.load("file.xml");
function writeList()
{
var rss = xmlDoc.getElementsByTagName("xml-tag");
for (j=0; j < rss[i].childNodes.length; j++) {
rss[i].childNodes[j].text;
if (rss[i].childNodes[j].nodeName == "#text") {
alert(rss[i].childNodes[j].nodeValue);
}
}
Trouble for me is that Im using firefox and none of this seems to work. Well i say none of this but a fair amount. cant get any values from childNode(s) pluss childNode doesn't work itself after trying lots of different code just to get this far !!!!
Can anyone help us please
-
February 23rd, 2007, 21:59 PM
#3
Bronze Member
-
March 3rd, 2007, 03:58 AM
#4
Succeded in braking Windo
TZ Veteran
I think we are looking at different points.
I was looking at putting rss feeds into a web page, and I did accomplish this with a php code. Quite nice actually. Now in our intranet page, we have a centralized site with news from MS bulletings, and other things, and it is updated automatically.
Now..from what you said, I am guessing that your problem is that you are doing the wrong bookmarking in Firefox. For RSS feeds to work you have to open the Manage bookmarks window, and then File and then New Live bookmark.
Doing it this way the RSS feed will show in the bookmarks as it should.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks