Weigh-in with your opinion! Let us know what you think. Goals for SimplePie 2.

SimplePie Developer Weblog.  Not that we really have anything to say, but if you'll listen, why not?

Del.icio.us AJAX 29 Jan 2006 

In this demo, I will show you how to use the Ajax capabilities of Moo.ajax with Prototype Lite in conjunction with SimplePie and del.icio.us.

What you’ll need for this demo

What you need to do

  1. Unzip the delicious-ajax.zip file.
  2. In the resulting package is a PHP folder. Drop the latest version of simplepie.inc into that folder.
  3. Edit the parameters in the JavaScript function near the bottom of the demo.php source to list your own del.icio.us feed URL and number of entries to show.
  4. Upload the whole delicious folder to your webserver (or your localhost)
  5. Set the cache folder to server-writable.
  6. Load the demo.php into your web browser, and voila!

Live Demo

Del.icio.us AJAX Demo

Use it in your own site

I suppose I should also mention that this exact same code can be used for any feed — not just delicious feeds. Of course, you might want to fine-tune it for services like Last.fm and Flickr, but that shouldn’t be too hard.

I made it a point to keep all of the various code languages as separate as possible. This should make it simple to bring this demo into your own webpages.

The only things that are required for this to work are: (1) simplepie.inc, (2) process.php, (3) prototype.lite.js, (4) moo.ajax.js, and (5) delicious-ajax.js. These five files bring the backend and frontend pieces together so that all you have to worry about is coding a <div> with an id and calling the process(id, url, qty) function either at the end of the page’s source code, or have it fire on body onload.

As simple as pie!

Posted by Ryan Parman at 3:20 pm. Comments (2)

Comment by Werner Bohlmann 20 Jul 2006 at 5:10 am 

Yes, great idea!
I would like to show the – tag content in full lenght in the box. How to make that?

I am not a programmer. I would like as simple as possible.

Permalink

Comment by xinroman 3 Dec 2006 at 5:49 pm 

Looks like the file is called index.php, not demo.php.

Permalink