We wonder what the colon, :, in data does. We understand that the data is posted to list.php but not exactly how.
function paint(val){
$(".loading").css("display","block");
$.ajax({
type:"POST",
url: "paint.php",
data:{
target:val,
PaintedObjects:PaintedObjects,
},
dataType: 'json',
success: function(data){
Thank you!