<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Tutorial: How to create a simple drag and drop with jQuery</title>
	<atom:link href="http://www.ericbieller.com/2010/06/24/how-to-create-a-simple-drag-and-drop-with-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ericbieller.com/2010/06/24/how-to-create-a-simple-drag-and-drop-with-jquery/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 27 Jan 2012 02:37:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: 15 Best jQuery Drag And Drop Plugins &#124; ZoomZum</title>
		<link>http://www.ericbieller.com/2010/06/24/how-to-create-a-simple-drag-and-drop-with-jquery/comment-page-1/#comment-8402</link>
		<dc:creator>15 Best jQuery Drag And Drop Plugins &#124; ZoomZum</dc:creator>
		<pubDate>Thu, 20 Oct 2011 08:17:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericbieller.com/?p=211#comment-8402</guid>
		<description>[...] 14) Simple Drag n Drop [...]</description>
		<content:encoded><![CDATA[<p>[...] 14) Simple Drag n Drop [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.ericbieller.com/2010/06/24/how-to-create-a-simple-drag-and-drop-with-jquery/comment-page-1/#comment-6746</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 07 Sep 2011 01:53:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericbieller.com/?p=211#comment-6746</guid>
		<description>What about keeping reference to the dragged item? How would I be able to manipulate that DOM element after having successfully been dropped in the trash? </description>
		<content:encoded><![CDATA[<p>What about keeping reference to the dragged item? How would I be able to manipulate that DOM element after having successfully been dropped in the trash?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ericbieller</title>
		<link>http://www.ericbieller.com/2010/06/24/how-to-create-a-simple-drag-and-drop-with-jquery/comment-page-1/#comment-4157</link>
		<dc:creator>ericbieller</dc:creator>
		<pubDate>Thu, 23 Jun 2011 05:18:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericbieller.com/?p=211#comment-4157</guid>
		<description>Thanks for the tip. I went ahead and updated the code..  </description>
		<content:encoded><![CDATA[<p>Thanks for the tip. I went ahead and updated the code..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: macem</title>
		<link>http://www.ericbieller.com/2010/06/24/how-to-create-a-simple-drag-and-drop-with-jquery/comment-page-1/#comment-4002</link>
		<dc:creator>macem</dc:creator>
		<pubDate>Sun, 19 Jun 2011 18:11:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericbieller.com/?p=211#comment-4002</guid>
		<description>.css() method is very slow use css class instead </description>
		<content:encoded><![CDATA[<p>.css() method is very slow use css class instead</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krishna Upadhyay</title>
		<link>http://www.ericbieller.com/2010/06/24/how-to-create-a-simple-drag-and-drop-with-jquery/comment-page-1/#comment-3463</link>
		<dc:creator>Krishna Upadhyay</dc:creator>
		<pubDate>Fri, 03 Jun 2011 18:09:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericbieller.com/?p=211#comment-3463</guid>
		<description>good understandable code...... </description>
		<content:encoded><![CDATA[<p>good understandable code&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saad</title>
		<link>http://www.ericbieller.com/2010/06/24/how-to-create-a-simple-drag-and-drop-with-jquery/comment-page-1/#comment-2928</link>
		<dc:creator>Saad</dc:creator>
		<pubDate>Tue, 26 Apr 2011 19:22:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericbieller.com/?p=211#comment-2928</guid>
		<description>wonderful code. ill be using this much, thank u so much </description>
		<content:encoded><![CDATA[<p>wonderful code. ill be using this much, thank u so much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mcavady</title>
		<link>http://www.ericbieller.com/2010/06/24/how-to-create-a-simple-drag-and-drop-with-jquery/comment-page-1/#comment-2923</link>
		<dc:creator>mcavady</dc:creator>
		<pubDate>Tue, 26 Apr 2011 16:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericbieller.com/?p=211#comment-2923</guid>
		<description>Thanks for this! nice and easy. :) </description>
		<content:encoded><![CDATA[<p>Thanks for this! nice and easy. <img src='http://www.ericbieller.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.ericbieller.com/2010/06/24/how-to-create-a-simple-drag-and-drop-with-jquery/comment-page-1/#comment-2723</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Thu, 07 Apr 2011 18:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericbieller.com/?p=211#comment-2723</guid>
		<description>Glad it&#039;s working for you. Here is a resource with a working sample of adding drop/drag to dynamically created elements. Let me know if you still cannot get it working.  
  &lt;a href=&quot;http://forum.jquery.com/topic/how-do-i-bind-the-droppable-event-to-dynamically-created-nodes&quot; rel=&quot;nofollow&quot;&gt;http://forum.jquery.com/topic/how-do-i-bind-the-d...&lt;/a&gt; </description>
		<content:encoded><![CDATA[<p>Glad it&#039;s working for you. Here is a resource with a working sample of adding drop/drag to dynamically created elements. Let me know if you still cannot get it working. </p>
<p>  <a href="http://forum.jquery.com/topic/how-do-i-bind-the-droppable-event-to-dynamically-created-nodes" rel="nofollow">http://forum.jquery.com/topic/how-do-i-bind-the-d&#8230;</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose Gonzalez</title>
		<link>http://www.ericbieller.com/2010/06/24/how-to-create-a-simple-drag-and-drop-with-jquery/comment-page-1/#comment-2708</link>
		<dc:creator>Jose Gonzalez</dc:creator>
		<pubDate>Wed, 06 Apr 2011 15:53:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericbieller.com/?p=211#comment-2708</guid>
		<description>Hi Eric 
 
I have been implementing this drag and drop script in my web side, It works very well. I also have changed for at get the ids of the elements involve 
 
But I run into a big problems if I try to create dynamically new elements 
I have search for info about .live function but I cannot make it work, do you know if its possible to change this script to make it work with new elements added with JavaScript or Ajax 
 
Here I paste the code, I will appreciate a lot your help 
 
Dragdrop.js 
 
var lll = &#039;&#039;; 
$(function() { 
        $(&#039;div[id^=&quot;itemsub&quot;]&#039;).draggable({	 
			drag: function() { 
			   lll = $(this).attr(&quot;id&quot;); 
 
            }, 
						    
            revert: true 
        }); 
        $(&#039;div[id^=&quot;trashsub&quot;]&#039;).droppable({ 
                tolerance: &#039;touch&#039;, 
                over: function() { 
                       $(this).css(&#039;backgroundColor&#039;, &#039;#cedae3&#039;); 
                }, 
                out: function() { 
                        $(this).css(&#039;backgroundColor&#039;, &#039;#a6bcce&#039;); 
                }, 
                drop: function() { 
                        var answer = confirm(&#039;Permantly delete this item? from &#039;+lll+&#039; to&#039;+$(this).attr(&quot;id&quot;)); 
                        $(this).css(&#039;backgroundColor&#039;, &#039;#a6bcce&#039;); 
                } 
        }); 
		 
}); 
 
Dragdrop.html 
 
  
  
  
Drag &amp; Drop with jQuery  
  
  
  
  
  
  
  
  
 
  function gethtml(){ 
    document.getElementById(&quot;newt&quot;).innerHTML = &#039;Item 4 &#039; 
  } 
 
  
  
          
                Trash  
          
          
                Trash2  
          
          
                Trash3  
          
         
          
                Item 1  
                Item 2  
                Item 3  
          
         
        &lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;aaaa&lt;/a&gt; </description>
		<content:encoded><![CDATA[<p>Hi Eric</p>
<p>I have been implementing this drag and drop script in my web side, It works very well. I also have changed for at get the ids of the elements involve</p>
<p>But I run into a big problems if I try to create dynamically new elements</p>
<p>I have search for info about .live function but I cannot make it work, do you know if its possible to change this script to make it work with new elements added with JavaScript or Ajax</p>
<p>Here I paste the code, I will appreciate a lot your help</p>
<p>Dragdrop.js</p>
<p>var lll = &#039;&#039;;</p>
<p>$(function() {</p>
<p>        $(&#039;div[id^=&quot;itemsub&quot;]&#039;).draggable({	</p>
<p>			drag: function() {</p>
<p>			   lll = $(this).attr(&quot;id&quot;);</p>
<p>            },</p>
<p>            revert: true</p>
<p>        });</p>
<p>        $(&#039;div[id^=&quot;trashsub&quot;]&#039;).droppable({</p>
<p>                tolerance: &#039;touch&#039;,</p>
<p>                over: function() {</p>
<p>                       $(this).css(&#039;backgroundColor&#039;, &#039;#cedae3&#039;);</p>
<p>                },</p>
<p>                out: function() {</p>
<p>                        $(this).css(&#039;backgroundColor&#039;, &#039;#a6bcce&#039;);</p>
<p>                },</p>
<p>                drop: function() {</p>
<p>                        var answer = confirm(&#039;Permantly delete this item? from &#039;+lll+&#039; to&#039;+$(this).attr(&quot;id&quot;));</p>
<p>                        $(this).css(&#039;backgroundColor&#039;, &#039;#a6bcce&#039;);</p>
<p>                }</p>
<p>        });</p>
<p>});</p>
<p>Dragdrop.html</p>
<p>Drag &amp; Drop with jQuery </p>
<p>  function gethtml(){</p>
<p>    document.getElementById(&quot;newt&quot;).innerHTML = &#039;Item 4 &#039;</p>
<p>  }</p>
<p>                Trash </p>
<p>                Trash2 </p>
<p>                Trash3 </p>
<p>                Item 1 </p>
<p>                Item 2 </p>
<p>                Item 3 </p>
<p>        <a href="#" rel="nofollow">aaaa</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bharath</title>
		<link>http://www.ericbieller.com/2010/06/24/how-to-create-a-simple-drag-and-drop-with-jquery/comment-page-1/#comment-2498</link>
		<dc:creator>Bharath</dc:creator>
		<pubDate>Sun, 20 Mar 2011 13:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.ericbieller.com/?p=211#comment-2498</guid>
		<description>is it possible to create a droppable area which accepts external files using jQuery or some other js library.. 
 
Thanks in advance. </description>
		<content:encoded><![CDATA[<p>is it possible to create a droppable area which accepts external files using jQuery or some other js library..</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

