<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SwellJS - another big fish in the sea &#187; dd</title>
	<atom:link href="http://blog.justswell.org/tag/dd/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.justswell.org</link>
	<description>well-minded javascript library</description>
	<lastBuildDate>Fri, 20 Aug 2010 20:48:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Bridging desktop and browser with Swell&#8217;s native Drag and Drop implementation</title>
		<link>http://blog.justswell.org/swell-javascript-native-dragdrop-implementation/</link>
		<comments>http://blog.justswell.org/swell-javascript-native-dragdrop-implementation/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 11:05:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DD]]></category>
		<category><![CDATA[Swell]]></category>
		<category><![CDATA[dataTransfer]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[desktop to browser drag & drop]]></category>
		<category><![CDATA[drag&drop]]></category>
		<category><![CDATA[javascript dd]]></category>
		<category><![CDATA[native dd]]></category>

		<guid isPermaLink="false">http://blog.justswell.org/?p=263</guid>
		<description><![CDATA[Don&#8217;t miss the other article of our Drag&#38;Drop series http://blog.justswell.org/drag-and-drop-files-from-your-desktop-to-your-browser-using-javascript/ Today is a big step forward for us, we are proud to feature the first showcase of our Drag&#38;Drop implementation. This is not what you may think about, you may think about drag &#38; drop as being stuck inside your browser window but today what [...]]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t miss the other article of our Drag&amp;Drop series <a href="http://blog.justswell.org/drag-and-drop-files-from-your-desktop-to-your-browser-using-javascript/">http://blog.justswell.org/drag-and-drop-files-from-your-desktop-to-your-browser-using-javascript/</a></p>
<p>Today is a big step forward for us, we are proud to feature the first showcase of our Drag&amp;Drop implementation.</p>
<p>This is not what you may think about, you may think about drag &amp; drop as being stuck inside your browser window but today what we&#8217;re going to show is a new way of conceiving drag &amp; drop applications. The one you have always waiting for, imagine interacting with the browser chrome and your OS&#8230;</p>
<p>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&#8217;s all folks!</p>
<p>We use YQL and JSONP to transform RSS into JSON and of course a Swell Element to dynamically attach the behavior to the webpage.</p>
<p>Here&#8217;s the Javascript code to handle this.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> dd2 <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Swell.<span style="color: #660066;">Lib</span>.<span style="color: #660066;">DD</span>.<span style="color: #660066;">Droppable</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'moo'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
dd2.<span style="color: #660066;">ondrop</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> file <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">getData</span><span style="color: #009900;">&#40;</span>e<span style="color: #339933;">,</span> <span style="color: #3366CC;">'DD_URL'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/^http\:\/\//i</span>.<span style="color: #660066;">test</span><span style="color: #009900;">&#40;</span>file<span style="color: #009900;">&#41;</span> <span style="color: #339933;">!==</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'debug'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">setHTML</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'loading…'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    e.<span style="color: #660066;">target</span>.<span style="color: #660066;">className</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">''</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #003366; font-weight: bold;">var</span> yqlRequest <span style="color: #339933;">=</span> <span style="color: #3366CC;">'http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20rss%20where%20url=%22'</span><span style="color: #339933;">+</span>file<span style="color: #339933;">+</span><span style="color: #3366CC;">'%22&amp;amp;format=json&amp;amp;callback=moo'</span><span style="color: #339933;">;</span>
    html.<span style="color: #660066;">script</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #3366CC;">'type'</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">'text/javascript'</span><span style="color: #339933;">,</span>
        <span style="color: #3366CC;">'src'</span>  <span style="color: #339933;">:</span> yqlRequest
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">appendTo</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'head'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>And the full video.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="581" height="363" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=5637267&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=c9ff23&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="581" height="363" src="http://vimeo.com/moogaloop.swf?clip_id=5637267&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=c9ff23&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.justswell.org/swell-javascript-native-dragdrop-implementation/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Swell update</title>
		<link>http://blog.justswell.org/swell-update/</link>
		<comments>http://blog.justswell.org/swell-update/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 12:03:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Swell]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[drag&drop]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[progress]]></category>
		<category><![CDATA[websockets]]></category>

		<guid isPermaLink="false">http://blog.justswell.org/?p=259</guid>
		<description><![CDATA[We&#8217;ve been hard at work for almost two months now on the Drag&#38;Drop Manager. The Swell guys tries to set high standards in terms of code quality and usability, but first and foremost, always think about the future of web appps and how they can ease the process of using these features in your fav [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve been hard at work for almost two months now on the <strong>Drag&amp;Drop Manager</strong>.</p>
<p>The Swell guys tries to set high standards in terms of code quality and usability, but first and foremost, always think about the future of web appps and how they can ease the process of using these features in your fav browser today.<br />
That&#8217;s why we are working on the first native Drag &amp; drop implementation in a Javascript library, just think about the possibilities of making the web interacting with your desktop&#8230;</p>
<p>We are also working on WebSockets implementation in Swell using XMLHttp Streaming, this will talk to Comet fans <img src='http://blog.justswell.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.justswell.org/swell-update/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

