The draggable/droppable functions in Interface have events you can subscribe
to. The one you would need is ondrop.
It would look something like this:
$('elements').Droppable ( { accept : 'dropZone', ondrop : updateCart } );
function updateCart(dragged)
{
var info = $(dragged).attr('info');
$.ajax( { type : 'POST', url : 'ajaxhander.php', data :
'data='+info });
}
The "dragged" element would be the item that was dragged. It would have
attributes containing the information that would be used to update the
database.
ajaxhandler.php (or whatever) would be a page that takes the information and
performs a server-side update.
JK
_____
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Web Specialist
Sent: Tuesday, June 26, 2007 11:37 AM
To: [email protected]
Subject: [jQuery] Interface shopping cart - how to insert in DB
Hi all. Interface haves a very cool shopping cart example in
http://interface.eyecon.ro/demos/cart.html
My question: how can I reference that selected products in shopping basket
to insert in database? I didn't see any form field in source code for that
example.
Cheers