Replies Back to Article
Drag-and-Drop Shopping Cart with jQuery UI
Hi this tutorial don't seem to work at all.
I just got it and follow every little step but no luck,, what version of jquery ui is this tutorial base on?
Here you will find free svripts with demonstration
http://55points.blogspot.com/
I got this example partially working by doing two things:
1. Instead of using the includes mentioned, I used:
<script type="text/javascript" src="/js/jquery/ui.core.js"></script>
<script type="text/javascript" src="/js/jquery/ui.draggable.js"></script>
<script type="text/javascript" src="/js/jquery/ui.droppable.js"></script>
and of course jquery.
2. Since I had to copy/paste from a PDF I had to replace all funny "" and '' characters with something my compiler understands.
But I now have this problem, this line does not execute properly:
var item = $("<li class='item'/>").html(product.html());
The error is
this[0].innerHTML is undefined
The developers notes about this line is:
"...We store our item in a variable so we can call draggable on it (after it’s added to the DOM), and we use the html methods instead of text because we’ll be adding an image soon..."
I'm not trying to use images for now, but I'm sure there must be another problem. Please assist. Obviously having paid for something I would like to see it work.
Yeah wish I had read the reviews before purchasing this, it actually doesn't work at all. Sample code pages supplied with this would be appropriate as well.
I'm the original author, and I want to apologize for the article being out of date. I wrote it 2 years ago, and didn't realize it was still being published with no way of knowing when it was written. I've updated the description to correct this.