<?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>Lab of Chowky &#187; drag and drop</title>
	<atom:link href="http://lab.chowky.com/tag/drag-and-drop/feed/" rel="self" type="application/rss+xml" />
	<link>http://lab.chowky.com</link>
	<description>分享ＩＴ技術</description>
	<lastBuildDate>Sun, 01 Jan 2012 06:13:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>html 5 支援drag and drop  </title>
		<link>http://lab.chowky.com/2009/07/html-5-%e6%94%af%e6%8f%b4drag-and-drop-%c2%a0/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=html-5-%25e6%2594%25af%25e6%258f%25b4drag-and-drop-%25c2%25a0</link>
		<comments>http://lab.chowky.com/2009/07/html-5-%e6%94%af%e6%8f%b4drag-and-drop-%c2%a0/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 16:16:54 +0000</pubDate>
		<dc:creator>Chowky</dc:creator>
				<category><![CDATA[Jquery, Mootools]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[css 3]]></category>
		<category><![CDATA[drag and drop]]></category>
		<category><![CDATA[html 5]]></category>

		<guid isPermaLink="false">http://lab.chowky.com/?p=808</guid>
		<description><![CDATA[下一個web　standard，如無意外，應該會是html５＋css３。 This example only works in Firefox 3.5 and Safari 4 but here&#8217;s a quick tour of how it works. IE始終都未support。這對於web developer 來說，是一個nightmare，一方面要支援ie，又要支援firefox，safari。 但是，要利用新的html５的function就要放棄ie的support。 chowky對這方面還是樂觀的。later可能會好一點（仍然抱有信念）。 （說完未？） ok&#8230;back　to　topic 原來要make　drag　and　drop　都不太困難。 會否，因為html５會令html　更普及？ 1 2 3 4 5 &#160; &#60;li draggable=&#34;true&#34; id=&#34;file1&#34; ondragstart=&#34;drag(this, event)&#34;&#62;&#60;span&#62;filename.txt&#60;/span&#62;&#60;/li&#62; To create a draggable area you can do this. &#160; &#60;div id=&#34;trash&#34; ondrop=&#34;drop(this, event)&#34; ondragenter=&#34;return [...]]]></description>
			<content:encoded><![CDATA[<p>下一個web　standard，如無意外，應該會是html５＋css３。</p>
<blockquote><p>This example only works in Firefox 3.5 and Safari 4 but here&#8217;s a quick tour of how it works.</p></blockquote>
<p>IE始終都未support。這對於web developer 來說，是一個nightmare，一方面要支援ie，又要支援firefox，safari。</p>
<p>但是，要利用新的html５的function就要放棄ie的support。</p>
<p>chowky對這方面還是樂觀的。later可能會好一點（<strong>仍然</strong>抱有信念）。</p>
<p>（說完未？）<br />
ok&#8230;back　to　topic</p>
<p>原來要make　drag　and　drop　都不太困難。<br />
會否，因為html５會令html　更普及？</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;">&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> draggable<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;file1&quot;</span> ondragstart<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;drag(this, event)&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>filename.txt<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span> 
To create a draggable area you can do this.
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;trash&quot;</span> ondrop<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;drop(this, event)&quot;</span> ondragenter<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;return false&quot;</span> ondragover<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;return false&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>

<p>之後再加少少javascript　code</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> drag<span style="color: #009900;">&#40;</span>target<span style="color: #339933;">,</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    e.<span style="color: #660066;">dataTransfer</span>.<span style="color: #660066;">setData</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Text'</span><span style="color: #339933;">,</span> target.<span style="color: #660066;">id</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;">function</span> drop<span style="color: #009900;">&#40;</span>target<span style="color: #339933;">,</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> id <span style="color: #339933;">=</span> e.<span style="color: #660066;">dataTransfer</span>.<span style="color: #660066;">getData</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Text'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    target.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    e.<span style="color: #660066;">preventDefault</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Source: <a href="http://shapeshed.com/journal/drag_and_drop_in_html5/">http://shapeshed.com/journal/drag_and_drop_in_html5/</a></p>
 <img src="http://lab.chowky.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=808" width="1" height="1" style="display: none;" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flab.chowky.com%2F2009%2F07%2Fhtml-5-%25e6%2594%25af%25e6%258f%25b4drag-and-drop-%25c2%25a0%2F&amp;title=html%205%20%E6%94%AF%E6%8F%B4drag%20and%20drop%20%C2%A0" id="wpa2a_2"><img src="http://lab.chowky.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://lab.chowky.com/2009/07/html-5-%e6%94%af%e6%8f%b4drag-and-drop-%c2%a0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[AIR] copy and paste, drag and drop</title>
		<link>http://lab.chowky.com/2009/05/air-copy-and-paste-drag-and-drop/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=air-copy-and-paste-drag-and-drop</link>
		<comments>http://lab.chowky.com/2009/05/air-copy-and-paste-drag-and-drop/#comments</comments>
		<pubDate>Tue, 26 May 2009 17:02:54 +0000</pubDate>
		<dc:creator>Chowky</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[copy and padste]]></category>
		<category><![CDATA[drag and drop]]></category>

		<guid isPermaLink="false">http://lab.chowky.com/?p=573</guid>
		<description><![CDATA[雖然這個分明就是書本的promotion，不過仍是非常實用。 一個chatper 的preview: (chowky 心想: &#8220;小財不出、大財不入呢&#8221; ) Source: http://www.adobe.com/devnet/air/flex/articles/bk_copy_paste_drag_drop.html]]></description>
			<content:encoded><![CDATA[<p>雖然這個分明就是書本的promotion，不過仍是非常實用。</p>
<p>一個chatper 的preview: (chowky 心想: &#8220;小財不出、大財不入呢&#8221; )</p>
<p><img src="http://lab.chowky.com/wp-content/uploads/2009/05/book_air_in_action.jpg" alt="book_air_in_action" title="book_air_in_action" width="160" height="160" class="alignnone size-full wp-image-574" /></p>
<p>Source: <a href="http://www.adobe.com/devnet/air/flex/articles/bk_copy_paste_drag_drop.html">http://www.adobe.com/devnet/air/flex/articles/bk_copy_paste_drag_drop.html</a></p>
 <img src="http://lab.chowky.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=573" width="1" height="1" style="display: none;" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flab.chowky.com%2F2009%2F05%2Fair-copy-and-paste-drag-and-drop%2F&amp;title=%5BAIR%5D%20copy%20and%20paste%2C%20drag%20and%20drop" id="wpa2a_4"><img src="http://lab.chowky.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://lab.chowky.com/2009/05/air-copy-and-paste-drag-and-drop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[jQuery] Full Calendar with drag and drop function</title>
		<link>http://lab.chowky.com/2009/05/jquery-full-calendar-with-drag-and-drop-function/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=jquery-full-calendar-with-drag-and-drop-function</link>
		<comments>http://lab.chowky.com/2009/05/jquery-full-calendar-with-drag-and-drop-function/#comments</comments>
		<pubDate>Sat, 02 May 2009 18:17:35 +0000</pubDate>
		<dc:creator>Chowky</dc:creator>
				<category><![CDATA[Jquery, Mootools]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[drag and drop]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://lab.chowky.com/?p=344</guid>
		<description><![CDATA[Chowky 覺得這個component 很簡單，沒有花巧的effect，已經不錯的，effect 可以自己再找不同的再plug 上去。 總括來講，一個不錯的calendar component in jquery. Source: http://arshaw.com/fullcalendar/ License: MIT]]></description>
			<content:encoded><![CDATA[<p>Chowky 覺得這個component 很簡單，沒有花巧的effect，已經不錯的，effect 可以自己再找不同的再plug 上去。</p>
<p>總括來講，一個不錯的calendar component in jquery.</p>
<p><img class="alignnone size-medium wp-image-345" title="fullcalendar" src="http://lab.chowky.com/wp-content/uploads/2009/05/fullcalendar-300x254.png" alt="fullcalendar" width="434" height="367" /></p>
<p>Source: <a href="http://arshaw.com/fullcalendar/">http://arshaw.com/fullcalendar/</a></p>
<p>License: MIT</p>
 <img src="http://lab.chowky.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=344" width="1" height="1" style="display: none;" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flab.chowky.com%2F2009%2F05%2Fjquery-full-calendar-with-drag-and-drop-function%2F&amp;title=%5BjQuery%5D%20Full%20Calendar%20with%20drag%20and%20drop%20function" id="wpa2a_6"><img src="http://lab.chowky.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://lab.chowky.com/2009/05/jquery-full-calendar-with-drag-and-drop-function/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

