/* The saveData function creates a string containing the ids of your dragable elements.
The format of this string is as follow
id of item 1;id of item 2;id of item 3
i.e. a semi colon separated list. The id is something you put in as "id" attribute of your dragable elements.
*/
function saveData()
{
var saveString = "";
for(var no=0;no<dragableObjectArray.length;no++){
if(saveString.length>0)saveString = saveString + ';';
ref = dragableObjectArray[no];
saveString = saveString + ref['obj'].id;
}
alert(saveString); // For demo only
/* Put this item into a hidden form field and then submit the form
example:
document.forms[0].itemOrder.value = saveString;
document.forms[0].submit;
On the server explode the values by use of server side script. Then update your database with the new item order
*/
Bookmarks