I am very new to JQuery and Ajax and have a problem. Hope people can help.
I am using the ui draggable plugin for drag & drop into a drop zone and then update a database table like this:
function addlist(param)
{
$.ajax({
type: "POST",
url: "ajax/addtocart.php",
data: 'img='+encodeURIComponent(param),
dataType: 'json',
beforeSend: function(x){$('#ajax-loader').css('visibility','visible');},
});
}
The update into the sqltable works with the above, but after the update I want to update a PHP MySql query running on another page that displays the ALL the details in the table that is being updated without reloading the other page. How? what do I use in the
success: function(response) { } to do that?
I don't want to just dispaly the updated row but all the data in the table.