In this part 2 of my series on the various parts i used to build my new homepage for my website i will cover how i put my RSS feeds on the page.
Again to start with you will need to use jQuery and the Google JavaScript API. So insert the following two lines into the header of your HTML if you do not already have them included. You can also substitute the jQuery import from the Google CDN with a local address or another CDN.
[javascript]
[/javascript]
The next bit is we need a place holder so somewhere in the body of the document
[javascript]
Recent Blog Posts
[/javascript]
Then we just need the following function to fetch the last entries, then to write them out into the placeholder:
[javascript]
[/javascript]
Finally the ready function so when the document is ready the function will be executed and the feed entries into the page.
[javascript]
[/javascript]
And thats loading a RSS feed into a page using JavaScript.