I have a problem with jquery post, it does not show the result that the ajax returns when it sent the data, I am showing a wait message, the wait message does show it when the wait message disappears, the browser window goes blank, this code it's the one i'm using
var cargando = $("#load").html("Por favor espere...");
// evento ajax start
$(document).ajaxStart(function () {
cargando.show();
});
// evento ajax stop
$(document).ajaxStop(function () {
cargando.hide();
});
$.post("procesaRenovacion.vbhtml", $('#envia').serialize(),
function (data) {
$('#muestraResultado').show();
$('#muestraResultado').html(data);
});
I hide the div where the data should appear when the page loads
<div id="muestraResultado" style="display:none">Hola</div>
It so happens that these functions apply to all AJAX you have:
Try this: