Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embedding an RSS feed into a web page

Status
Not open for further replies.

barrylowe

Programmer
Nov 6, 2001
188
GB
Can anyone help?

I'm trying to get my head round RSS feeds at the moment and am having a bit of difficulty.

I have downloaded a reader called FeedReader which allows me to subcribe to various feeds and then read them. However it runs as a desktop application.

I want to be able to embed a feed in one of my webpages so it displays as say a table of links.

Any help would be appreciated.
 
Magpie seems to be for PHP, I am just using standard HTML pages.

I wasn't really wanting to use a third-party product. Is there no simple way of jsut coding this?
 
If you could find a parsed feed (more on this in a minute) you could include it in an iframe perhaps.

However, RSS feeds are in a format that a browser will not, by defualt display as you intend. THey need to be read and presented by something. that's how the same feed can work for a number of different applications.

Depending on what news you want, there are a number of services that will pump ready formatted news out that you may be able to use. Try
Foamcow Heavy Industries - Web design and ranting
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
I wonder what possesses people to make those animated gifs. Do you just get up in the morning and think, "You know what web design r
 
If the RSS feed is in XML then try the XML forum. They have some good stuff there. I found a very simple method for reading and displaying a news feed of headlines and links to the stories.


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
But isn't there a difference between loading an RSS feed into a website without using any server side tricks and displaying the feed in your browser?

At the end of the day "something" needs to parse the feed. HTML alone cannot do that.

Foamcow Heavy Industries - Web design and ranting
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
I wonder what possesses people to make those animated gifs. Do you just get up in the morning and think, "You know what web design r
 
You're right, I am already aware of the Live Bookmarks in Firefox but that is not what I'm looking for.

I want to embed a feed in an existing HTML page.
 
I was thinking of Javascript too, but I thought it was "sandboxed" and so could not grab stuff outside it's own domain.

Isn't that Javascript snippet calling a script on their own server that parses the RSS feed and outputs a string of HTML? Consequently you aren't embedding the RSS feed but rather an already parsed version of it.

Foamcow Heavy Industries - Web design and ranting
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
I wonder what possesses people to make those animated gifs. Do you just get up in the morning and think, "You know what web design r
 
This is certainly much more like what I was looking for. I'll have a look into it.

Foamcow, are you implying that some server-side software has already manipulated the feed and this is how it can be easily embeded into the page?
 
The server side script gets the feed and parses it to output as HTML.


Try this for a JS solution.


If you put a feed URL into this tool it will generate some Javascript for your page.
But if you look at the javascript it is in actual fact simply acting as a wrapper around a php script running on their server that fetches and parses the feed. The output of the php script is embedded in your page using javascript.

It may well be just the thing you need though.




Foamcow Heavy Industries - Web design and ranting
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
I wonder what possesses people to make those animated gifs. Do you just get up in the morning and think, "You know what web design r
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top