| Single Page Blog using Javascript | ||
|
Apr 10, 2007 09:31 AM
Single Page Blog using Javascript
While 4Syndication allows almost limitless flexibility in customizing the look and feel of your blog, in certain circumstances it's nice to embed an RSS feed in an existing page. Using JavaScript, the RSS feed can be used to populate a list of news on your web page. While this is technically trivial -- JavaScript libraries are available (like JQuery) that make parsing the XML content of the RSS feed very easy -- the recent versions of the FireFox and Internet Explorer browsers limit JavaScript's ability to access content hosted on a different server. There is a solution. Use an iframe and put your blog in a template that is suited to being displayed in an iframe; fixed size being the most important. The following embedded blog brings in content from the test blog and uses JavaScript to view the content in an attached area. The template used is called JavaScript: Single Page and the css is http://www.4syndication.com/resources/css/single_page.css. View the source to see how it is done. |
||
Hosted by
4Syndication
Copyright © 2007
4Syndication
|
||