i have done this ajax script so i can delete a page. it works fine the page is deleted from the database but after clicking delete the browser remains on the same page. after i refresh i get a 404. how can i redirect after success to first page?
this is the script
jConfirm('Sure you want to delete this?', '',
function(r)
{
if(r==true)
{
$.ajax({
type: "POST",
url: "delete_ajax.php",
data: dataString,
cache: false,
success: function(html){
alert(dwjlddhjds);
}
});
}