<?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"
	>
<channel>
	<title>Comments on: Fun with Drag and Drop w/RICO</title>
	<atom:link href="http://www.rich-waters.com/blog/2005/12/fun-with-drag-and-drop-wrico.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.rich-waters.com/blog/2005/12/fun-with-drag-and-drop-wrico.html</link>
	<description>Ext, Javascript, Notes/Domino, Ext.nd, Ruby on Rails</description>
	<pubDate>Wed, 27 Aug 2008 23:22:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Bryan</title>
		<link>http://www.rich-waters.com/blog/2005/12/fun-with-drag-and-drop-wrico.html#comment-9287</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Thu, 26 Apr 2007 21:35:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.rich-waters.com/blog/?p=6#comment-9287</guid>
		<description>[oops -- the &#60; in my example messed things up. here it is again...]

E.G:

^ &#60; - mouse poitner



    [] &#60;- div being dragged

I've tried all kinds of combinations of postion:relative/absolute in both outer container divs and my draggables, but no difference at all. 

Any idea what the cause of this might be or how to fix it? Thanks.</description>
		<content:encoded><![CDATA[<p>[oops &#8212; the &lt; in my example messed things up. here it is again&#8230;]</p>
<p>E.G:</p>
<p>^ &lt; - mouse poitner</p>
<p>    [] &lt;- div being dragged</p>
<p>I&#8217;ve tried all kinds of combinations of postion:relative/absolute in both outer container divs and my draggables, but no difference at all. </p>
<p>Any idea what the cause of this might be or how to fix it? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://www.rich-waters.com/blog/2005/12/fun-with-drag-and-drop-wrico.html#comment-9286</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Thu, 26 Apr 2007 21:33:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.rich-waters.com/blog/?p=6#comment-9286</guid>
		<description>The examples all work great. Thanks. But when I try to implement my own stuff in Firefox, the mouse and item being dragged are always offset by the size of the browser's toolbar area. That is, the viewport offset isn't getting calculated correctly or something.

E.G:

^ </description>
		<content:encoded><![CDATA[<p>The examples all work great. Thanks. But when I try to implement my own stuff in Firefox, the mouse and item being dragged are always offset by the size of the browser&#8217;s toolbar area. That is, the viewport offset isn&#8217;t getting calculated correctly or something.</p>
<p>E.G:</p>
<p>^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich Waters</title>
		<link>http://www.rich-waters.com/blog/2005/12/fun-with-drag-and-drop-wrico.html#comment-106</link>
		<dc:creator>Rich Waters</dc:creator>
		<pubDate>Fri, 04 Aug 2006 17:18:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.rich-waters.com/blog/?p=6#comment-106</guid>
		<description>Great question, it certainly seems popular to only have part of a div be the 'handle' that people can grab to drag and Rico makes this pretty easy.

I would first look at the newer article on writing a custom draggable class.  
http://www.rich-waters.com/blog/2006/04/rico-drag-ndrop-p2-ricodraggable.html

the key piece you want to look at in the code is the 'getSingleObjectDragGUI' method.  This method is what Rico uses to get a handle on which object its dragging.  I used this to actually create a completely new div which copied the old one and shade the old one out so you get a nice effect.

What I would do for your above example is give the div or whatever element is the 'handle' an id and register that id as the draggable element, then write a custom getSingleObjectDragGUI which returns either the parent element if that works or whichever specific element contains the whole piece you want to drag.

Hope that makes sense...</description>
		<content:encoded><![CDATA[<p>Great question, it certainly seems popular to only have part of a div be the &#8216;handle&#8217; that people can grab to drag and Rico makes this pretty easy.</p>
<p>I would first look at the newer article on writing a custom draggable class.<br />
<a href="http://www.rich-waters.com/blog/2006/04/rico-drag-ndrop-p2-ricodraggable.html" >http://www.rich-waters.com/blog/2006/04/rico-drag-ndrop-p2-ricodraggable.html</a></p>
<p>the key piece you want to look at in the code is the &#8216;getSingleObjectDragGUI&#8217; method.  This method is what Rico uses to get a handle on which object its dragging.  I used this to actually create a completely new div which copied the old one and shade the old one out so you get a nice effect.</p>
<p>What I would do for your above example is give the div or whatever element is the &#8216;handle&#8217; an id and register that id as the draggable element, then write a custom getSingleObjectDragGUI which returns either the parent element if that works or whichever specific element contains the whole piece you want to drag.</p>
<p>Hope that makes sense&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.rich-waters.com/blog/2005/12/fun-with-drag-and-drop-wrico.html#comment-103</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Fri, 04 Aug 2006 11:02:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.rich-waters.com/blog/?p=6#comment-103</guid>
		<description>Hi Rich,

Im trying to use drag and drop to move items - but only when the 'handle' of the item is held and not the whole item.

So far when you click on the handle, a onMouseDown event uses the 'new Draggable' function and allows you to pick it up. However after dropping it I need to somehow de-register it. 

Otherwise if people are using select boxes in the item they tend to drag it accidentally.</description>
		<content:encoded><![CDATA[<p>Hi Rich,</p>
<p>Im trying to use drag and drop to move items - but only when the &#8216;handle&#8217; of the item is held and not the whole item.</p>
<p>So far when you click on the handle, a onMouseDown event uses the &#8216;new Draggable&#8217; function and allows you to pick it up. However after dropping it I need to somehow de-register it. </p>
<p>Otherwise if people are using select boxes in the item they tend to drag it accidentally.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich Waters</title>
		<link>http://www.rich-waters.com/blog/2005/12/fun-with-drag-and-drop-wrico.html#comment-12</link>
		<dc:creator>Rich Waters</dc:creator>
		<pubDate>Sat, 22 Apr 2006 15:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.rich-waters.com/blog/?p=6#comment-12</guid>
		<description>If you're using my example code you should be able to call MyDraggable.cancelDrag() from anywhere else in the file.</description>
		<content:encoded><![CDATA[<p>If you&#8217;re using my example code you should be able to call MyDraggable.cancelDrag() from anywhere else in the file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhi</title>
		<link>http://www.rich-waters.com/blog/2005/12/fun-with-drag-and-drop-wrico.html#comment-11</link>
		<dc:creator>abhi</dc:creator>
		<pubDate>Fri, 21 Apr 2006 23:57:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.rich-waters.com/blog/?p=6#comment-11</guid>
		<description>How can you call the CancelDrag method whenever you want from the 

javascript file.Please let me know</description>
		<content:encoded><![CDATA[<p>How can you call the CancelDrag method whenever you want from the </p>
<p>javascript file.Please let me know</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich Waters &#187; Blog Archive &#187; Quick Update - Drag &#38; Drop</title>
		<link>http://www.rich-waters.com/blog/2005/12/fun-with-drag-and-drop-wrico.html#comment-9</link>
		<dc:creator>Rich Waters &#187; Blog Archive &#187; Quick Update - Drag &#38; Drop</dc:creator>
		<pubDate>Wed, 19 Apr 2006 18:21:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.rich-waters.com/blog/?p=6#comment-9</guid>
		<description>[...] After looking at some stats I found that my drag and drop article seems to be getting the most attention so I added a quick update to give a direct link to the sample javascript file. DnD Article [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] After looking at some stats I found that my drag and drop article seems to be getting the most attention so I added a quick update to give a direct link to the sample javascript file. DnD Article [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.rich-waters.com/blog/2005/12/fun-with-drag-and-drop-wrico.html#comment-5</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 05 Apr 2006 21:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.rich-waters.com/blog/?p=6#comment-5</guid>
		<description>Could you be more explanitory on this?  perhaps make a very simple example you can provide it's complete source code with?  Thanks so much</description>
		<content:encoded><![CDATA[<p>Could you be more explanitory on this?  perhaps make a very simple example you can provide it&#8217;s complete source code with?  Thanks so much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.rich-waters.com/blog/2005/12/fun-with-drag-and-drop-wrico.html#comment-4</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 27 Mar 2006 13:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.rich-waters.com/blog/?p=6#comment-4</guid>
		<description>Looks like this doesn't work with Safari.</description>
		<content:encoded><![CDATA[<p>Looks like this doesn&#8217;t work with Safari.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich Waters</title>
		<link>http://www.rich-waters.com/blog/2005/12/fun-with-drag-and-drop-wrico.html#comment-3</link>
		<dc:creator>Rich Waters</dc:creator>
		<pubDate>Wed, 15 Mar 2006 22:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.rich-waters.com/blog/?p=6#comment-3</guid>
		<description>Right at the bottom of the post?  It's 
rich.js, should be able to get to it just fine.</description>
		<content:encoded><![CDATA[<p>Right at the bottom of the post?  It&#8217;s<br />
rich.js, should be able to get to it just fine.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
