Javascript 它';在blockUI调用之后,可以调用goTo函数
我想在blockUI之后运行代码,例如,调用goTo函数Javascript 它';在blockUI调用之后,可以调用goTo函数,javascript,jquery,Javascript,Jquery,我想在blockUI之后运行代码,例如,调用goTo函数 if (respuesta.codigo != 0){ if(respuesta.codigo==-34){ $("#titulo_ventana_alerta").html('Datos recuperados correctamente'); $("#texto_ventana_alerta").html(respuesta.mensaje+'<br>Presione <b>Aceptar&
if (respuesta.codigo != 0){
if(respuesta.codigo==-34){
$("#titulo_ventana_alerta").html('Datos recuperados correctamente');
$("#texto_ventana_alerta").html(respuesta.mensaje+'<br>Presione <b>Aceptar</b> para continuar');
$("#check_vet").attr("disabled",true);//bloqueamos la seleccion de veterinarios autorizados
$.blockUI({message: $('#ventana_alerta'),css:{width:'303px'}});
goTo(document,'<?php echo LOCAL_SERVER;?>','<?php echo CLIENT_PATH;?>','/plantillas/SolicitudGuiaMultiespeciePaso2').submit();
}else{
addWSError(respuesta.codigo,'solicitud_guiaMultiespecie',respuesta.mensaje);
$("#texto_error").html(errors2HTML());
$.blockUI({message:$('#ventana_error'),css:{width:'303px'}});
}
}else {
goTo(document,'<?php echo LOCAL_SERVER;?>','<?php echo CLIENT_PATH;?>','/plantillas/SolicitudGuiaMultiespeciePaso2').submit();
}
PHP在页面加载之前执行。查看网页的来源。您不会在顶部看到任何PHP。此外,您不能在JavaScript中执行PHP。甚至在加载页面之前都会执行PHP。查看网页的来源。您不会在顶部看到任何PHP。此外,您不能在JavaScript中执行PHP。
$('#yes2,#boton_aceptar_alerta').click(function() {
$.unblockUI();
return true;
});