{"id":28,"date":"2006-01-29T15:20:56","date_gmt":"2006-01-29T23:20:56","guid":{"rendered":"http:\/\/simplepie.org\/blog\/2006\/01\/29\/delicious-ajax\/"},"modified":"2006-06-02T22:56:08","modified_gmt":"2006-06-03T06:56:08","slug":"delicious-ajax","status":"publish","type":"post","link":"http:\/\/simplepie.org\/blog\/2006\/01\/29\/delicious-ajax\/","title":{"rendered":"Del.icio.us AJAX"},"content":{"rendered":"<div class=\"chunk\">\n<p>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.<\/p>\n<\/div>\n<div class=\"chunk\">\n<h4>What you&#8217;ll need for this demo<\/h4>\n<ul>\n<li>A <a href=\"http:\/\/del.icio.us\">del.icio.us<\/a> account (preferably with bookmarks already in it)<\/li>\n<li>The <a href=\"\/downloads\/delicious-ajax.zip\">delicious-ajax<\/a> package<\/li>\n<li>And, of course, the latest <a href=\"http:\/\/www.simplepie.org\/downloads\/\">SimplePie<\/a> for the RSS parsing (1.0PR or later)<\/li>\n<\/ul>\n<\/div>\n<div class=\"chunk\">\n<h4>What you need to do<\/h4>\n<ol>\n<li>Unzip the <code>delicious-ajax.zip<\/code> file.<\/li>\n<li>In the resulting package is a PHP folder.  Drop the latest version of <code>simplepie.inc<\/code> into that folder.<\/li>\n<li>Edit the parameters in the JavaScript function near the bottom of the <code>demo.php<\/code> source to list your own del.icio.us feed URL and number of entries to show.<\/li>\n<li>Upload the whole <code>delicious<\/code> folder to your webserver (or your localhost)<\/li>\n<li>Set the cache folder to server-writable.<\/li>\n<li>Load the <code>demo.php<\/code> into your web browser, and voila!<\/li>\n<\/ol>\n<\/div>\n<div class=\"chunk\">\n<h4>Live Demo<\/h4>\n<p>&rarr; <a href=\"http:\/\/simplepie.org\/demo\/demos\/delicious-ajax\/\">Del.icio.us AJAX Demo<\/a><\/p>\n<\/div>\n<h4>Use it in your own site<\/h4>\n<p>I suppose I should also mention that this exact same code can be used for any feed &#8212; not just delicious feeds.  Of course, you might want to fine-tune it for services like <a href=\"http:\/\/www.last.fm\">Last.fm<\/a> and <a href=\"http:\/\/www.flickr.com\">Flickr<\/a>, but that shouldn&#8217;t be too hard.<\/p>\n<p>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.<\/p>\n<p>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 <code>&lt;div&gt;<\/code> with an <code>id<\/code> and calling the <code>process(id, url, qty)<\/code> function either at the end of the page&#8217;s source code, or have it fire on body onload.<\/p>\n<p>As simple as pie!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;ll need for this demo A del.icio.us account (preferably with bookmarks already in it) The delicious-ajax package And, of course, the latest SimplePie for the RSS parsing (1.0PR or later) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-demos"],"_links":{"self":[{"href":"http:\/\/simplepie.org\/blog\/wp-json\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/simplepie.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/simplepie.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/simplepie.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/simplepie.org\/blog\/wp-json\/wp\/v2\/comments?post=28"}],"version-history":[{"count":0,"href":"http:\/\/simplepie.org\/blog\/wp-json\/wp\/v2\/posts\/28\/revisions"}],"wp:attachment":[{"href":"http:\/\/simplepie.org\/blog\/wp-json\/wp\/v2\/media?parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/simplepie.org\/blog\/wp-json\/wp\/v2\/categories?post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/simplepie.org\/blog\/wp-json\/wp\/v2\/tags?post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}