Hi,
Well I hoped everything would work fine finally. But of course it doesn't. The new problem is the following message:
Request-URI Too Large The requested URL's length exceeds the capacity limit for this server.
My fear is that I have to find another method of transmitting the data or is a solution possible?
Code of XHR function:
function makeXHR(recordData) { if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest();
} else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }
var rowData = "?q=" + recordData;
xmlhttp.open("POST", "insertRowData.php"+rowData, true); xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); xmlhttp.setRequestHeader("Content-Length",rowData.length); xmlhttp.setRequestHeader("Connection", "close");
xmlhttp.onreadystatechange = function() { if(xmlhttp.readyState == 4 && xmlhttp.status == 200) { alert("Records were saved successfully!"); } }
xmlhttp.send(null);
}