I have an AJAX statement like this:
$.ajax({
type: "POST",
dataType: 'json',
url: "DBDeleteList.php",
data: {listID: listID},
success: function(html){
/* Succesfully Updated DB */
alert( 'Saved!' );
$(this).parents('li').remove();
$('#sortableLoader').load('index.php #sortableMenu');
}
});
It works fine and fires the PHP file and everything, the Database modifications work correctly.
The only problem is that the “success:” part doesn’t ever fire, even if it is successfull.
Thanks for any tips.
You have a return error you are not seeing. You are posting properly to the php, but whatever you are returning back after your post, your ajax call doesnt like. Include something like this after your success function to debug:
also I would use firebug to help see what is happening