Well working with the article I posted above you could do the following:
First create the page. Let's call it filehandler.php. Add logic to display files from a folder:
Then you need the delete logic. Delete=filename.extension gets set in the querystring from the delete link:
Now you want this with jQuery. This code replace standard link (a tag) with Jquery function
javascript Code:
$(document).ready(function() {
$('a.delete').click(function(e) {
e.preventDefault();
var parent = $(this).parent();
$.ajax({
type: 'get',
url: 'filehandler.php',
data: 'ajax=1&delete=' + parent.attr('id'),
beforeSend: function() {
parent.animate({'backgroundColor':'#fb6c6c'},300);
},
success: function() {
parent.slideUp(300,function() {
parent.remove();
});
}
});
});
});