Saludos
ArturoGallegos
Implementé la opción que me sugirió:
Código Javascript
:
Ver originalfunction Registrar() {
var mis_datos = new FormData();
mis_datos.append("comprob",$("#comprob").val());
mis_datos.append("nom_comprob",$("#nom_comprob").val());
mis_datos.append("num",$("#num").val());
$.ajax({
// processData: false,
//contentType: false,
url: "entrada_registra.php",
Type: "POST",
dataType: "JSON",
data: mis_datos,
success: function(response) {
console.log(response);
$('#dataGrid').html(response);
},
error: function(jqXHR, textStatus, errorThrown)
{
console.log(jqXHR);
console.log(textStatus);
console.log(errorThrown);
}
});
}
Al probar en Firefox me reporta el error:
TypeError: 'append' called on an object that does not implement interface FormData.jquery-3.4.1.js:8685:5
Al probar en GoogleChrome reporta el error:
jquery-3.4.1.js:8685 Uncaught TypeError: Illegal invocation
at add (jquery-3.4.1.js:8685)
at buildParams (jquery-3.4.1.js:8672)
at Function.jQuery.param (jquery-3.4.1.js:8709)
at Function.ajax (jquery-3.4.1.js:9301)
at Registrar (entrada_ajax.js:262)
at HTMLButtonElement.onclick (entrada.php:1)
Por otro lado, estoy buscando documentación sobre Axios... Ahí vamos....
Agradezco infinito su interés y ayuda sobre el tema....