salve gente, un nuovo problemino.
ho creato in ajax un metodo per eliminare una foto attraverso il post in php in questo modo:
codice:
$(function() { $(".delete_button").click(function() { var id = $(this).parent().attr("data-id"); var dataString = ('id='+ id); var parent = $(this).parent(); $.ajax({ type: "POST", url: "php/delete.php", data: dataString, cache: false, success: function() { parent.fadeOut('slow', function() {$(this).remove();}); } }); return false; }); });
ho successivamente inserito il confirm dialog delle ui (sarebbe questo )
come faccio ad inserire lo script da me fatto in questo, cioè al clic di conferma deve succedere quello che succede ora