<?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: Drag and Drop Example using jQuery JavaScript in HTML</title> <atom:link href="http://viralpatel.net/blogs/2009/05/implement-drag-and-drop-example-jquery-javascript-html.html/feed" rel="self" type="application/rss+xml" /><link>http://viralpatel.net/blogs/2009/05/implement-drag-and-drop-example-jquery-javascript-html.html</link> <description>Tutorials, Java, J2EE, Struts, AJAX, JavaScript, CSS, Web 2.0, MySQL, Articles</description> <lastBuildDate>Wed, 08 Feb 2012 10:36:26 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Megha</title><link>http://viralpatel.net/blogs/2009/05/implement-drag-and-drop-example-jquery-javascript-html.html/comment-page-1#comment-16717</link> <dc:creator>Megha</dc:creator> <pubDate>Thu, 20 Oct 2011 19:21:40 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1240#comment-16717</guid> <description>Hi, I am trying to drag an item and drop it to some other element. And then when the item is dropped I want the server to handle an event.I am trying to use your droppable fucntion but it doesnt work. Code I m using is:          $(&quot;#draggable&quot;).draggable(); $(&quot;#droppable&quot;).droppable ({ drop: function() { alert(&#039;dropped&#039;); } });     &#160;          $(document).ready(function(){         $(&quot;#move&quot;).draggable();     });     &#160;          $(document).ready(function(){         $(&quot;#move1&quot;).droppable();     });      </description> <content:encoded><![CDATA[<p>Hi,<br /> I am trying to drag an item and drop it to some other element. And then when the item is dropped I want the server to handle an event.I am trying to use your droppable fucntion but it doesnt work. Code I m using is:</p><p>    <br />     <br /> $(&#8220;#draggable&#8221;).draggable();<br /> $(&#8220;#droppable&#8221;).droppable ({<br /> drop: function() { alert(&#8216;dropped&#8217;); }<br /> });</p><p>     &nbsp;<br />     <br />     $(document).ready(function(){<br />         $(&#8220;#move&#8221;).draggable();<br />     });<br />     </p><p> &nbsp;<br />     <br />     $(document).ready(function(){<br />         $(&#8220;#move1&#8243;).droppable();<br />     });<br />      </p> ]]></content:encoded> </item> <item><title>By: Raju</title><link>http://viralpatel.net/blogs/2009/05/implement-drag-and-drop-example-jquery-javascript-html.html/comment-page-1#comment-15034</link> <dc:creator>Raju</dc:creator> <pubDate>Mon, 20 Jun 2011 11:47:49 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1240#comment-15034</guid> <description>This is nice but not working in IE. When we dragging the div in the iframe down this is working fine when i want to move this div again up then the div is dissapearing from the iframe. this behaviour is happening in IE.</description> <content:encoded><![CDATA[<p>This is nice but not working in IE. When we dragging the div in the iframe down this is working fine when i want to move this div again up then the div is dissapearing from the iframe. this behaviour is happening in IE.</p> ]]></content:encoded> </item> <item><title>By: justin</title><link>http://viralpatel.net/blogs/2009/05/implement-drag-and-drop-example-jquery-javascript-html.html/comment-page-1#comment-13559</link> <dc:creator>justin</dc:creator> <pubDate>Wed, 15 Dec 2010 12:45:39 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1240#comment-13559</guid> <description>Daniel, The problem doing it manually is you have to disable some functions first. A lot of browsers have their own drag and drop function on certain types of elements. So you either have to disable that or make a transparent div higher on the z axis and have that move the below element. It is not super hard, but it is not as straight forward as you would think or it should be.</description> <content:encoded><![CDATA[<p>Daniel,<br /> The problem doing it manually is you have to disable some functions first. A lot of browsers have their own drag and drop function on certain types of elements. So you either have to disable that or make a transparent div higher on the z axis and have that move the below element. It is not super hard, but it is not as straight forward as you would think or it should be.</p> ]]></content:encoded> </item> <item><title>By: C. Nelson</title><link>http://viralpatel.net/blogs/2009/05/implement-drag-and-drop-example-jquery-javascript-html.html/comment-page-1#comment-13027</link> <dc:creator>C. Nelson</dc:creator> <pubDate>Mon, 23 Aug 2010 21:13:54 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1240#comment-13027</guid> <description>Where does the code in the &#039;code snippet&#039; section go? So far, this doesn&#039;t work.</description> <content:encoded><![CDATA[<p>Where does the code in the &#8216;code snippet&#8217; section go? So far, this doesn&#8217;t work.</p> ]]></content:encoded> </item> <item><title>By: Aman</title><link>http://viralpatel.net/blogs/2009/05/implement-drag-and-drop-example-jquery-javascript-html.html/comment-page-1#comment-12992</link> <dc:creator>Aman</dc:creator> <pubDate>Fri, 13 Aug 2010 13:29:50 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1240#comment-12992</guid> <description>hi i like you plugin. i have also some jquery drag and drop plugins.please see:-http://jquery13.blogspot.com/2010/08/30-drag-and-drop-jquery-plugins.htmlThanks Aman</description> <content:encoded><![CDATA[<p>hi<br /> i like you plugin. i have also some jquery drag and drop plugins.please see:-</p><p><a href="http://jquery13.blogspot.com/2010/08/30-drag-and-drop-jquery-plugins.html" rel="nofollow">http://jquery13.blogspot.com/2010/08/30-drag-and-drop-jquery-plugins.html</a></p><p>Thanks<br /> Aman</p> ]]></content:encoded> </item> <item><title>By: Daniel Gabriele</title><link>http://viralpatel.net/blogs/2009/05/implement-drag-and-drop-example-jquery-javascript-html.html/comment-page-1#comment-12593</link> <dc:creator>Daniel Gabriele</dc:creator> <pubDate>Sun, 23 May 2010 01:22:35 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1240#comment-12593</guid> <description>I honestly don&#039;t think this is too tough to do manually. I&#039;ve been playing with javascript and jquery for a few weeks and the logic needed to accomplish this is straight-forward: find the change in x and change in y between each &quot;mousemove&quot; event.http://plaza.ufl.edu/publius/experiments/manipulables/drag-0.html</description> <content:encoded><![CDATA[<p>I honestly don&#8217;t think this is too tough to do manually. I&#8217;ve been playing with javascript and jquery for a few weeks and the logic needed to accomplish this is straight-forward: find the change in x and change in y between each &#8220;mousemove&#8221; event.</p><p><a href="http://plaza.ufl.edu/publius/experiments/manipulables/drag-0.html" rel="nofollow">http://plaza.ufl.edu/publius/experiments/manipulables/drag-0.html</a></p> ]]></content:encoded> </item> <item><title>By: Alex_D</title><link>http://viralpatel.net/blogs/2009/05/implement-drag-and-drop-example-jquery-javascript-html.html/comment-page-1#comment-12507</link> <dc:creator>Alex_D</dc:creator> <pubDate>Wed, 28 Apr 2010 23:06:02 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1240#comment-12507</guid> <description>Hello! I searched many forums but I couldn&#039;t find a solution to my problem. I&#039;m working on a webpage and I&#039;ve implemented a javascript drag &amp; drop section. It&#039;s working fine in Mozilla Firefox, but I&#039;m having a little problem in Internet Explorer. Inside each draggable element, which are div elements, I have other div elements. I want to add a javascript onclick function to one of theese div&#039;s. but I can&#039;t make it work in IE. Could someone help me with that? Here is a part of my code:..... foreach( $this-&gt;channelsList as $channel){ ?&gt; &lt;div id=&quot;channel&quot; style=&quot;height:50px;&quot; class=&quot;list&quot;&gt; &lt;input value=&quot;id?&gt;&quot; type=&quot;hidden&quot; name=&quot;channel[]&quot;/&gt; &#160; &lt;img height=&quot;45&quot; src=&quot;baseUrl()?&gt;/img/channel_logos/id, 0, -8)?&gt;.png&quot; alt=&quot;name?&gt;&quot; /&gt; &lt;div class=&quot;list-delete&quot; onclick=&quot;delete_div(&#039;channel&#039;)&quot;&gt;&lt;img alt=&quot;delete&quot; src=&quot;baseUrl()?&gt;/img/delete.png&quot; /&gt; &lt;? $i++; } ....Thanks</description> <content:encoded><![CDATA[<p>Hello!<br /> I searched many forums but I couldn&#8217;t find a solution to my problem.<br /> I&#8217;m working on a webpage and I&#8217;ve implemented a javascript drag &amp; drop section.<br /> It&#8217;s working fine in Mozilla Firefox, but I&#8217;m having a little problem in Internet Explorer.<br /> Inside each draggable element, which are div elements, I have other div elements.<br /> I want to add a javascript onclick function to one of theese div&#8217;s. but I can&#8217;t make it work in IE.<br /> Could someone help me with that?<br /> Here is a part of my code:</p><p>&#8230;..<br /> foreach( $this-&gt;channelsList as $channel){<br /> ?&gt;<br /> &lt;div id=&quot;channel&#8221; style=&#8221;height:50px;&#8221; class=&#8221;list&#8221;&gt;<br /> &lt;input value=&quot;id?&gt;&#8221; type=&#8221;hidden&#8221; name=&#8221;channel[]&#8220;/&gt;</p><p> &nbsp;</p><p> &lt;img height=&quot;45&quot; src=&quot;baseUrl()?&gt;/img/channel_logos/id, 0, -8)?&gt;.png&#8221; alt=&#8221;name?&gt;&#8221; /&gt;</p><p> &lt;div class=&quot;list-delete&quot; onclick=&quot;delete_div(&#039;channel&#8217;)&#8221;&gt;&lt;img alt=&quot;delete&quot; src=&quot;baseUrl()?&gt;/img/delete.png&#8221; /&gt;</p><p> &lt;?<br /> $i++;<br /> }<br /> &#8230;.</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: Mitzi</title><link>http://viralpatel.net/blogs/2009/05/implement-drag-and-drop-example-jquery-javascript-html.html/comment-page-1#comment-12325</link> <dc:creator>Mitzi</dc:creator> <pubDate>Mon, 22 Mar 2010 22:22:23 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1240#comment-12325</guid> <description>Hello there,First of all thanks for the tutorial. Is awesome and really simple to apply.I am trying to use your draggable tutorial as well as the jquery.scrollTo.js. I really don&#039;t know much about jQuery or Javascript. My idea is to make a wrapper for my website and add each page as a div. Then make this wrapper draggable, that way my users will drag the whole website to navigate through the site. But I want to make the navigation more friendly, I don&#039;t want my users get all freaked out. So I also will add a menu to scroll to each page, for those users who wish to navigate using the menu instead of dragging. The pages are not just positioned vertically one on top of another, some are next to each other some are under , so when I use the scrollTo function the site scrolls diagonally, horizontally and vertically as well depending on the page they are going to.I really hope all of this is making sense to you. My problem is this....I already made the two scripts work together but I have one little problem. Sometimes after dragging the website around, when I try to go back to my page 1 (using the menu to scroll to it) it&#039;s position is off. It is not center in my browser window anymore. Any thoughts that can help?Here is a link to my test... http://www.sprocketproductions.com/fxtests/scroll/</description> <content:encoded><![CDATA[<p>Hello there,</p><p>First of all thanks for the tutorial. Is awesome and really simple to apply.</p><p>I am trying to use your draggable tutorial as well as the jquery.scrollTo.js. I really don&#8217;t know much about jQuery or Javascript. My idea is to make a wrapper for my website and add each page as a div. Then make this wrapper draggable, that way my users will drag the whole website to navigate through the site. But I want to make the navigation more friendly, I don&#8217;t want my users get all freaked out. So I also will add a menu to scroll to each page, for those users who wish to navigate using the menu instead of dragging. The pages are not just positioned vertically one on top of another, some are next to each other some are under , so when I use the scrollTo function the site scrolls diagonally, horizontally and vertically as well depending on the page they are going to.</p><p>I really hope all of this is making sense to you. My problem is this&#8230;.</p><p>I already made the two scripts work together but I have one little problem. Sometimes after dragging the website around, when I try to go back to my page 1 (using the menu to scroll to it) it&#8217;s position is off. It is not center in my browser window anymore. Any thoughts that can help?</p><p>Here is a link to my test&#8230;<br /> <a href="http://www.sprocketproductions.com/fxtests/scroll/" rel="nofollow">http://www.sprocketproductions.com/fxtests/scroll/</a></p> ]]></content:encoded> </item> <item><title>By: Ryan</title><link>http://viralpatel.net/blogs/2009/05/implement-drag-and-drop-example-jquery-javascript-html.html/comment-page-1#comment-12111</link> <dc:creator>Ryan</dc:creator> <pubDate>Tue, 16 Feb 2010 16:25:11 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1240#comment-12111</guid> <description>You need to include the jquery ui library in your document&#039;s head, and you need to make sure it contains the draggable and droppable components for this example to work</description> <content:encoded><![CDATA[<p>You need to include the jquery ui library in your document&#8217;s head, and you need to make sure it contains the draggable and droppable components for this example to work</p> ]]></content:encoded> </item> <item><title>By: Robert</title><link>http://viralpatel.net/blogs/2009/05/implement-drag-and-drop-example-jquery-javascript-html.html/comment-page-1#comment-11963</link> <dc:creator>Robert</dc:creator> <pubDate>Fri, 22 Jan 2010 05:56:44 +0000</pubDate> <guid isPermaLink="false">http://viralpatel.net/blogs/?p=1240#comment-11963</guid> <description>I tried that and get an error: &quot;draggable is not a function&quot;I use jQuery 1.3.2</description> <content:encoded><![CDATA[<p>I tried that and get an error:<br /> &#8220;draggable is not a function&#8221;</p><p>I use jQuery 1.3.2</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

Served from: viralpatel.net @ 2012-02-09 10:35:56 -->
