Dieses Skript ist Teil meiner Website, warum nicht die Seite aktualisieren?aktualisieren Sie die Seite nach Ajax Erfolg
Ich testete andere Methoden auf dem Stackoverflow aber nicht beantwortet.
Helfen Sie mir, dank
$(document).ready(function (e) {
$("#loginform").on('submit',(function(e) {
var show_result_ajax = $("#show-result-ajax-loginform");
e.preventDefault();
$.ajax({
url: "inc/custom/login.php",
type: "POST",
data: new FormData(this),
contentType: false,
cache: false,
processData:false,
success: function(data)
{
if(data != 'empty_error'){
show_result_ajax.fadeOut(function(){
show_result_ajax.html(data);
});
show_result_ajax.fadeIn();
}
else
if(data == 'empty_error'){
window.location.reload();
}
}
});
}
));
});
was Ajax zurückkehrt? –
Hallo Mohammad, liefern die Daten deinen Ausdruck? Haben Sie es mit dem Konsolenprotokoll überprüft? –
Hallo @ KamuranSönecek, ja – Mohammad