Hello
my problem that am using a java script code to sort the gallery photos
and this the javascript code
function saveImageOrder()
{
var orderString = "";
var objects = document.getElementsByTagName('DIV');
for(var no=0;no<objects.length;no++){
if(objects[no].className=='imageBox' || objects[no].className=='imageBoxHighlighted'){
if(orderString.length>0)orderString = orderString + ',';
orderString = orderString + objects[no].id;
}
}
document.getElementById('debug').innerHTML = 'This is the new order of the images(IDs) : <br>' +[COLOR="Red"] orderString[/COLOR];
}
and they appear like that
This is the new order of the images(IDs) :
81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,110,111,
Now i want to take this values from the javascript orderStringand insert the value into the database
and the another problem,i want it to be sorted in my database the way i changed their order!!!