<?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 for Luke Dingle . com</title>
	<atom:link href="http://www.lukedingle.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lukedingle.com</link>
	<description>Turn over a playful leaf on web design</description>
	<lastBuildDate>Sun, 09 May 2010 12:06:55 +1000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Sortable table rows with jQuery &#8211; Draggable rows by Plugo</title>
		<link>http://www.lukedingle.com/2009/06/23/sortable-table-rows-with-jquery-draggable-rows/%/comment-page-1#comment-312</link>
		<dc:creator>Plugo</dc:creator>
		<pubDate>Sun, 09 May 2010 12:06:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.lukedingle.com/?p=190#comment-312</guid>
		<description>Thanks for this great script.

I have some idea taht could be very useful. How about some css class for TD or for its children like DIV or SPAN that would be the only one ELEMENT in whole TR that could be &quot;draggble&quot;. So I don&#039;t need to add some other JS for stoping propagation in input or in TD.</description>
		<content:encoded><![CDATA[<p>Thanks for this great script.</p>
<p>I have some idea taht could be very useful. How about some css class for TD or for its children like DIV or SPAN that would be the only one ELEMENT in whole TR that could be &#8220;draggble&#8221;. So I don&#8217;t need to add some other JS for stoping propagation in input or in TD.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sortable table rows with jQuery. by james182</title>
		<link>http://www.lukedingle.com/2009/06/21/sortable-table-rows-with-jquery/%/comment-page-1#comment-311</link>
		<dc:creator>james182</dc:creator>
		<pubDate>Tue, 20 Apr 2010 04:57:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.lukedingle.com/?p=166#comment-311</guid>
		<description>how would you add the new order to the mysql DB? what code would i write?</description>
		<content:encoded><![CDATA[<p>how would you add the new order to the mysql DB? what code would i write?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Set up a Linux/Django environment &#8211; on Windows by Jesse</title>
		<link>http://www.lukedingle.com/2009/03/09/set-up-a-linuxdjango-environment-on-windows/%/comment-page-1#comment-309</link>
		<dc:creator>Jesse</dc:creator>
		<pubDate>Sun, 21 Mar 2010 22:02:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.lukedingle.com/?p=138#comment-309</guid>
		<description>Luke, thank you for unselfishly sharing these very clear steps to setup an Ubuntu/Django development environment in Windows. You are a prince among men.</description>
		<content:encoded><![CDATA[<p>Luke, thank you for unselfishly sharing these very clear steps to setup an Ubuntu/Django development environment in Windows. You are a prince among men.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sortable table rows with jQuery &#8211; Draggable rows by Derek Herman</title>
		<link>http://www.lukedingle.com/2009/06/23/sortable-table-rows-with-jquery-draggable-rows/%/comment-page-1#comment-308</link>
		<dc:creator>Derek Herman</dc:creator>
		<pubDate>Fri, 19 Mar 2010 21:15:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.lukedingle.com/?p=190#comment-308</guid>
		<description>Is there any possible way that you could grab two TR&#039;s at a time and move them. I have an edit in place style table happening in a WordPress plugin I&#039;m working on and the TR directly below the one I&#039;m grabbing is hidden and needs to move with the reordered one. Please email me if you know the answer to this, it&#039;s very important to me, thank you!</description>
		<content:encoded><![CDATA[<p>Is there any possible way that you could grab two TR&#8217;s at a time and move them. I have an edit in place style table happening in a WordPress plugin I&#8217;m working on and the TR directly below the one I&#8217;m grabbing is hidden and needs to move with the reordered one. Please email me if you know the answer to this, it&#8217;s very important to me, thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sortable table rows with jQuery &#8211; Draggable rows by Rick</title>
		<link>http://www.lukedingle.com/2009/06/23/sortable-table-rows-with-jquery-draggable-rows/%/comment-page-1#comment-307</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Fri, 19 Mar 2010 19:31:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.lukedingle.com/?p=190#comment-307</guid>
		<description>I turned it into a jquery plugin, but it works on table cells (easily changed to rows on line 21 by taking off .parent())

//made from: http://www.lukedingle.com/javascript/sortable-table-rows-with-jquery-draggable-rows/

(function($){
	$.fn.dragrow = function(settings){
		var defaults = {
            onDrop: function(){}
		};

		settings = $.extend(defaults,settings);
        
		//IE Doesn&#039;t stop selecting text when mousedown returns false we need to check
        // That onselectstart exists and return false if it does -- we won&#039;t check if the browser is IE
        // As thy may very well change this at some point
        var need_select_workaround = typeof $(document).attr(&#039;onselectstart&#039;) != &#039;undefined&#039;;
        
		return this.bind(&#039;mousedown.dragrow&#039;,function(e){
			// Store the current location Y axis position of the mouse at the time the
            // mouse button was pushed down. This will determine which direction to move the table row
            lastY = e.pageY;
            // store $(this) tr element in a variable to allow faster access in the functions soon to be declared
            var tr = $(this).parent();
            // This is just for flashiness. It fades the TR element out to an opacity of 0.2 while it is being moved.
            tr.fadeTo(&#039;fast&#039;, 0.2);
            // jQuery has a fantastic function called mouseenter() which fires when the mouse enters
            // This code fires a function each time the mouse enters over any TR inside the tbody -- except $(this) one
            $(&#039;tr&#039;, tr.parent() ).not(tr).bind(&#039;mouseenter.dragrow&#039;,function(){
                // Check mouse coordinates to see whether to pop this before or after
                // If e.pageY has decreased, we are moving UP the page and insert tr before $(this) tr where
                // $(this) is the tr that is being hovered over. If e.pageY has decreased, we insert after
                if (e.pageY &gt; lastY) {
                    $(this).after(tr);
                } else {
                    $(this).before(tr);
                }
                // Store the current location of the mouse for next time a mouseenter event triggers
                lastY = e.pageY;
            });
            // Now, bind a function that runs on the very next mouseup event that occurs on the page
            // This checks for a mouse up *anywhere*, not just on table rows so that the function runs even
            // if the mouse is dragged outside of the table.
            $(&#039;body&#039;).bind(&#039;mouseup.dragrow&#039;,function(){
                //Fade the TR element back to full opacity
                tr.fadeTo(&#039;fast&#039;, 1);
                // Remove the mouseenter events from the tbody so that the TR element stops being moved
                $(&#039;tr&#039;, tr.parent()).unbind(&#039;mouseenter.dragrow&#039;);
                // Remove this mouseup function until next time
                $(&#039;body&#039;).unbind(&#039;mouseup.dragrow&#039;);
                // Make text selectable for IE again with
                // The workaround for IE based browsers
                if(need_select_workaround) $(document).unbind(&#039;selectstart&#039;);
                
                settings.onDrop(tr);
            });
            // This part if important. Preventing the default action and returning false will
            // Stop any text in the table from being highlighted (this can cause problems when dragging elements)
            e.preventDefault();
            
            // The workaround for IE based browers
            if (need_select_workaround) $(document).bind(&#039;selectstart&#039;, function () { return false; });
            return false;
		}).css(&#039;cursor&#039;, &#039;move&#039;);
	};
})(jQuery);</description>
		<content:encoded><![CDATA[<p>I turned it into a jquery plugin, but it works on table cells (easily changed to rows on line 21 by taking off .parent())</p>
<p>//made from: <a href="http://www.lukedingle.com/javascript/sortable-table-rows-with-jquery-draggable-rows/" rel="nofollow">http://www.lukedingle.com/javascript/sortable-table-rows-with-jquery-draggable-rows/</a></p>
<p>(function($){<br />
	$.fn.dragrow = function(settings){<br />
		var defaults = {<br />
            onDrop: function(){}<br />
		};</p>
<p>		settings = $.extend(defaults,settings);</p>
<p>		//IE Doesn&#8217;t stop selecting text when mousedown returns false we need to check<br />
        // That onselectstart exists and return false if it does &#8212; we won&#8217;t check if the browser is IE<br />
        // As thy may very well change this at some point<br />
        var need_select_workaround = typeof $(document).attr(&#8217;onselectstart&#8217;) != &#8216;undefined&#8217;;</p>
<p>		return this.bind(&#8217;mousedown.dragrow&#8217;,function(e){<br />
			// Store the current location Y axis position of the mouse at the time the<br />
            // mouse button was pushed down. This will determine which direction to move the table row<br />
            lastY = e.pageY;<br />
            // store $(this) tr element in a variable to allow faster access in the functions soon to be declared<br />
            var tr = $(this).parent();<br />
            // This is just for flashiness. It fades the TR element out to an opacity of 0.2 while it is being moved.<br />
            tr.fadeTo(&#8217;fast&#8217;, 0.2);<br />
            // jQuery has a fantastic function called mouseenter() which fires when the mouse enters<br />
            // This code fires a function each time the mouse enters over any TR inside the tbody &#8212; except $(this) one<br />
            $(&#8217;tr&#8217;, tr.parent() ).not(tr).bind(&#8217;mouseenter.dragrow&#8217;,function(){<br />
                // Check mouse coordinates to see whether to pop this before or after<br />
                // If e.pageY has decreased, we are moving UP the page and insert tr before $(this) tr where<br />
                // $(this) is the tr that is being hovered over. If e.pageY has decreased, we insert after<br />
                if (e.pageY &gt; lastY) {<br />
                    $(this).after(tr);<br />
                } else {<br />
                    $(this).before(tr);<br />
                }<br />
                // Store the current location of the mouse for next time a mouseenter event triggers<br />
                lastY = e.pageY;<br />
            });<br />
            // Now, bind a function that runs on the very next mouseup event that occurs on the page<br />
            // This checks for a mouse up *anywhere*, not just on table rows so that the function runs even<br />
            // if the mouse is dragged outside of the table.<br />
            $(&#8217;body&#8217;).bind(&#8217;mouseup.dragrow&#8217;,function(){<br />
                //Fade the TR element back to full opacity<br />
                tr.fadeTo(&#8217;fast&#8217;, 1);<br />
                // Remove the mouseenter events from the tbody so that the TR element stops being moved<br />
                $(&#8217;tr&#8217;, tr.parent()).unbind(&#8217;mouseenter.dragrow&#8217;);<br />
                // Remove this mouseup function until next time<br />
                $(&#8217;body&#8217;).unbind(&#8217;mouseup.dragrow&#8217;);<br />
                // Make text selectable for IE again with<br />
                // The workaround for IE based browsers<br />
                if(need_select_workaround) $(document).unbind(&#8217;selectstart&#8217;);</p>
<p>                settings.onDrop(tr);<br />
            });<br />
            // This part if important. Preventing the default action and returning false will<br />
            // Stop any text in the table from being highlighted (this can cause problems when dragging elements)<br />
            e.preventDefault();</p>
<p>            // The workaround for IE based browers<br />
            if (need_select_workaround) $(document).bind(&#8217;selectstart&#8217;, function () { return false; });<br />
            return false;<br />
		}).css(&#8217;cursor&#8217;, &#8216;move&#8217;);<br />
	};<br />
})(jQuery);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sortable table rows with jQuery &#8211; Draggable rows by 17 jQuery Plugins for Easy and Efficient Reordering and Filtering Page Elements&#160;&#124;&#160;tripwire magazine</title>
		<link>http://www.lukedingle.com/2009/06/23/sortable-table-rows-with-jquery-draggable-rows/%/comment-page-1#comment-306</link>
		<dc:creator>17 jQuery Plugins for Easy and Efficient Reordering and Filtering Page Elements&#160;&#124;&#160;tripwire magazine</dc:creator>
		<pubDate>Tue, 16 Mar 2010 19:18:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.lukedingle.com/?p=190#comment-306</guid>
		<description>[...] Sortable table rows with jQuery – Draggable rows [...]</description>
		<content:encoded><![CDATA[<p>[...] Sortable table rows with jQuery – Draggable rows [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sortable table rows with jQuery &#8211; Draggable rows by 17 jQuery Plugins for Easy and Efficient Reordering and Filtering Page Elements &#124; tripwire magazine &#124; The circuits of imagination</title>
		<link>http://www.lukedingle.com/2009/06/23/sortable-table-rows-with-jquery-draggable-rows/%/comment-page-1#comment-305</link>
		<dc:creator>17 jQuery Plugins for Easy and Efficient Reordering and Filtering Page Elements &#124; tripwire magazine &#124; The circuits of imagination</dc:creator>
		<pubDate>Tue, 16 Mar 2010 11:06:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.lukedingle.com/?p=190#comment-305</guid>
		<description>[...] This example shows basic drag and drop node moving in a tree. In this implementation there are no restrictions and anything can be dropped anywhere except appending to nodes marked “leaf” (the files). Sortable table rows with jQuery – Draggable rows [...]</description>
		<content:encoded><![CDATA[<p>[...] This example shows basic drag and drop node moving in a tree. In this implementation there are no restrictions and anything can be dropped anywhere except appending to nodes marked “leaf” (the files). Sortable table rows with jQuery – Draggable rows [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sortable table rows with jQuery &#8211; Draggable rows by 17 jQuery Plugins for Easy and Efficient Reordering and Filtering Page Elements : Web Lime &#8211; Design and IT blog</title>
		<link>http://www.lukedingle.com/2009/06/23/sortable-table-rows-with-jquery-draggable-rows/%/comment-page-1#comment-304</link>
		<dc:creator>17 jQuery Plugins for Easy and Efficient Reordering and Filtering Page Elements : Web Lime &#8211; Design and IT blog</dc:creator>
		<pubDate>Thu, 11 Mar 2010 14:06:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.lukedingle.com/?p=190#comment-304</guid>
		<description>[...] Sortable table rows with jQuery – Draggable rows [...]</description>
		<content:encoded><![CDATA[<p>[...] Sortable table rows with jQuery – Draggable rows [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sortable table rows with jQuery &#8211; Draggable rows by Adrian</title>
		<link>http://www.lukedingle.com/2009/06/23/sortable-table-rows-with-jquery-draggable-rows/%/comment-page-1#comment-303</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Thu, 11 Mar 2010 06:39:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.lukedingle.com/?p=190#comment-303</guid>
		<description>For anyone else that&#039;s running into this:

Fading doesn&#039;t always work in IE8. The example on this page does but when you copy it out to your own site the rows don&#039;t fade out. I suspect that has to do with  not being a block element or something of that nature, regardless there is a very simple fix:

replace tr.fadeTo(&#039;fast&#039;,0.2);
with tr.children(&#039;td&#039;).fadeTo(&#039;fast&#039;,0.2);

and the same for the line to fade it back in.</description>
		<content:encoded><![CDATA[<p>For anyone else that&#8217;s running into this:</p>
<p>Fading doesn&#8217;t always work in IE8. The example on this page does but when you copy it out to your own site the rows don&#8217;t fade out. I suspect that has to do with  not being a block element or something of that nature, regardless there is a very simple fix:</p>
<p>replace tr.fadeTo(&#8217;fast&#8217;,0.2);<br />
with tr.children(&#8217;td&#8217;).fadeTo(&#8217;fast&#8217;,0.2);</p>
<p>and the same for the line to fade it back in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Set up a Linux/Django environment &#8211; on Windows by Greg Metsker</title>
		<link>http://www.lukedingle.com/2009/03/09/set-up-a-linuxdjango-environment-on-windows/%/comment-page-1#comment-302</link>
		<dc:creator>Greg Metsker</dc:creator>
		<pubDate>Sat, 06 Mar 2010 19:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.lukedingle.com/?p=138#comment-302</guid>
		<description>Thanks for this post. I am new at python and this is a big help.</description>
		<content:encoded><![CDATA[<p>Thanks for this post. I am new at python and this is a big help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
