I make an ajax request with prototype with a popup and if the return request.responseText is ‘success’ I want to close this popup so I write this code that does not work.what is wrong?
function undoRequestCompleted(request)
{ if (eval(trim(request.responseText)).toString()=="success");
{alert(request.responseText)
parent.window.location.reload();}
// alert(request.responseText)
}