<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Element Position Swapping Using MooTools&#160;1.2</title> <atom:link href="http://davidwalsh.name/element-position-swap-mootools/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/element-position-swap-mootools</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Tue, 22 May 2012 16:21:46 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: fred</title><link>http://davidwalsh.name/element-position-swap-mootools#comment-22343</link> <dc:creator>fred</dc:creator> <pubDate>Tue, 18 Jan 2011 05:44:38 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=558#comment-22343</guid> <description>other than postion swap, how about Dom index swap</description> <content:encoded><![CDATA[<p>other than postion swap, how about Dom index swap</p> ]]></content:encoded> </item> <item><title>By: jerome</title><link>http://davidwalsh.name/element-position-swap-mootools#comment-9481</link> <dc:creator>jerome</dc:creator> <pubDate>Thu, 28 May 2009 16:07:25 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=558#comment-9481</guid> <description>hey david i got few questions for you !!! hope you can answer me :)is it possible to move fixed div ?andhow can i do to move more than to object on a single click ?thks !</description> <content:encoded><![CDATA[<p>hey david i got few questions for you !!! hope you can answer me :)</p><p>is it possible to move fixed div ?</p><p>and</p><p>how can i do to move more than to object on a single click ?</p><p>thks !</p> ]]></content:encoded> </item> <item><title>By: chintan</title><link>http://davidwalsh.name/element-position-swap-mootools#comment-4517</link> <dc:creator>chintan</dc:creator> <pubDate>Mon, 12 Jan 2009 05:29:09 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=558#comment-4517</guid> <description>hey i want to swap the elements of the webpage.. means to swap position of two images on some event... how is it posiible using javascript..</description> <content:encoded><![CDATA[<p>hey i want to swap the elements of the webpage.. means to swap position of two images on some event&#8230; how is it posiible using javascript..</p> ]]></content:encoded> </item> <item><title>By: kevinseo</title><link>http://davidwalsh.name/element-position-swap-mootools#comment-3628</link> <dc:creator>kevinseo</dc:creator> <pubDate>Fri, 31 Oct 2008 03:37:22 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=558#comment-3628</guid> <description>good tips,thanks for sharing.</description> <content:encoded><![CDATA[<p>good tips,thanks for sharing.</p> ]]></content:encoded> </item> <item><title>By: Abba Bryant</title><link>http://davidwalsh.name/element-position-swap-mootools#comment-3625</link> <dc:creator>Abba Bryant</dc:creator> <pubDate>Thu, 30 Oct 2008 22:41:53 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=558#comment-3625</guid> <description>This would work as a visual cue for moving list items from one list to the other. Create the element as an overlay to the li&#039;s, swap them and destroy them.I am sure there is a better use for it, but that is what popped into my head when I saw it.</description> <content:encoded><![CDATA[<p>This would work as a visual cue for moving list items from one list to the other. Create the element as an overlay to the li&#8217;s, swap them and destroy them.</p><p>I am sure there is a better use for it, but that is what popped into my head when I saw it.</p> ]]></content:encoded> </item> <item><title>By: Garrick Cheung</title><link>http://davidwalsh.name/element-position-swap-mootools#comment-3616</link> <dc:creator>Garrick Cheung</dc:creator> <pubDate>Thu, 30 Oct 2008 01:16:25 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=558#comment-3616</guid> <description>@David
Very cool method. I think changing the position from absolute to relative isn&#039;t the way to go. Because the markup for the two elements wouldn&#039;t have changed, thus causing the elements to snap to a different position based on their new left and top values. Have you tried just swapping the left and top values and keeping the element position:relative intead of making them absolute?As for a &#039;lock&#039; option, since you&#039;re using Fx.Morph, Fx has a link option that you can set to ignore, thus applying the lock option.@Michael
I think you can still do this with floats. The reason why position relative/absolute is required is because left, top, right, bottom only work on elements with the position style. </description> <content:encoded><![CDATA[<p>@David<br
/> Very cool method. I think changing the position from absolute to relative isn&#8217;t the way to go. Because the markup for the two elements wouldn&#8217;t have changed, thus causing the elements to snap to a different position based on their new left and top values. Have you tried just swapping the left and top values and keeping the element position:relative intead of making them absolute?</p><p>As for a &#8216;lock&#8217; option, since you&#8217;re using Fx.Morph, Fx has a link option that you can set to ignore, thus applying the lock option.</p><p>@Michael<br
/> I think you can still do this with floats. The reason why position relative/absolute is required is because left, top, right, bottom only work on elements with the position style.</p> ]]></content:encoded> </item> <item><title>By: Catar4x</title><link>http://davidwalsh.name/element-position-swap-mootools#comment-3614</link> <dc:creator>Catar4x</dc:creator> <pubDate>Wed, 29 Oct 2008 22:06:31 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=558#comment-3614</guid> <description>Good effect, I think that I use this effect for a inventory in PHP Game.
Thanks ;)</description> <content:encoded><![CDATA[<p>Good effect, I think that I use this effect for a inventory in PHP Game.<br
/> Thanks ;)</p> ]]></content:encoded> </item> <item><title>By: Michael</title><link>http://davidwalsh.name/element-position-swap-mootools#comment-3613</link> <dc:creator>Michael</dc:creator> <pubDate>Wed, 29 Oct 2008 21:04:16 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=558#comment-3613</guid> <description>Can you do something similar using floats? I&#039;ve never fully understood why these kind of animations require absolute or relative positioning.</description> <content:encoded><![CDATA[<p>Can you do something similar using floats? I&#8217;ve never fully understood why these kind of animations require absolute or relative positioning.</p> ]]></content:encoded> </item> <item><title>By: david</title><link>http://davidwalsh.name/element-position-swap-mootools#comment-3611</link> <dc:creator>david</dc:creator> <pubDate>Wed, 29 Oct 2008 16:51:56 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=558#comment-3611</guid> <description>&lt;p&gt;@Elmas:  Thank you for your comment.&lt;/p&gt;&lt;p&gt;The &quot;main div&quot; bug is caused by changing the elements to &quot;absolute&quot; positioning -- I&#039;m still contemplating whether or not to change the elements to relative positioning when the move is complete.&lt;/p&gt;&lt;p&gt;The &quot;double-click&quot; issue, technically, isn&#039;t a bug because the items do switch places during the click.  I may, however, add some sort of &quot;lock&quot; option.&lt;/p&gt;</description> <content:encoded><![CDATA[<p>@Elmas:  Thank you for your comment.</p><p>The &#8220;main div&#8221; bug is caused by changing the elements to &#8220;absolute&#8221; positioning &#8212; I&#8217;m still contemplating whether or not to change the elements to relative positioning when the move is complete.</p><p>The &#8220;double-click&#8221; issue, technically, isn&#8217;t a bug because the items do switch places during the click.  I may, however, add some sort of &#8220;lock&#8221; option.</p> ]]></content:encoded> </item> <item><title>By: Elmas</title><link>http://davidwalsh.name/element-position-swap-mootools#comment-3610</link> <dc:creator>Elmas</dc:creator> <pubDate>Wed, 29 Oct 2008 16:33:19 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=558#comment-3610</guid> <description>I&#039;m using firefox 3 and when i click swap, the height of the main div or something that&#039;s holding that thing drops by half.Oh and double click causes also a bug with the starting-ending position of those boxes
If you continue to double-click eventually those two boxes stay in the same place.I mean no harm, i just wanted you to know this  :D</description> <content:encoded><![CDATA[<p>I&#8217;m using firefox 3 and when i click swap, the height of the main div or something that&#8217;s holding that thing drops by half.</p><p>Oh and double click causes also a bug with the starting-ending position of those boxes<br
/> If you continue to double-click eventually those two boxes stay in the same place.</p><p>I mean no harm, i just wanted you to know this  :D</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 3/12 queries in 0.008 seconds using disk: basic
Object Caching 799/815 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-22 17:23:51 -->
