Today is a big step forward for us, we are proud to feature the first showcase of our Drag&Drop implementation.
This is not what you may think about, you may think about drag & drop as being stuck inside your browser window but today what we’re going to show is a new way of conceiving drag & drop applications. The one you have always waiting for, imagine interacting with the browser chrome and your OS…
In the video, we are providing a simple yet powerful application to import a RSS feed in your webpage. The classical way is to type in the feed URL and then getting redirected to it, which commonly takes 3 to 5 steps. With this implementation you just have to drop the rss icon onto an appropriate target and that’s all folks!
We use YQL and JSONP to transform RSS into JSON and of course a Swell Element to dynamically attach the behavior to the webpage.
Here’s the Javascript code to handle this.
var dd2 = new Swell.Lib.DD.Droppable('moo'); dd2.ondrop = function(e) { var file = this.getData(e, 'DD_URL').split("\n")[0]; if (/^http\:\/\//i.test(file) !== true) { return false; } $('debug').setHTML('loading…'); e.target.className = ''; var yqlRequest = 'http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20rss%20where%20url=%22'+file+'%22&format=json&callback=moo'; html.script({ 'type' : 'text/javascript', 'src' : yqlRequest }).appendTo(document.getElementsByTagName('head')[0]); }
And the full video.
Tags: dataTransfer, dd, desktop to browser drag & drop, drag&drop, javascript dd, native dd











July 17th, 2009 at 1:39 pm
Nice work !
July 17th, 2009 at 8:17 pm
[...] More information here. [...]
July 21st, 2009 at 12:27 pm
Very very good! Nice work.
July 21st, 2009 at 2:29 pm
[...] SiteMap July 21, 20095:29 am Swells’ Drag and Drop manager – Interacting easily between desktop on web app Swell’s Drag and Drop application let you interact from within your desktop. “The video below, shows a simple yet powerful application to import a RSS feed in your webpage. The classical way’s to type in the feed URL and then getting redirected to it, which commonly takes 3 to 5 steps. With this implementation you just’ve to drop the rss icon onto an appropriate target and that’s all! We use YQL and JSONP to transform RSS into JSON and of course a Swell Element to dynamically attach the behavior to the webpage,” Christophe Eblé. [...]
July 21st, 2009 at 6:09 pm
[...] Bridging desktop and browser with Swell’s native Drag and Drop implementation A newish javascript framework that has a lofty goal of providing cross-browser drag & drop support between browser and desktop. Looks like they are making progress. Filed under: Uncategorized [...]
July 21st, 2009 at 8:06 pm
Great!
July 21st, 2009 at 9:43 pm
I love the DD. Keep up the good work, can’t wait to get my hands on this!
July 21st, 2009 at 11:13 pm
Wow!
July 24th, 2009 at 12:05 pm
WOW!
we could do that using only javascript.!?
WOW!
July 28th, 2009 at 8:57 am
Hey,
nice showcase but i got a question left. Like the guy before me asked, we could do that using only JavaScript? Or do you use Yahoo’s Browser Plus?
July 28th, 2009 at 10:05 am
We are only using JavaScript for this example.
December 26th, 2009 at 8:30 pm
Хм, к размышлению…