I saw some websites have RSS feature, what is the code to do that so I can subscribe to some by putting on my web page?
Printable View
I saw some websites have RSS feature, what is the code to do that so I can subscribe to some by putting on my web page?
First you make the RSS feed. Then you link to it using a link tag which goes in your <head> section.
The feed file can have whatever extension you like but it must be standards compliant RSS, you can check that hereHTML Code:<link rel="alternate" type="application/rss+xml" title="My RSS Feed" href="rss.xml" />
http://feedvalidator.org/
The title in the link tag is optional but a good idea if you have multiple RSS feeds, also some RSS readers use it to identify your feed.
I tried this out, but it's not what I want... I don't want my blog to be RSS. In fact, I want to link other friend's blog to my blog using RSS... in other words, if they update their blog I should know.. just like Yahoo 360 if you happen to use one. Makes sense?
Well, that's exactly what an RSS reader is for... :)
The subscription methods vary depending on your software. Firefox has a (rather rudimentary, but working) RSS reader built in. If you use a browser with no RSS reader then you'll have to find one and there are probably plenty to choose from here :)
Ok, let me put it this way... cause I "kind of" understand what you mean. Say I have a friend blog with the website http://friend.com/feed.rss
I want to link that website to my webpage, not just <a href> tag, but as RSS feed.. meaning, when his blog is updated, I should know rather than going there to check every single time. Can I do that?
But what does you knowing when he updates his blog have to do with your website? :confused:
An RSS reader is for exactly that, quickly checking whether sites have been updated without having to visit them. I don't see how you bring your own website into this. Do you want a little box on your page with his last few RSS entries on there or something?
Yes, I want a section that allows me or visitors to see my friend's blog's updated from my site without having to visit his site all the time. Can I do that? What would be the code?
You have to retrieve his RSS feed and then create some markup from it to include on your site. The easiest way would probably XSLT, but you'd have to know XSLT.
http://www.w3schools.com/xsl/default.asp will be a good place to start :)Quote:
Originally Posted by CornedBee
Cheers,
Ryan Jones
By retrieving the RSS feed, you mean his website that ends with .xml? Like this http://rss.ent.yahoo.com/movies/movie_headlines.xml?Quote:
Originally Posted by CornedBee
Exactly.