<?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 Shopping Cart with jQuery UI</title>
	<atom:link href="http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/feed/" rel="self" type="application/rss+xml" />
	<link>http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/</link>
	<description>Richard D. Worth's tech blog</description>
	<lastBuildDate>Mon, 09 Aug 2010 10:24:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Stephen</title>
		<link>http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/comment-page-1/#comment-269</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Mon, 26 May 2008 15:07:39 +0000</pubDate>
		<guid isPermaLink="false">http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/#comment-269</guid>
		<description>Hi Richard,

Just purchased the article, good stuff. Have one question though - how can I attach prices to each product, and have the cart reflect the total when they are put in the cart?</description>
		<content:encoded><![CDATA[<p>Hi Richard,</p>
<p>Just purchased the article, good stuff. Have one question though &#8211; how can I attach prices to each product, and have the cart reflect the total when they are put in the cart?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard D. Worth</title>
		<link>http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/comment-page-1/#comment-264</link>
		<dc:creator>Richard D. Worth</dc:creator>
		<pubDate>Fri, 25 Apr 2008 16:59:37 +0000</pubDate>
		<guid isPermaLink="false">http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/#comment-264</guid>
		<description>Maleika,

Thank you. I&#039;m glad you liked the article and that it&#039;s helpful.

Generally, to prevent a link click from following, you add a click handler and either return false or call e.preventDefault(). Here&#039;s an example:

$(&quot;a&quot;).click(function() { return false; //prevent navigation });

Hope that helps.</description>
		<content:encoded><![CDATA[<p>Maleika,</p>
<p>Thank you. I&#8217;m glad you liked the article and that it&#8217;s helpful.</p>
<p>Generally, to prevent a link click from following, you add a click handler and either return false or call e.preventDefault(). Here&#8217;s an example:</p>
<p>$(&#8220;a&#8221;).click(function() { return false; //prevent navigation });</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maleika</title>
		<link>http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/comment-page-1/#comment-263</link>
		<dc:creator>maleika</dc:creator>
		<pubDate>Fri, 25 Apr 2008 11:43:46 +0000</pubDate>
		<guid isPermaLink="false">http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/#comment-263</guid>
		<description>Hello Richard,

firstly, thank you for providing this article. I purchased it the other day and everything seems to be going well.

There is one issue, however;  I have made the dragable item a link to a non JavaScript page in case a user does not have JS enabled. When I thus try to drag the item back to the list, it opens the URL to the non-js page instead.

How can I drag the item with the class of product (the item that is already inside the basket) back to the list of items without it opening the URL?

 Thanks</description>
		<content:encoded><![CDATA[<p>Hello Richard,</p>
<p>firstly, thank you for providing this article. I purchased it the other day and everything seems to be going well.</p>
<p>There is one issue, however;  I have made the dragable item a link to a non JavaScript page in case a user does not have JS enabled. When I thus try to drag the item back to the list, it opens the URL to the non-js page instead.</p>
<p>How can I drag the item with the class of product (the item that is already inside the basket) back to the list of items without it opening the URL?</p>
<p> Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard D. Worth</title>
		<link>http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/comment-page-1/#comment-260</link>
		<dc:creator>Richard D. Worth</dc:creator>
		<pubDate>Tue, 01 Apr 2008 14:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/#comment-260</guid>
		<description>@Mike: I would suggest using Ajax for getting the items into the db. Do a $.post each time an item is added, for just that item. Then the user can refresh, navigate away etc, without having to submit a form manually to have the items remembered.</description>
		<content:encoded><![CDATA[<p>@Mike: I would suggest using Ajax for getting the items into the db. Do a $.post each time an item is added, for just that item. Then the user can refresh, navigate away etc, without having to submit a form manually to have the items remembered.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/comment-page-1/#comment-259</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 01 Apr 2008 14:39:21 +0000</pubDate>
		<guid isPermaLink="false">http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/#comment-259</guid>
		<description>Hey! Figured out the answer to my 2nd question. As far as 1st question goes, I&#039;m thinking maybe create hidden form fields corresponding to each LI when dropped on cart?</description>
		<content:encoded><![CDATA[<p>Hey! Figured out the answer to my 2nd question. As far as 1st question goes, I&#8217;m thinking maybe create hidden form fields corresponding to each LI when dropped on cart?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/comment-page-1/#comment-258</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 31 Mar 2008 15:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/#comment-258</guid>
		<description>Thx for the reply Richard! I figured it might be something like that. Well, it&#039;s working now with your tweak.  I do have another couple questions related to the cart tho.

1. What might be the best way to get the cart data into a db?  Should the cart be a form instead of li&#039;s so it&#039;s ready for submission?

2. What might be a way to pre-populate the cart on page load with the results of a form post?

Not necessarily looking for details (unless you&#039;d like to!), just ideas/concepts.

Thx!</description>
		<content:encoded><![CDATA[<p>Thx for the reply Richard! I figured it might be something like that. Well, it&#8217;s working now with your tweak.  I do have another couple questions related to the cart tho.</p>
<p>1. What might be the best way to get the cart data into a db?  Should the cart be a form instead of li&#8217;s so it&#8217;s ready for submission?</p>
<p>2. What might be a way to pre-populate the cart on page load with the results of a form post?</p>
<p>Not necessarily looking for details (unless you&#8217;d like to!), just ideas/concepts.</p>
<p>Thx!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard D. Worth</title>
		<link>http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/comment-page-1/#comment-257</link>
		<dc:creator>Richard D. Worth</dc:creator>
		<pubDate>Mon, 31 Mar 2008 02:46:33 +0000</pubDate>
		<guid isPermaLink="false">http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/#comment-257</guid>
		<description>@Mike: Thanks for the feedback. I&#039;m sorry you had trouble using the article with the latest jQuery UI. Yes, there have been a few changes since the article, which is why I haven&#039;t published any more tutorials recently -- I&#039;m waiting for 1.5final. 

In this case, just change
  var product = $(ui.draggable.element);
to
  var product = $(ui.draggable);
and you should be set.

ui.base.js replaced ui.mouse.js recently, with some other bits. We&#039;re working on getting a 2nd beta out this week, so it&#039;ll match the documentation.

Let me know if there&#039;s anything else I can do to help.</description>
		<content:encoded><![CDATA[<p>@Mike: Thanks for the feedback. I&#8217;m sorry you had trouble using the article with the latest jQuery UI. Yes, there have been a few changes since the article, which is why I haven&#8217;t published any more tutorials recently &#8212; I&#8217;m waiting for 1.5final. </p>
<p>In this case, just change<br />
  var product = $(ui.draggable.element);<br />
to<br />
  var product = $(ui.draggable);<br />
and you should be set.</p>
<p>ui.base.js replaced ui.mouse.js recently, with some other bits. We&#8217;re working on getting a 2nd beta out this week, so it&#8217;ll match the documentation.</p>
<p>Let me know if there&#8217;s anything else I can do to help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/comment-page-1/#comment-256</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 31 Mar 2008 01:55:12 +0000</pubDate>
		<guid isPermaLink="false">http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/#comment-256</guid>
		<description>Hi Richard,

I purchased your article at DMX Zone today.  I seem to be having a bit of trouble with it tho.  The complete example at the bottom of page one works but creating the second example thru step #4 seems to break. All is well until I drop on the target. It outputs a lot of javascript where the result should be.  I&#039;m using jQuery 1.2.3 and jQuery UI 1.5b. Is it possible that UI has changed since the article? The Draggables documentation on the UI site show the example using ui.base.js and no ui.mouse.js. Even more confusing, ui.base.js isn&#039;t even in the UI 1.5b zip file?  Any thoughts?

Thx,
Mike</description>
		<content:encoded><![CDATA[<p>Hi Richard,</p>
<p>I purchased your article at DMX Zone today.  I seem to be having a bit of trouble with it tho.  The complete example at the bottom of page one works but creating the second example thru step #4 seems to break. All is well until I drop on the target. It outputs a lot of javascript where the result should be.  I&#8217;m using jQuery 1.2.3 and jQuery UI 1.5b. Is it possible that UI has changed since the article? The Draggables documentation on the UI site show the example using ui.base.js and no ui.mouse.js. Even more confusing, ui.base.js isn&#8217;t even in the UI 1.5b zip file?  Any thoughts?</p>
<p>Thx,<br />
Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MaTaDoR</title>
		<link>http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/comment-page-1/#comment-245</link>
		<dc:creator>MaTaDoR</dc:creator>
		<pubDate>Wed, 12 Mar 2008 02:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/#comment-245</guid>
		<description>Really good work. It seems fine. Thanks (:</description>
		<content:encoded><![CDATA[<p>Really good work. It seems fine. Thanks (:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pages tagged "tutorial"</title>
		<link>http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/comment-page-1/#comment-170</link>
		<dc:creator>Pages tagged "tutorial"</dc:creator>
		<pubDate>Fri, 15 Feb 2008 16:41:40 +0000</pubDate>
		<guid isPermaLink="false">http://rdworth.org/blog/2008/01/drag-and-drop-shopping-cart-with-jquery-ui/#comment-170</guid>
		<description>[...] bookmarks tagged tutorial   Drag-and-Drop Shopping Cart with jQuery UI&#160;saved by 1 others  &#160;&#160;&#160;&#160;XXSTARXX511 bookmarked on 02/15/08 &#124; [...]</description>
		<content:encoded><![CDATA[<p>[...] bookmarks tagged tutorial   Drag-and-Drop Shopping Cart with jQuery UI&nbsp;saved by 1 others  &nbsp;&nbsp;&nbsp;&nbsp;XXSTARXX511 bookmarked on 02/15/08 | [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
