<?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; showcase</title>
	<atom:link href="http://blog.justswell.org/tag/showcase/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>Drag and drop files from your desktop to your browser</title>
		<link>http://blog.justswell.org/drag-and-drop-files-from-your-desktop-to-your-browser-using-javascript/</link>
		<comments>http://blog.justswell.org/drag-and-drop-files-from-your-desktop-to-your-browser-using-javascript/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 14:45:00 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Swell]]></category>
		<category><![CDATA[desktop to browser drag & drop]]></category>
		<category><![CDATA[drag&drop]]></category>
		<category><![CDATA[playground]]></category>
		<category><![CDATA[showcase]]></category>

		<guid isPermaLink="false">http://blog.justswell.org/?p=274</guid>
		<description><![CDATA[Since the last post, we&#8217;ve received a huge number of requests and questions about drag&#38;dropping files onto your beloved browser. The mechanism behind is quite simple:  the Ajax library, the DOM element wrapper and the Asset component are assuring most of the work (handling the upload and the callback process), the DDM detects the dragged [...]]]></description>
			<content:encoded><![CDATA[<p>Since the last post, we&#8217;ve received a huge number of requests and questions about <strong>drag&amp;dropping files onto your beloved browser.</strong></p>
<p>The mechanism behind is quite simple:  the Ajax library, the DOM element wrapper and the Asset component are assuring most of the work (handling the upload and the callback process), the DDM detects the dragged files,  then your browser is doing the rest, defining the interaction between your desktop and the file input (nicely styled of course).</p>
<p>By now, two browsers are playing well with the demo (Safari 4, Chrome 2+)  while others degrades gracefully.</p>
<p><strong>Here&#8217;s the code :</strong></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">Swell.<span style="color: #660066;">Core</span>.<span style="color: #660066;">Event</span>.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'upload'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'change'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'loader'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'foorm'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">xhr</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> currentEl <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'upload'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">current</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'filelist'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> len <span style="color: #339933;">=</span> currentEl.<span style="color: #660066;">files</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> len<span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'filelist'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">appendHTML</span><span style="color: #009900;">&#40;</span>currentEl.<span style="color: #660066;">files</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fileName</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'
'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #003366; font-weight: bold;">var</span> imgs <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">responseText</span>.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'|'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #003366; font-weight: bold;">new</span> Swell.<span style="color: #660066;">Core</span>.<span style="color: #660066;">Asset</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'img'</span><span style="color: #339933;">,</span> imgs<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>img<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'loader'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            $<span style="color: #009900;">&#40;</span>img<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">appendTo</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'image-container'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p style="text-align: left;">
<p style="text-align: left;"><strong>The demo:</strong></p>
<p style="text-align: left;">
<p style="text-align: left;"><a href="http://playground.justswell.org/drag-and-drop-file-upload.html"><img class="size-full wp-image-278 aligncenter" title="ddimages" src="http://blog.justswell.org/wp-content/uploads/2009/07/ddimages.png" alt="ddimages" width="400" height="402" /></a><strong>And the video:<br />
</strong></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=5802353&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=5802353&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/drag-and-drop-files-from-your-desktop-to-your-browser-using-javascript/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>Swell Widget example: ImageZoom</title>
		<link>http://blog.justswell.org/swell-widget-example-imagezoom/</link>
		<comments>http://blog.justswell.org/swell-widget-example-imagezoom/#comments</comments>
		<pubDate>Mon, 11 May 2009 22:16:46 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Swell]]></category>
		<category><![CDATA[showcase]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://blog.justswell.org/?p=241</guid>
		<description><![CDATA[As Beta release is around the corner, we are glad today to provide the first swell widget. This widgets makes intensive use of Core components and shows how much power you have at your fingertips&#8230; This is a widget that ecommerce companies often look for, which enables to zoom on an image and view much [...]]]></description>
			<content:encoded><![CDATA[<p>As Beta release is around the corner, we are glad today to provide the first swell widget. This widgets makes intensive use of Core components and shows how much power you have at your fingertips&#8230;</p>
<p>This is a widget that ecommerce companies often look for, which enables to zoom on an image and view much more details than on a thumbnail, without having to display the entire image; providing better user experience.</p>
<p style="text-align: center;"><a href="http://playground.justswell.org/widget-example-image-zoom.html" target="_blank"><img class="size-full wp-image-250 aligncenter" title="imagezoom" src="http://blog.justswell.org/wp-content/uploads/2009/05/imagezoom.png" alt="imagezoom" width="400" height="243" /></a></p>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://blog.justswell.org/swell-widget-example-imagezoom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trigger image loading with Javascript and Swell</title>
		<link>http://blog.justswell.org/trigger-image-loading-with-javascript-and-swell/</link>
		<comments>http://blog.justswell.org/trigger-image-loading-with-javascript-and-swell/#comments</comments>
		<pubDate>Thu, 07 May 2009 14:47:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Swell]]></category>
		<category><![CDATA[image loading]]></category>
		<category><![CDATA[Lazy loading]]></category>
		<category><![CDATA[showcase]]></category>
		<category><![CDATA[triggering image loading]]></category>

		<guid isPermaLink="false">http://blog.justswell.org/?p=214</guid>
		<description><![CDATA[As we are seeing growing interest for Swell, we now want to show how to use it and how cool it is , this is according to the milestones on our Trac a necessity and this will as well open up the project to a larger public. One of the Core component (Lazy loader) plays [...]]]></description>
			<content:encoded><![CDATA[<p>As we are seeing growing interest for Swell, we now want to show how to use it and how cool it is <img src='http://blog.justswell.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> , this is according to the milestones on our Trac a necessity and this will as well open up the project to a larger public.</p>
<p>One of the Core component (Lazy loader) plays well with another (Element) in this example.</p>
<p><a href="http://playground.justswell.org/lazy-loading-images-with-triggers.html" target="_blank"><img class="aligncenter size-full wp-image-215" title="playground" src="http://blog.justswell.org/wp-content/uploads/2009/05/playground.jpg" alt="playground" width="400" height="257" /></a></p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.justswell.org/trigger-image-loading-with-javascript-and-swell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

