I have a simple D&D script as you can see here:
http://demo.superdit.com/jquery/dragdrop_cart/
Now its working Great until Im trying to add the products with AJAX (After the page loaded)
Here is the AJAX call (Regular AJAX)
$.ajax({
url: "Search.php",
dataType: 'json',
type: 'GET',
data: "ebayq="+value,
success: function(data){
globalRequest = 0;
resultContainer2.fadeOut('fast', function() {
resultContainer2.html('');
var html2 = [];
for (var i = 0; i < items.length; ++i)
{
html2 += '<label class="title"><a href="'+viewitem+'" target="_blank">'+title+'</a></label>';html2 += '<img src="'+pic+'">';
html2 += ' <label class="price">New Price: '+myprice+'</label>';
html2 += '</div>';
resultContainer2.append(html2);
}
i guess because this elements are loaded after the page load and it doesn't recognize them as a draggable items..
is there Any way to make this AJAX items draggable??
Thank you very much!