Hi Am new to Jquery/ajax and need help with the final (I think) piece of code. I have a draggable item (JQuery ui.draggable) that when placed in a drop zone updates a mysql table - that works, with 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');}
});
}
but what I cannot get it to do is "reload" another page/same page to display the updated results. In simple terms I want to
- Drag & drop
- Update the database
- Show loading gif
- Display list from DB table with the updated post (i.e. from the drag & drop)
As said before new to Jquery/Ajax but very happy with the PHP/MySQL. Help much appreciated but pleae remember I am a JQuery simpleton - thanks in advance.