현재 페이지를 리디렉션하려면 ajax()
함수 내에서 window.document.location()
문을 사용합니다. 하지만 오류가 발생했습니다 (방화 밧데리). 기능 요청에 오류가 없으며 응답이 제대로 전달됩니다. window.document.location('user/index.php');
문이 문제를 만듭니다. msg=='YES'
의 경우이 페이지를 다른 페이지로 리디렉션 할 수 있습니까?jquery ajax() 메서드에서 오류가 발생 했습니까?
$.ajax({
url: "user_registration.php",
type: "post",
data: datastring,
success: function(msg) {
if(msg=='YES') {
window.document.location('user/index.php');
}
else
$("#success").html(msg);
}
});
체크 아웃? –