Eposta Aktivasyonu Gerekmekte
//<![CDATA[
Droppables.add('cart', {accept:'products', hoverclass:'cart-active', onDrop:function(element){new Ajax.Updater('items', 'add.html', {asynchronous:true, evalScripts:true, onComplete:function(request, json){Element.hide('indicator')}, onLoading:function(request, json){Element.show('indicator')}, parameters:'id=' + encodeURIComponent(element.id) } )} } )
//]]>
kaynak kodlarına bakarsan bu kısmın add.html ye bir veri yolluor id olarak
ben burada id yi yolladım ve yukardaki kısmı
//<![CDATA[
Droppables.add('cart', {accept:'products', hoverclass:'cart-active', onDrop:function(element){new Ajax.Updater('items', 'add.asp', {asynchronous:true, evalScripts:true, onComplete:function(request, json){Element.hide('indicator')}, onLoading:function(request, json){Element.show('indicator')}, parameters:'id=' + encodeURIComponent(element.id) } );lo()} } )
//]]>
olarak değiştirdim
lo() fonksiyonu add.asp yi cart div ine ajax ile yüklüyor, güncelleme sağlıyor,
add.asp de gelen id request i alıp gerekli ürünü ekliyor listeye...
remove olayını daha yapmadım, şu an asp ile entegrasyonu tamam çalışıyor yani