I'm trying to post a form in the background using ajax and cannot seem to
overcome this obstacle.
Jul 05 11:09:06 Active4D: [error] server: POST with no Content-Length:
.\src\support\server.cpp, line 1959, plugin::a4d::checkContentLength
I have verified that the request has a content-length, but this error
message still displays.
The form exists. I need to post the form variables as part of the form due
to the size and content constraints of some form elements.
I've tried using jQuery's ajax post and an encountering a different obstacle
and after many attempts have not overcome.
IE9+
Jul 05 09:21:24 Active4D: [notice] env: Active4D 5.0r29 [Windows, release]
Jul 05 09:21:24 Active4D: [notice] env: 4D v12.2.0r1 [Mono, interpreted,
Unicode mode, Microsoft Windows Vista Business Edition, 32-bit 0F79DA74
(build 6002)]
Suggestions needed please!
TIA!!
function saveChoiceItems(url,contentLength) {
if(window.console) { if(window.console.log) {
window.console.log('saving url: '+url+' with contentLength:
'+contentLength); } }
if(!isSavingChoiceItems){
req.open("POST", url, true);
req.onreadystatechange = handleHttpResponse;
req.setRequestHeader("Content-type",
"text/html");
req.setRequestHeader("Content-length",
contentLength);
isWorking = true;
req.send(null);
}
}
David Ringsmuth
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/