PHPスクリプトから送信されたエラーを処理しようとしています。これが私のコードです:
<script>
$(document).ready(function() {
$('#signUpForm').submit(function() {
$.ajax({
type: 'POST',
url: "process.php",
data: $("#signUpForm").serialize(),
success: function(data) {
if ((data == "Incorect email format.") || (data == "Username must be between 6-32 signs and only include 0-9, A-Z characters.") || (data == "Password must be between 8-32 signs and only include 0-9, A-Z characters.") || (data == "Passwords do not match.") || (data == "Username is taken, please try another one.")) {
$('#errors').show();
$('#errors').html(data);
} else {
window.location.href = "http://localhost:8888";
}
}
});
return false;
});
});
</script>
Firebug は、応答が送信されたことを示していますが、エラーは表示されません。どこが問題になる可能性がありますか?ありがとう。