Neste ajax o post manda mais que 1000 caracters:
$.ajax({
url: 'inserir.php',
type: 'POST',
data: { inseason: document.getElementById('comment').value },
success: function(result) {
alert('the request was successfully sent to the server');
}
});
Mas neste outro tem um maximo de 1000 caracters e não consigo perceber porque.
var http = new XMLHttpRequest();
var parametros = "inseason=" + document.getElementById('comment').value;
http.open("POST", "inserir.php", true);
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.onreadystatechange = function() {
if(http.readyState == 4 && http.status == 200)
{
//console.log(http.responseText);
$('#logs').text(http.responseText);
}
}
http.send(parametros);
inserir.php
?console.log(http.responseText.length);
após$('#logs').text(http.responseText);
e veja o que mostra no console