the folks who bring you Allrecipes.com


« Baby It's Cold Outside | Main

January 07, 2005

Javascript Syndication II

In a previous post, I mentioned the javascript syndication of our Daily RSS Feeds.  I'm pretty sure we have two stable designs ready, if anyone out there is interested in trying them out. Please note that to try this, you must  have "edit" access to the HTML code of the page or blog in which you want the feed to appear.

Heres what to do:

1) Copy and paste one of the "Style Sheet" tags (below) inside the <HEAD> ... </HEAD> area of your page or blog.

Brief Version of Feed (good for column areas)
<link rel="Stylesheet" href="http://images.allrecipes.com/css/site/RSS/ar_cmpct.css" type="text/css" media="all" />

Detailed Version of Feed (good for a "center" column or full page)

<link rel="Stylesheet" href="http://images.allrecipes.com/css/site/RSS/ar_std.css" type="text/css" media="all" />

2)  Copy and paste the "Script Block" tag (below) into the HTML of your page or blog - wherever you would like the feed to appear.

<script language="JavaScript" src="http://rss.allrecipes.com/2/js.asp?n=1&s=ac" type="text/javascript"></script>

3) Edit the "Script Block" tag you just pasted as follows:

--edit the "n" parameter to select the feed you want
n=1  <== the Baking Feed
n=2  <== the Dinner Feed
n=3  <== the Entertaining Feed
n=4  <== the Healthy Feed

--edit the "s" parameter to select the format you want
s=ac  <== the "Brief Version"
s=as  <== the "Detailed Version"

4) Publish and view your page.  Note that a visitor's browser must have scripting enabled in order for them to view the feed.

5) Let us know how it works by coming back and commenting...

January 7, 2005 in Food and Drink | Permalink

TrackBack

TrackBack URL for this entry:
https://www.typepad.com/services/trackback/6a00d8345f674569e200d83429fd3353ef

Listed below are links to weblogs that reference Javascript Syndication II:

Comments

Do you have a regular RSS feed that I can subscribe to? The Javascript feed is cool if I want to embed content in my site, but I'd also love just a plain RSS feed that I can see in my reader...

Posted by: Mark Madsen | Jan 11, 2005 10:12:35 AM

We sure do:

go to the following for details...
http://allrecipes.com/rss/default.asp

or here for the OPML:
http://rss.allrecipes.com/ar.opml

Posted by: tim | Jan 11, 2005 2:04:00 PM

The comments to this entry are closed.